Function

useActiveClips

Returns clips that intersect the current playhead time. A clip is active when the playhead is at or after `timelineStart` and before `timelineEnd`. Clips on hidden tracks, muted tracks, and clips marked `disabled` are omitted. The returned array contains clips only; read the timeline state when you also need the containing track id.

Signature

Type Definition
useActiveClips(): Clip[]

Returns

Clip[]

Active, enabled clips on visible, unmuted tracks at the current playhead time.

Examples

tsx Example
const activeClips = useActiveClips();
return activeClips.map((clip) => <span key={clip.id}>{clip.label}</span>);