the subtitle to add
The player will fire a CueEnter event with the provided information.
the event containing data about the subtitle cue
The player will fire a CueExit event with the provided information.
the event containing data about the subtitle cue
Disabled an enabled subtitle track.
the id of the subtitle track to disable
Enables a subtitle track. Multiple tracks can be enabled concurrently depending on the exclusive
flag.
the id of the subtitle track to enable
Optional
exclusive: booleanOptional, default is true
and all other enabled tracks will be disabled. When set to
false
, the given track will be enabled additionally.
Returns the list of all registered subtitles.
the list of all registered subtitles
Removes a subtitle. Disables it in case it's enabled before removal.
the id of the subtitle track to remove
Adds a subtitle. isFragmented is not supported when tracks are added via this method.