Subtitle

data class Subtitle(val label: String, val subtitleUrl: String, val mimeType: String? = null)

The media's subtitle.

Constructors

Link copied to clipboard
constructor(label: String, subtitleUrl: String, mimeType: String? = null)

Properties

Link copied to clipboard

Subtitle's label that consists of the language of the subtitle and any other additional information inside parenthesis. For example, English, Español (Commentary).

Link copied to clipboard
val mimeType: String? = null

Subtitle's MIME type. If no MIME type is specified, then the player attempts to derive it from the file's extension. If the file extension is missing or unrecognizable, this might lead to the subtitles not loading properly.

Link copied to clipboard

Subtitle's URL.