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.
| Type | Role |
|---|---|
TimelinePlayer | Thin builder: call open |
TimelineRunner | Owns the decode pipelines; move to a thread and call run |
PlayerHandle | Shared, 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§
- Timeline
Player - Thin builder for a (
TimelineRunner,PlayerHandle) pair backed by aTimeline. - Timeline
Runner - Exclusive owner of the timeline decode pipeline.