Skip to main content

Module timeline

Module timeline 

Source
Expand description

Real-time playback of a Timeline.

TimelinePlayer opens every clip on the primary video track of a Timeline and plays them back in order, mapping each clip’s frame PTS to the unified timeline coordinate.

TypeRole
TimelinePlayerThin builder: call open
TimelineRunnerOwns the decode pipelines; move to a thread and call run
PlayerHandleShared, cloneable control handle

§Audio

When any clip on the primary video track carries an audio stream, TimelinePlayer::open creates an AudioMixer with one track per audio-bearing clip. A background AudioDecoder thread is started for the active clip and pushes mono samples via AudioTrackHandle. On clip transition or seek the old thread is cancelled and a new one is started. PlayerHandle::pop_audio_samples calls AudioMixer::mix and returns interleaved stereo f32 output.

Structs§

TimelinePlayer
Thin builder for a (TimelineRunner, PlayerHandle) pair backed by a Timeline.
TimelineRunner
Exclusive owner of the timeline decode pipeline.