add Subtitle Track
Adds the provided SubtitleTrack to this SourceConfig. Returns the SubtitleTrack that was added.
Deprecated
Use addSubtitleTrack(SubtitleTrack) instead
Replace with
addSubtitleTrack(SubtitleTrack(url))
Generates a SubtitleTrack with the provided url and adds it to this SourceConfig. Returns the SubtitleTrack that was added.
Deprecated
Use addSubtitleTrack(SubtitleTrack) instead
Replace with
addSubtitleTrack(SubtitleTrack(url, label, id, isDefault, language))
Generates a SubtitleTrack with the provided parameter and adds it to this SourceConfig.
Return
The SubtitleTrack that was added.
Parameters
The URL of the SubtitleTrack.
The label of the SubtitleTrack.
The ID of the SubtitleTrack.
If the SubtitleTrack is the default track.
The language identifier of the SubtitleTrack.
Deprecated
Use addSubtitleTrack(SubtitleTrack) instead
Replace with
addSubtitleTrack(SubtitleTrack(url, mimeType, label, id, isDefault, language))
Generates a SubtitleTrack with the provided parameter and adds it to this SourceConfig.
Return
The SubtitleTrack that was added.
Parameters
The URL of the SubtitleTrack.
The mime type of the SubtitleTrack.
The label of the SubtitleTrack.
The ID of the SubtitleTrack.
If the SubtitleTrack is the default track.
The language identifier of the SubtitleTrack.