SubtitleData

data class SubtitleData(    val originalName: String,     val nameSuffix: String,     val url: String,     val origin: SubtitleOrigin,     val mimeType: String,     val headers: Map<String, String>,     val languageCode: String?)(source)

Parameters

originalName

the start of the name to be displayed in the player

nameSuffix

An extra suffix added to the subtitle to make sure it is unique

url

Url for the subtitle, when EMBEDDED_IN_VIDEO this variable is used as the real backend id

headers

if empty it will use the base onlineDataSource headers else only the specified headers

languageCode

Not guaranteed to follow any standard. Could be something like "English 4" or "en".

Constructors

Link copied to clipboard
constructor(    originalName: String,     nameSuffix: String,     url: String,     origin: SubtitleOrigin,     mimeType: String,     headers: Map<String, String>,     languageCode: String?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val url: String

Functions

Link copied to clipboard

Gets the URL, but tries to fix it if it is malformed.

Link copied to clipboard
fun getId(): String

Internal ID for exoplayer, unique for each link