Properties
clips
OCF Clips (Original Camera Files)
files()
Retrieves the total number of files
size()
Gets the size in a user-friendly format, such as “1.17 GB” or “117 MB”.
You can specify the unit of measurement you prefer by providing an options object.
The default unit is
Options:
auto, which automatically selects the most appropriate unit.Options:
size( type: “auto” | “tb” | “gb” | “mb” | “bytes” )sizeAsNumber()
Retrieves the size as a numerical value.
This method returns the size in a numerical format, which can be useful for calculations or comparisons.
You can specify the unit of measurement by providing an options object. The default unit is
Options:
bytes.Options:
sizeAsNumber( type: “auto” | “tb” | “gb” | “mb” | “bytes” )sizeAsTuple()
Obtains the size as a pair containing both the numerical value and its unit.
This method returns an array where the first element is the size number and the second element is the unit. You can specify the unit of measurement by providing an options object. The default unit is
Options:
This method returns an array where the first element is the size number and the second element is the unit. You can specify the unit of measurement by providing an options object. The default unit is
“auto”.Options:
sizeAsTuple( type: “auto” | “tb” | “gb” | “mb” | “bytes” )copies()
Retrieves the copies as an array of objects.
reels()
Gets the reels as an array of strings.
You can optionally group reels by passing
Options:
You can optionally group reels by passing
rangeMerging: true.Options:
reels( rangeMerging: boolean )duration()
Retrieves the duration in a human-readable string format (e.g., “1h, 30m, 45s”).
durationTC()
Retrieves the duration in timecode format (e.g., “01:30:45:00”).
durationObject()
Retrieves the duration as an object with time components: hours, minutes, and seconds.
durationAsSeconds()
Retrieves the duration in total seconds. Suitable if you want to do your own calculations.