Skip to content

The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.

583 B
Raw Blame
export function shouldResumeForwardPlaybackAfterSeek(input: {
  keepPlaying: boolean;
  wasReverseShuttle: boolean;
  storeWasPlaying: boolean;
  duration: number;
  nextTime: number;
  playLocked: boolean;
}): boolean {
  return (
    !input.playLocked &&
    input.keepPlaying &&
    !input.wasReverseShuttle &&
    input.storeWasPlaying &&
    (input.duration <= 0 || input.nextTime < input.duration)
  );
}

export function shouldStopAfterSeek(input: {
  keepPlaying: boolean;
  wasReverseShuttle: boolean;
}): boolean {
  return !input.keepPlaying || input.wasReverseShuttle;
}