Skip to main content
Markers allow you to add named points on the timeline for navigation and organization.

Marker

Interface representing a timeline marker.

validateMarker()

Validates a single marker.
Marker
required
Marker object to validate
Marker
Validated marker (throws error if invalid)

Example

validateMarkers()

Validates an array of markers.
Marker[]
required
Array of markers to validate
Marker[]
Validated and sorted markers (throws error if invalid or duplicate IDs)

Example

Using markers with Helios

Setting markers

Adding markers dynamically

Removing markers

Seeking to markers

Accessing markers

Complete example

Marker metadata

The metadata field can store arbitrary data: