SubtitleData

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

Parameters

name

To be displayed in the player

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(name: String, url: String, origin: SubtitleOrigin, mimeType: String, headers: Map<String, String>, languageCode: String?)

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
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