Track

abstract class Track(val url: String?, val type: TrackType?, val label: String? = null, val id: String = UUID.randomUUID().toString(), val isDefault: Boolean = false, val roles: List<MediaTrackRole> = emptyList()) : Parcelable

The base class for all tracks.

Inheritors

Constructors

Link copied to clipboard
constructor(url: String?, type: TrackType?, label: String? = null, id: String = UUID.randomUUID().toString(), isDefault: Boolean = false, roles: List<MediaTrackRole> = emptyList())

Functions

Link copied to clipboard
open override fun describeContents(): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun writeToParcel(parcel: Parcel, flags: Int)

Properties

Link copied to clipboard
val id: String

The ID of the Track.

Link copied to clipboard
val isDefault: Boolean = false

Specifies whether the Track is a default Track.

Link copied to clipboard
val label: String? = null

The label of the Track.

Link copied to clipboard

Specifies all the DASH roles that are associated with the Track.

Link copied to clipboard

The TrackType of the Track.

Link copied to clipboard
val url: String?

The URL of the Track.