Track

An immutable object containing information about a audio, video or captions track in a media.

Constructors

Link copied to clipboard
constructor(id: Int, type: Int, height: Int, width: Int, bitrate: Int, @Nullable language: String, @Nullable label: String, @Nullable codec: String, @Nullable mimeType: String)
constructor(id: Int, type: Int, height: Int, width: Int, bitrate: Int, @Nullable language: String, @Nullable label: String, @Nullable codec: String, @Nullable mimeType: String, groupId: String, streamIndex: Int)

Properties

Link copied to clipboard
Bandwidth of the track in bits per second or -1 if not available or not applicable.
Link copied to clipboard
Codac of track .
Link copied to clipboard
Link copied to clipboard
Special Track instance to signal the player to turn off captions.
Link copied to clipboard
Group id of track .
Link copied to clipboard
val height: Int
Height of the video in pixels or -1 if not available or not applicable.
Link copied to clipboard
val id: Int
Id to identify a track.
Link copied to clipboard
Label of the track or null if not available or not applicable.
Link copied to clipboard
Language of the track or null if not available or not applicable.
Link copied to clipboard
MIME type of track .
Link copied to clipboard
Special Track instance to signal the player to set adaptive mode on.
Link copied to clipboard
Stream index of track .
Link copied to clipboard
val type: Int
Type of track.
Link copied to clipboard
val TYPE_AUDIO: Int = 1
Track type corresponding to an audio stream.
Link copied to clipboard
Track type corresponding to captions.
Link copied to clipboard
val TYPE_UNKNOWN: Int = -1
Track type corresponding to unknown format.
Link copied to clipboard
val TYPE_VIDEO: Int = 2
Track type corresponding to a video stream.
Link copied to clipboard
val width: Int
Width of the video in pixels or -1 if not available or not applicable.

Functions

Link copied to clipboard
open fun describeContents(): Int
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun writeToParcel(dest: Parcel, flags: Int)