Package-level declarations

Properties

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

Display name

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

Rational One with a Rationale set to 1/1.

Link copied to clipboard

Video size of the format. VideoSize.UNKNOWN if no video size provided.

Functions

Link copied to clipboard

Can get details of the current track selection.

Link copied to clipboard

Can start, pause or resume playback.

Link copied to clipboard

Can seek anywhere into the current MediaItem.

Link copied to clipboard

Can seek back by a fixed increment into the current MediaItem.

Link copied to clipboard

Can seek back by a fixed increment into the current MediaItem.

Link copied to clipboard

Can seek to a later position in the current or next MediaItem.

Link copied to clipboard

Can seek to an earlier position in the current or previous MediaItem.

Link copied to clipboard

set the player's track selection parameters.

Link copied to clipboard

Can set the playback speed and pitch.

Link copied to clipboard

Compute the aspect ratio, return null if the aspect ratio can't be computed.

Link copied to clipboard

Contains image track

Link copied to clipboard

Current position percent

Link copied to clipboard

Default audio track parameters.

Link copied to clipboard

Default text track parameters.

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
Link copied to clipboard
fun Player.getChapterAtPosition(positionMs: Long = currentPosition): Chapter?

Get the chapter at position.

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

Get the credit at position.

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

Get a snapshot of the current media items

Link copied to clipboard

Returns a locale for the specified IETF BCP 47 Format.language tag string.

Link copied to clipboard
Link copied to clipboard

Get playback speed

Link copied to clipboard

Has accessibility roles

Link copied to clipboard

Check if Format.roleFlags contains role

Link copied to clipboard
Link copied to clipboard

Has track override

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

Is at live edge

Link copied to clipboard

Is forced

Link copied to clipboard

Role flags as string

Link copied to clipboard

Selection flags as string

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

Handle audio focus with the currently set AudioAttributes.

Link copied to clipboard
Link copied to clipboard

Convert VideoSize to Rational that is useful for picture in picture