Package-level declarations
Properties
The display name for this Format.
Indicates whether audio track is disabled.
Indicates whether text track is disabled.
Indicates whether video track is disabled.
Represents the rational number one (1/1).
Functions
Checks if the player can get the tracks in the current MediaItem.
Checks if the player can play/pause/resume the current MediaItem.
Checks if the player can seek in the current MediaItem.
Checks if the player can seek back by a fixed increment in the current MediaItem.
Checks if the player can seek forward by a fixed increment in the current MediaItem.
Checks if the player can seek to a later position in the current or next MediaItem.
Checks if the player can seek to an earlier position in the current or previous MediaItem.
Checks if the player can set track selection parameters.
Checks if the player can set the playback speed and pitch of the current MediaItem.
Computes the aspect ratio of the video.
Returns the current playback position as a percentage of the total duration.
Returns a copy of this TrackSelectionParameters with default settings for audio tracks.
Returns a copy of this TrackSelectionParameters with default settings for text tracks.
Returns a copy of this TrackSelectionParameters with default settings for video tracks.
Creates a new TrackSelectionParameters instance with audio track disabled.
Creates a new TrackSelectionParameters instance with text track disabled.
Creates a new TrackSelectionParameters instance with video track disabled.
Creates a new TrackSelectionParameters instance with audio track enabled.
Creates a new TrackSelectionParameters instance with text track enabled.
Creates a new TrackSelectionParameters instance with video track enabled.
Retrieves the list of BlockedTimeRange associated with this Tracks.
Retrieves the Chapter that encompasses the given position in the media playback.
Retrieves the Credit that encompasses the given position in the media playback.
Returns the chapters for the currently playing media item.
Returns the credits for the currently playing media item.
Retrieves a snapshot of the current media items in the player.
Retrieves the MediaItemTrackerData associated with this Tracks.
Filters the existing track selection overrides and returns only those that apply to the specified track type.
Returns the current playback speed of the player.
Calculates the unix time corresponding to the given position in the current media item in milliseconds.
Checks if this Format has accessibility roles, specifically if it describes video or sound.
Checks if this Format has the specified selection flags.
Checks if there is an override for the specified track type.
Checks if the current playback position is at the live edge of a live stream.
Returns a string representation of the role flags set for this Format.
Seeks the player to the specified unix time in milliseconds within the current media item's window.
Returns a string representation of the selection flags associated with this Format.
Sets the Chapters.
Sets the Credits.
Sets whether the player should handle audio focus.
Sets preferred audio role flags based on AccessibilityManager settings.
Sets a track selection override.
Applies a TrackSelectionOverride to the current TrackSelectionParameters.