ReadonlyerrorReadonlyfetchedThe time ranges currently fetched.
ReadonlystreamingThe most recently requested quality metadata.
Indicates that this segment provider is providing segments for an active track and should be prioritized accordingly.
Clears the cached segments. Currently pending segment promises will be rejected with an abort reason.
Indicates that this segment provider is providing segments for an inactive track.
The duration of the media, in seconds. Returns null if duration cannot be determined.
Returns a Promise for a segment for the given time and currently selected media. The returned promise may abort with an AbortError if a seek occurs to outside the prefetch window.
The time, in seconds, the requested segment should span.
Optionalabort: ReadonlyAbortAborts the returned promise and releases the lock on prefetching. The segment request will not be interrupted unless the time goes out of prefetch ranges.
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.
Resets failed segments to a pending state.
Provides segments for a given time. Handles segment prefetching and caching.