SubtitleTrack

open class SubtitleTrack : Track

Represents a subtitle track.

Constructors

Link copied to clipboard
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())
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

Link copied to clipboard
object Companion

Functions

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

Specifies whether the SubtitleTrack is marked as a forced subtitle track. Forced subtitle tracks do not appear in Player.availableSubtitles

Link copied to clipboard

The language of the SubtitleTrack.

Link copied to clipboard

The mime type of the SubtitleTrack.