Type Alias

ActiveLayerSelector

Filters for one named active layer. A layer selector describes the kind of active clips an app wants to drive, such as visual previews, audio playback, subtitles, effects, or a particular source asset. Selectors are matched against the active clips returned for a single timeline time.

Signature

Type Definition
ActiveLayerSelector: Omit<ActiveClipQuery<TrackKind>, "time">

Type parameters

NameConstraintDefaultDescription
TrackKindNonestringApp-defined track kind values accepted by this layer, such as `"visual"`, `"audio"`, or `"subtitle"`.

Examples

ts Example
import type { ActiveLayerSelector } from '@techsquidtv/canvas-timeline-core';
const visuals: ActiveLayerSelector<'visual' | 'audio'> = {
trackKind: 'visual',
sourceId: 'camera-a',
};