com.bitmovin.player.api.media.subtitle
SubtitleTrack
open class SubtitleTrack : Track
Represents a subtitle track.
Constructors
| SubtitleTrack | constructor(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
| Name | Summary |
|---|---|
| Companion | object Companion |
Properties
| Name | Summary |
|---|---|
| associatedLanguage | val associatedLanguage: String? The language tag (RFC5646) associated with the EXT-X-MEDIA rendition. |
| controller | val controller: SubtitleTrackController The SubtitleTrackController of this SubtitleTrack. |
| id | val id: String The ID of the Track. |
| isDefault | val isDefault: Boolean Specifies whether the Track is considered the default track. |
| isForced | val isForced: Boolean Specifies whether the SubtitleTrack is marked as a forced subtitle track. Forced subtitle tracks do not appear in Player.availableSubtitles |
| label | val label: String? The label of the Track. |
| language | val language: String? The language of the SubtitleTrack. |
| mimeType | val mimeType: String? The mime type of the SubtitleTrack. |
| roles | val roles: List<MediaTrackRole> Specifies all the DASH roles that are associated with the Track. |
| type | val type: TrackType? The TrackType of the Track. |
| url | val url: String? The URL of the Track. |
Functions
| Name | Summary |
|---|---|
| describeContents | open override fun describeContents(): Int |
| equals | open operator override fun equals(other: Any?): Boolean |
| hashCode | open override fun hashCode(): Int |
| toString | open override fun toString(): String |
| writeToParcel | open override fun writeToParcel(parcel: Parcel, flags: Int) |