SubtitleTrack

com.bitmovin.player.api.media.subtitle

SubtitleTrack

open class SubtitleTrack : Track

Represents a subtitle track.

Constructors

SubtitleTrackconstructor(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(), associatedLanguage: String? = null)constructor(url: String?, mimeType: String?, label: String?, id: String = UUID.randomUUID().toString(), isDefault: Boolean, language: String?, isForced: Boolean)constructor(url: String?, mimeType: String?, label: String?, id: String = UUID.randomUUID().toString(), isDefault: Boolean, language: String?)constructor(url: String?, label: String?, id: String = UUID.randomUUID().toString(), isDefault: Boolean, language: String?)constructor(url: String?)

Types

NameSummary
Companionobject Companion

Properties

NameSummary
associatedLanguageval associatedLanguage: String?
The language tag (RFC5646) associated with the EXT-X-MEDIA rendition.
controllerval controller: SubtitleTrackController
The SubtitleTrackController of this SubtitleTrack.
idval id: String
The ID of the Track.
isDefaultval isDefault: Boolean
Specifies whether the Track is considered the default track.
isForcedval isForced: Boolean
Specifies whether the SubtitleTrack is marked as a forced subtitle track. Forced subtitle tracks do not appear in Player.availableSubtitles
labelval label: String?
The label of the Track.
languageval language: String?
The language of the SubtitleTrack.
mimeTypeval mimeType: String?
The mime type of the SubtitleTrack.
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)