ReadonlyerrorReadonlyfetchedThe time ranges currently fetched.
ReadonlystreamingThe most recently requested quality metadata.
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.
The SegmentController provides segments to buffer for the given time. It is expected to prefetch segments based on the expectation of when the segments will be needed next.