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

Method secondsToFrames

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

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

(seconds: number)

Source from the content-addressed store, hash-verified

12 * @param seconds - The seconds to convert.
13 */
14 public secondsToFrames(seconds: number) {
15 return Math.ceil(seconds * this.playback.fps);
16 }
17
18 /**
19 * Convert frames to seconds using the current framerate.

Callers 11

everyRunnerFunction · 0.80
timeToFrameMethod · 0.80
renderFrameMethod · 0.80
runMethod · 0.80
getMediaByFramesMethod · 0.80
startFrameMethod · 0.80
endFrameMethod · 0.80
MotionCanvasPlayerClass · 0.80
RangeSelectorFunction · 0.80
TimelineFunction · 0.80
SlideTrackFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected