segmentFrames static method

int segmentFrames(
  1. VideoEditorClip clip,
  2. int fps
)

Frames of a preview segment for clip at fps (at least one).

Implementation

static int segmentFrames(VideoEditorClip clip, int fps) =>
    math.max(1, (math.max(clip.effectiveDuration.inMilliseconds, 100) * fps / 1000).round());