Appearance
anim-format (runtime format) / videoTime
Function: videoTime()
ts
function videoTime(
item,
duration,
elapsed,
fps
): number;Time in the file (seconds) a synced video shows elapsed frames after its keyframe started: from t0, rate, trim and loop applied; a still one always shows t0. The editor's twin is document footageTimeAt (the same rule on the document fields — keep them together).
Parameters
| Parameter | Type |
|---|---|
item | Pick<VideoItem, "ts" | "te" | "sp" | "loop" | "t0" | "still"> |
duration | number |
elapsed | number |
fps | number |
Returns
number