SubtitleData

constructor(name: String, url: String, origin: SubtitleOrigin, mimeType: String, headers: Map<String, String>, languageCode: String?)

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