timecodeSecondsToFrames method

int timecodeSecondsToFrames(
  1. double seconds, {
  2. dynamic ignoreDropFrame = false,
})

returns timecode frame count from timecode seconds. Timecode seconds are always based on the integerFps and that's why drop frames are needed will roll over after 24 hours

Implementation

int timecodeSecondsToFrames(double seconds, {ignoreDropFrame = false}) {
  seconds = rollover(seconds);
  return seconds.round() * integerFps;
  // return (seconds * ((isDropFrame && !ignoreDropFrame) ? integerFps : fps)).floor();
}