Optionaloptions: Partial<BufferingControllerImplOptions>ReadonlycontentReadonlydepsReadonlylogA string prefix for all log statements made by this target.
ReadonlyoptionsTrue if this buffering controller is active.
Returns true if the last segment has been appended.
Returns the quality currently buffering.
The currently buffering media quality. This is set immediately before a segment of a new quality is appended.
Listen to BufferingControllerEventMap.bufferingQualityChange events for changes.
Returns true if there are active operations.
The last error emitted. Buffering will halt if this controller is in an error state. Deactivating this controller will reset the error state.
The currently playing media quality.
Listen to BufferingControllerEventMap.playbackQualityChange events for changes.
Sets the current playback quality and emits a playbackQualityChange event. No-ops if quality id has not changed.
Activates the buffering controller, watching the playhead and segment controller.
ProtectedappendCancels any currently buffering fragments and clears the source buffer.
Stops buffering.
Dispatches an event.
The key of the event within EventMap
If the passed event is read-only, then it may be re-used/cached. Otherwise, it should be a new event object every dispatch. If no target property is set on the event, the target will be set to this host.
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: SignalOptionsOptions for changing listening behavior.
Returns a method, when invoked, removes the handler.
If this controller is in an error state, resets and tries again.
The buffering controller is responsible for requesting and appending segments to the source buffer controller.