@byomakase/omakase-player
    Preparing search index...

    Class SidecarVideoTrackControllerImpl

    Plays sidecar video in its own SidecarVideoDomController, synced with main media, see BaseSidecarTrackController.

    Sidecar:

    • before warm-up, holds the frame warm-up starts at, so its playback starts without seeking
    • in warm-up, right before time window, warms up - plays hidden and muted, to pre-buffer and sync ahead of its cut. Warm-up is limited by sidecar media before SidecarTimeWindow.cutStartTime, cut starting at sidecar time 0 has no warm-up
    • inside time window, if active, plays with its own muted state and is shown. Main media waits while sidecar is buffering. If inactive, keeps warming up, so it can be activated without seeking
    • after time window, holds the frame at SidecarTimeWindow.cutEndTime

    Sidecar video drifting from main media is corrected by adjusting its playback rate, or by seeking when drift is too large.

    Video element can't play backwards nor faster than SEEK_STEP_PLAYBACK_DEFAULTS.maxNativePlaybackRate. At such main media playback rates sidecar is paused and seeked to sidecar time at main media time in steps, see SeekStepper. Main media doesn't wait for these seeks.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Accessors

    Methods