ReadonlycontentThe current content types for the active streams, e.g. Set(['audio', 'video'])
ReadonlyfetchedThe time ranges the track has fetched. This will be a snapshot of the fetched ranges at the time this property is accessed.
ReadonlyfetchedReturns the time of the prefetch end. If no data has been prefetched for the current track, 0 will be returned.
The time given will be in seconds according to the media timeline. It will represent the ending time of the continuous prefetch range from the current playhead time.
ReadonlyfetchedReturns current fetched time as a percent of the total duration.
ReadonlyplaybackExtracts Amazon-specific metadata out of the playbackQuality supplemental properties.
ReadonlytrackThis object provides Amazon-specific metadata about the current track. If the track is not an Amazon track (asin, coid, sample), null will be returned.
The currently buffering media quality for the given content stream. This is set immediately before a segment of a new quality is appended.
Listen to TrackEventMap.bufferingQualityChange events for changes.
'video' | 'audio' | 'text'
When this track is active, provides the currently playing media metadata for the given content type.
Listen to TrackEventMap.playbackQualityChange events for changes.
'video' | 'audio' | 'text'
Gets the reason for the current quality selection.
Returns null if media is not currently playing.
The currently streaming media quality for the given content stream. This is set when a new quality is being requested.
Quality metadata progresses as follows: streamingQuality -> bufferingQuality -> playbackQuality
Listen to TrackEventMap.streamingQualityChange events for changes.
'video' | 'audio' | 'text'
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.
Extends ReadonlyPlaybackStreamingState with Amazon-specific streaming metadata.
This interface provides additional metadata around Amazon-specific playback behavior, such as:
All properties are read-only and reflect the current snapshot of the active Amazon track. These values will be
nullfor non-Amazon tracks.