Function

useTimelineMediaPlayback

Coordinates timeline playback with an external media clock. The hook is media-library agnostic. Apps provide a clock and a single layer sync callback while the hook advances the TimelineEngine playhead and decides when active layer clips need to be resynchronized.

Signature

Type Definition
useTimelineMediaPlayback(options: UseTimelineMediaPlaybackOptions<LayerName>): UseTimelineMediaPlaybackResult

Type parameters

NameConstraintDefaultDescription
LayerNamestringstringNo type parameter summary yet.

Parameters

NameTypeDescription
optionsUseTimelineMediaPlaybackOptions<LayerName>External media clock, active layer selectors, sync callback, and status callback.

Returns