Signature
Interface UseMediabunnyTimelineMediaResultType parameters
| Name | Constraint | Default | Description |
|---|---|---|---|
LayerName | string | string | No type parameter summary yet. |
Properties
| Name | Signature | Description |
|---|---|---|
activeLayers | activeLayers: ActiveLayerResult<LayerName> | Active layers at the current playhead time. |
adapter | adapter: MediabunnyAdapter | Underlying low-level Mediabunny adapter. |
durationBySourceId | durationBySourceId: ReadonlyMap<string, number> | Loaded media duration by source id, in seconds. |
error | error: Error | null | Last source loading error, when one is active. |
lastFrameTime | lastFrameTime: number | null | Timestamp of the last rendered video frame, in seconds. |
pause | (): TimelineCommandResult | Stops synchronized timeline/media playback and pauses external media state. |
play | (): Promise<TimelineMediaPlayResult> | Starts external media playback and then advances the timeline from that clock. |
playbackRate | playbackRate: number | Current synchronized playback speed multiplier. |
playing | playing: boolean | Whether synchronized timeline and external media playback is currently running. |
ready | ready: boolean | Whether at least one Mediabunny source is loaded and ready for playback. |
setPlaybackRate | (playbackRate: number): TimelineCommandResult | Updates both the external clock rate and the timeline playback rate. |
status | status: string | Human-readable loading, playback, or error status. |