Track

abstract class Track(url: String?, type: TrackType?, label: String?, id: String, isDefault: Boolean, roles: List<MediaTrackRole>) : Parcelable

The base class for all tracks.

Constructors

Link copied to clipboard
fun Track(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
val roles: List<MediaTrackRole>

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

Link copied to clipboard
val type: TrackType?

The TrackType of the Track.

Link copied to clipboard
val url: String?

The URL of the Track.

Inheritors

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