Package-level declarations

Properties

Link copied to clipboard

A list of Chapters for this media item.

Link copied to clipboard

A list of Credits for this media item.

Link copied to clipboard

The display name for this Format.

Link copied to clipboard

Indicates whether audio track is disabled.

Link copied to clipboard

Indicates whether text track is disabled.

Link copied to clipboard

Indicates whether video track is disabled.

Link copied to clipboard

Represents the rational number one (1/1).

Link copied to clipboard

Returns the video size of this Format.

Functions

Link copied to clipboard

Checks if the player can get the tracks in the current MediaItem.

Link copied to clipboard

Checks if the player can play/pause/resume the current MediaItem.

Link copied to clipboard

Checks if the player can seek in the current MediaItem.

Link copied to clipboard

Checks if the player can seek back by a fixed increment in the current MediaItem.

Link copied to clipboard

Checks if the player can seek forward by a fixed increment in the current MediaItem.

Link copied to clipboard

Checks if the player can seek to a later position in the current or next MediaItem.

Link copied to clipboard

Checks if the player can seek to an earlier position in the current or previous MediaItem.

Link copied to clipboard

Checks if the player can set track selection parameters.

Link copied to clipboard

Checks if the player can set the playback speed and pitch of the current MediaItem.

Link copied to clipboard

Computes the aspect ratio of the video.

Link copied to clipboard

Checks if this Tracks contains a track of type image.

Link copied to clipboard

Returns the current playback position as a percentage of the total duration.

Link copied to clipboard

Returns a copy of this TrackSelectionParameters with default settings for audio tracks.

Link copied to clipboard

Returns a copy of this TrackSelectionParameters with default settings for text tracks.

Link copied to clipboard

Returns a copy of this TrackSelectionParameters with default settings for video tracks.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Retrieves the list of BlockedTimeRange associated with this Tracks.

Link copied to clipboard
fun Player.getChapterAtPosition(positionMs: Long = currentPosition): Chapter?

Retrieves the Chapter that encompasses the given position in the media playback.

Link copied to clipboard
fun Player.getCreditAtPosition(positionMs: Long = currentPosition): Credit?

Retrieves the Credit that encompasses the given position in the media playback.

Link copied to clipboard

Returns the chapters for the currently playing media item.

Link copied to clipboard

Returns the credits for the currently playing media item.

Link copied to clipboard

Retrieves a snapshot of the current media items in the player.

Link copied to clipboard

Returns a Locale representing the language specified by this Format's language property.

Link copied to clipboard
Link copied to clipboard

Filters the existing track selection overrides and returns only those that apply to the specified track type.

Link copied to clipboard

Returns the current playback speed of the player.

Link copied to clipboard
fun Player.getUnixTimeMs(positionMs: Long = currentPosition, window: Timeline.Window = Window()): Long

Calculates the unix time corresponding to the given position in the current media item in milliseconds.

Link copied to clipboard

Checks if this Format has accessibility roles, specifically if it describes video or sound.

Link copied to clipboard

Checks if this Format has the specified role.

Link copied to clipboard

Checks if this Format has the specified selection flags.

Link copied to clipboard

Checks if there is an override for the specified track type.

Link copied to clipboard
fun Player.isAtLiveEdge(positionMs: Long = currentPosition, window: Timeline.Window = Window()): Boolean

Checks if the current playback position is at the live edge of a live stream.

Link copied to clipboard

Checks if this Format is forced.

Link copied to clipboard

Returns a string representation of the role flags set for this Format.

Link copied to clipboard
fun Player.seekToUnixTimeMs(unixTimeMs: Long, window: Timeline.Window = Window())

Seeks the player to the specified unix time in milliseconds within the current media item's window.

Link copied to clipboard

Returns a string representation of the selection flags associated with this Format.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Player.setHandleAudioFocus(handleAudioFocus: Boolean)

Sets whether the player should handle audio focus.

Link copied to clipboard

Converts this VideoSize to a Rational representation, which is particularly useful for scenarios like picture-in-picture.