Track

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

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

Properties

NameSummary
idval id: String
The ID of the Track.
isDefaultval isDefault: Boolean
Specifies whether the Track is a default Track.
labelval label: String?
The label of the Track.
rolesval roles: List<MediaTrackRole>
Specifies all the DASH roles that are associated with the Track.
typeval type: TrackType?
The TrackType of the Track.
urlval url: String?
The URL of the Track.

Functions

NameSummary
describeContentsopen override fun describeContents(): Int
equalsopen operator override fun equals(other: Any?): Boolean
hashCodeopen override fun hashCode(): Int
toStringopen override fun toString(): String
writeToParcelopen override fun writeToParcel(parcel: Parcel, flags: Int)