Signature
Interface UseTimelineMarkersResultProperties
| Name | Signature | Description |
|---|---|---|
addMarker | (time: RationalTime, label?: string, color?: string, description?: string): TimelineCommandResult<Marker> | Adds a marker at a timeline time. |
addMarkerAtPlayhead | (label?: string, color?: string, description?: string): TimelineCommandResult<Marker> | Adds a marker at the current playhead. |
markers | markers: Marker[] | Current timeline markers sorted by time. |
removeMarker | (id: string): TimelineCommandResult | Removes a marker by id. |
seekToMarker | (id: string): TimelineCommandResult<Marker> | Moves the playhead to a marker by id. |
seekToNextMarker | (): TimelineCommandResult<Marker> | Moves the playhead to the next marker after the current playhead. |
seekToPreviousMarker | (): TimelineCommandResult<Marker> | Moves the playhead to the previous marker before the current playhead. |
updateMarker | (id: string, updates: TimelineMarkerUpdate): TimelineCommandResult<Marker> | Updates marker metadata by id. |