Package-level declarations

Types

Link copied to clipboard
class AudioTrack(group: Tracks.Group, groupIndex: Int, trackIndexInGroup: Int) : Track

Represents an audio track within a media file.

Link copied to clipboard
class TextTrack(group: Tracks.Group, groupIndex: Int, trackIndexInGroup: Int) : Track

Represents a text track within a media file.

Link copied to clipboard
sealed class Track

Represents a generic track within a media stream.

Link copied to clipboard
class VideoTrack(group: Tracks.Group, groupIndex: Int, trackIndexInGroup: Int) : Track

Represents a video track within a media file.

Properties

Link copied to clipboard

Returns a list of supported audio tracks for the currently played MediaItem.

Link copied to clipboard

Returns a list of supported text tracks for the currently played MediaItem.

Link copied to clipboard

Returns a list of supported tracks for the currently played MediaItem.

Link copied to clipboard

Returns a list of supported video tracks for the currently played MediaItem.

Functions

Link copied to clipboard

Disables the audio track.

Link copied to clipboard

Disables the text track.

Link copied to clipboard

Disables the video track.

Link copied to clipboard

Enables the audio track.

Link copied to clipboard

Enables the text track.

Link copied to clipboard

Enables the video track.

Link copied to clipboard

Selects the provided track for playback.

Link copied to clipboard

Sets the track selection to automatically select the default audio track.

Link copied to clipboard

Sets the track selection to automatically select the default text track.

Link copied to clipboard

Sets the track selection to automatically select the default video track.