Interface

TimelineMediaQueries

Indexed active-media queries and source-time mapping.

Signature

Type Definition
Interface TimelineMediaQueries

Methods

NameSignatureDescription
getActiveClipgetActiveClip(query: ActiveClipQuery = {}): ActiveClip<string> | undefinedReturns the first active clip matching an active layer query.
getActiveClipsgetActiveClips(time: RationalTime = ...): ActiveClip<string>[]Returns enabled clips under a timeline time, ordered by track and clip order. Hidden or muted tracks and disabled clips are excluded so preview and playback integrations can pick sources using the same visibility rules. Clip intervals are half-open: active at `timelineStart` and inactive at `timelineEnd`.
getActiveClipsByTrackgetActiveClipsByTrack(time: RationalTime = ...): Map<string, ActiveClip<string>[]>Groups active clips by containing track id.
getActiveLayersgetActiveLayers(options: ActiveLayerOptions<LayerName>): ActiveLayerResult<LayerName>Finds the clips active at a timeline time and groups them by named layer selectors. Use this for preview, playback, subtitle, and effect integrations that need to know which layer clips should be rendered or synced at the playhead. Hidden or muted tracks and disabled clips are excluded. The result preserves every match in `layers`, deduplicates matches in `all`, and exposes `primary` as a first-match convenience for each requested layer.
getClipSourceRangegetClipSourceRange(clipIdOrClip: string | object): ClipSourceRange | undefinedComputes the source-media range covered by a clip.
getClipSyncKeygetClipSyncKey(clipIdOrClip: string | object): string | undefinedReturns a stable media sync signature for timing-affecting clip fields.
getFirstContentTimegetFirstContentTime(options: FirstContentTimeOptions<LayerName>): RationalTime | undefinedFinds the earliest clip start matching any requested layer.
sourceTimeToTimelineTimesourceTimeToTimelineTime(clipIdOrClip: string | object, sourceTime: RationalTime): RationalTime | undefinedMaps a source-media timestamp within a clip back to timeline time.
timelineTimeToSourceTimetimelineTimeToSourceTime(clipIdOrClip: string | object, timelineTime: RationalTime = ...): RationalTime | undefinedMaps a timeline timestamp within a clip to the matching source-media time.