Skip to content

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 ​

ParameterType
itemPick<VideoItem, "ts" | "te" | "sp" | "loop" | "t0" | "still">
durationnumber
elapsednumber
fpsnumber

Returns ​

number

HereSplash — 2D animation for the web