Interface

UseMediabunnyTimelineMediaResult

Timeline transport state plus Mediabunny preview status and adapter details.

Signature

Type Definition
Interface UseMediabunnyTimelineMediaResult

Type parameters

NameConstraintDefaultDescription
LayerNamestringstringNo type parameter summary yet.

Properties

NameSignatureDescription
activeLayersactiveLayers: ActiveLayerResult<LayerName>Active layers at the current playhead time.
adapteradapter: MediabunnyAdapterUnderlying low-level Mediabunny adapter.
durationBySourceIddurationBySourceId: ReadonlyMap<string, number>Loaded media duration by source id, in seconds.
errorerror: Error | nullLast source loading error, when one is active.
lastFrameTimelastFrameTime: number | nullTimestamp of the last rendered video frame, in seconds.
pause(): TimelineCommandResultStops synchronized timeline/media playback and pauses external media state.
play(): Promise<TimelineMediaPlayResult>Starts external media playback and then advances the timeline from that clock.
playbackRateplaybackRate: numberCurrent synchronized playback speed multiplier.
playingplaying: booleanWhether synchronized timeline and external media playback is currently running.
readyready: booleanWhether at least one Mediabunny source is loaded and ready for playback.
setPlaybackRate(playbackRate: number): TimelineCommandResultUpdates both the external clock rate and the timeline playback rate.
statusstatus: stringHuman-readable loading, playback, or error status.