AbstractProtectedconstructorProtected_Sets on handleError, cleared on 'reset'.
Protected ReadonlydepsProtected ReadonlydisposerProtecteddrmProtectedloadThe current load options, if this is an active track.
ReadonlylogA string prefix for all log statements made by this target.
ReadonlysrcReadonlytypeThe track type.
ReadonlyuriThe identifier of this track, used as the key in the track cache.
True if the track is the currently playing track.
The current content types for the active streams, e.g. Set(['audio', 'video'])
True if this track is disposed.
The last error that occurred in this track, or null if no error.
Returns the extra object from the load configuration's config when
this track is active, or null if this track is not active.
The time ranges the track has fetched. This will be a snapshot of the fetched ranges at the time this property is accessed.
The available qualities for the current period, after filtering. Null if the timeline is not yet available.
The available unfiltered qualities for the current period. Null if the timeline is not yet available.
The presentation seek range of the media. Most often {start=0, end=duration} but may be different depending on the media timeline.
Default text track controller is null. Tracks that surface text tracks (e.g. MseTrack) override this getter.
Sets this track as active, deactivating any currently active track. This should set sources on the playback source and add any listeners needed for shared resources.
Configuration from TrackLoadOptions.config, provided by the Application.
Clears any buffered or prefetched data, if applicable.
Protected AbstractclearProtectedcloseSets this track as inactive. This should unset sources, and remove any listeners. Tracks do not implement disposable, when they are deactivated they are expected to be free for garbage collection if there are no longer references to the track.
Dispatches an event.
Protected ReadonlyerrorResolves to this track's ads. Implementations may override to provide ad breaks.
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.
The track has been activated. Operations on shared resources such as the playback controller may only be done while the track is currently active. For example if there is a loading operation before the playback source is set, isActive must be checked before the property is changed.
Provides configuration to the track and begins preloading (if applicable).
Configuration provided by the TrackController.
Configuration from TrackLoadOptions.config, provided by the Application.
Resets the track to recover from error states. Base implementation does nothing.
Overrides should dispatch 'reset' after resetting error state.
ProtectedsetProtected AbstractsetReturns a string representation of an object.
A base class for all tracks.