ReadonlycurrentReturns the current track.
ReadonlyqueueReturns the current queue of TrackLoadOptions. Observe 'queueChange' for changes to this queue.
Clears all fetched fragments and source buffers. Playback will be interrupted, and streaming will resume again when data has been fetched and buffered. This should be called if a change has been made where the user would expect an immediate change, for example, changing streaming quality from SD to HD.
Does not unload manifests.
Clears the current queue. Does not stop the current track or affect the prefetched cache.
Clears the track cache and unloads the current track.
Appends the given tracks to the current queue.
The track load configurations to append.
Returns the cached track for the given URI, or null if the track is not cached.
Returns an iterator of currently cached tracks.
Returns true if the event host has any listeners.
Returns true if the event host has any listeners for the given type.
Returns true if there is at least one track in the queue.
Returns true if the track with the given URI is cached.
Sets the current queue to the provided track list. When the track ends, the next will be played.
load does not begin playback. Call play() after a load to start playback.
Browser autoplay policies may require the first call to play() to be in response to a user interaction
such as a click, touch, keypress, or voice event.
Note that if the current track is the first track provided in the list, that track will be restarted. To set the queue without unloading the current track, use clearQueue followed by enqueue.
A list of load configuration objects to set as a playback queue.
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: SignalOptionsOptions for changing listening behavior.
Returns a method, when invoked, removes the handler.
Preloads the given list of tracks. The tracks provided will not be enqueued. The track controller's cache size will automatically increase to accommodate the request.
Prefetch priority note:
Tracks have a prefetch priority, later calls to preload will have a higher precedence than previous calls.
Previous tracks given to preload will drop off when they are evicted from the cache. This is dependent on
cache size.
Resets the current track's error state.
Unloads the active track and clears the queue. This is the same as calling load with zero parameters.
Responsible for queuing track load configurations. This is the authority for which is the current track.