SubtitleTrack

open class SubtitleTrack : Track

Represents a subtitle track.

Constructors

SubtitleTrack
Link copied to clipboard
fun SubtitleTrack(url: String?, mimeType: String? = null, label: String? = null, id: String = UUID.randomUUID().toString(), isDefault: Boolean = false, language: String? = null, isForced: Boolean = false, roles: List<MediaTrackRole> = emptyList())
SubtitleTrack
Link copied to clipboard
fun SubtitleTrack(url: String?, mimeType: String?, label: String?, id: String = UUID.randomUUID().toString(), isDefault: Boolean, language: String?, isForced: Boolean)
SubtitleTrack
Link copied to clipboard
fun SubtitleTrack(url: String?, mimeType: String?, label: String?, id: String = UUID.randomUUID().toString(), isDefault: Boolean, language: String?)
SubtitleTrack
Link copied to clipboard
fun SubtitleTrack(url: String?, label: String?, id: String = UUID.randomUUID().toString(), isDefault: Boolean, language: String?)
SubtitleTrack
Link copied to clipboard
fun SubtitleTrack(url: String?)

Types

Companion
Link copied to clipboard
object Companion

Properties

controller
Link copied to clipboard
val controller: SubtitleTrackController
isForced
Link copied to clipboard
val isForced: Boolean
Specifies whether the SubtitleTrack is marked as a forced subtitle track.
language
Link copied to clipboard
@SerializedName(value = lang)
val language: String?
The language of the SubtitleTrack.
mimeType
Link copied to clipboard
val mimeType: String?
The mime type of the SubtitleTrack.

Inherited properties

id
Link copied to clipboard
val id: String
The ID of the Track.
isDefault
Link copied to clipboard
val isDefault: Boolean = false
Specifies whether the Track is a default Track.
label
Link copied to clipboard
val label: String? = null
The label of the Track.
roles
Link copied to clipboard
val roles: List<MediaTrackRole>
Specifies all the DASH roles that are associated with the Track.
type
Link copied to clipboard
val type: TrackType?
The TrackType of the Track.
url
Link copied to clipboard
val url: String?
The URL of the Track.

Functions

writeToParcel
Link copied to clipboard
open override fun writeToParcel(parcel: Parcel, flags: Int)

Inherited functions

describeContents
Link copied to clipboard
open override fun describeContents(): Int