MCPcopy
hub / github.com/midrender/revideo / framesToSeconds

Method framesToSeconds

packages/core/src/app/PlaybackStatus.ts:23–25  ·  view source on GitHub ↗

* Convert frames to seconds using the current framerate. * * @param frames - The frames to convert.

(frames: number)

Source from the content-addressed store, hash-verified

21 * @param frames - The frames to convert.
22 */
23 public framesToSeconds(frames: number) {
24 return frames / this.playback.fps;
25 }
26
27 public get time(): number {
28 return this.framesToSeconds(this.playback.frame);

Callers 8

timeMethod · 0.95
deltaTimeMethod · 0.95
waitForFunction · 0.80
loopForFunction · 0.80
frameToTimeMethod · 0.80
MotionCanvasPlayerClass · 0.80
SceneClipFunction · 0.80
TimestampFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected