Optionaloptions: Partial<SegmentControllerImplOptions>ReadonlycontentReadonlydepsReadonlylogA string prefix for all log statements made by this target.
ReadonlyoptionsThe time ranges currently fetched.
Gets the number of seconds currently prefetched.
The most recently requested quality metadata.
The most recently requested quality metadata.
Indicates that this segment provider is providing segments for an active track and should be prioritized accordingly. Time ranges to be prefetched will change to the active prefetch window.
Clears the cached segments. Currently pending segment promises will be rejected with an abort reason.
Configures this segment provider and initiates prefetching. This may be called multiple times, for example when re-using a cached track a new track priority and start time can be provided.
Deactivates the segment provider. This clears cached segments not within the inactive prefetch range. Time ranges to be prefetched will change to the inactive prefetch window.
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.
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.
Default SegmentController implementation. Provides segments for a given time. Handles segment prefetching and caching.