ReadonlyactiveTrue if the track is the currently playing track.
ReadonlycontentThe current content types for the active streams, e.g. Set(['audio', 'video'])
ReadonlydisposedTrue if the track has been disposed.
ReadonlyerrorThe last error that occurred in this track, or null if no error.
ReadonlyextraReturns the extra object from the load configuration's config when
this track is active, or null if this track is not active.
ReadonlyfetchedThe time ranges the track has fetched. This will be a snapshot of the fetched ranges at the time this property is accessed.
ReadonlylogA string prefix for all log statements made by this target.
ReadonlyqualitiesThe available qualities for the current period, after filtering. Null if the timeline is not yet available.
ReadonlyqualitiesThe available unfiltered qualities for the current period. Null if the timeline is not yet available.
ReadonlyseekThe seekable range on the media timeline, or null when not yet known (e.g. before the manifest is loaded). Based on the media timeline, not the element's native seekable ranges.
ReadonlytextController for text tracks discovered for this track, or null if the track type does not surface text tracks.
ReadonlytypeThe type of track.
ReadonlyuriThe track identifier.
Resolves to the ads for this track. The track's ads may change if the media timeline changes.
TrackEventMap — the adsChange event.
The currently buffering media quality for the given content stream. This is set immediately before a segment of a new quality is appended.
Listen to TrackEventMap.bufferingQualityChange events for changes.
'video' | 'audio' | 'text'
When this track is active, provides the currently playing media metadata for the given content type.
Listen to TrackEventMap.playbackQualityChange events for changes.
'video' | 'audio' | 'text'
The currently streaming media quality for the given content stream. This is set when a new quality is being requested.
Quality metadata progresses as follows: streamingQuality -> bufferingQuality -> playbackQuality
Listen to TrackEventMap.streamingQualityChange events for changes.
'video' | 'audio' | 'text'
Returns true if the event host has any listeners.
Returns true if the event host has any listeners for the given type.
Adds an event handler for the given typed event.
The key representing the event type to listen for.
A callback to invoke when the event with the given type is dispatched.
Optionaloptions: SignalOptions
Options for changing listening behavior.
Returns a method, when invoked, removes the handler.
Represents the streaming-related state for a single track.
Provides read-only access to:
To observe changes over time, listen to events defined in StreamingEventMap, including:
streamingQualityChangebufferingQualityChangeplaybackQualityChange