Creates an instance of the plugin
The current player
Optional
verbose: booleanWhether to log events or not
Readonly
nameStatic
NameProperty that states whether this plugin considers itself ready for continued playback based on internal logic.
Triggers internal event of type PlayerInternalEventType.LoadedChanged
if property value was changed.
Property that states whether this plugin considers itself muted based on internal logic.
Triggers internal event of type PlayerInternalEventType.MutedChanged
if property value was changed.
Property describing the plugin name and version.
Gets an array of vttSubtitles, or an empty array if no vttSubtitles exists.
An array of vttSubtitles, or an empty array.
Initializes the given vttSubtitles and activates the ones set as enabled.
The vttSubtitles to initialize.
Shows or hides a vttSubtitle based on if it exists in the DOM.
The vttSubtitle to toggle.
Vtt Subtitle Plugin
This plugin is used to display one or more VttSubtitles that are stored as separate WebVTT files.
How to use
Known limitations
This plugin will not work with the HlsPlayer while also using its built in vttSubtitles methods. I.e. in that case, a decision has to be made whether to use hls vttSubtitles or external vttSubtitles.
Deprecated
Use TimedTextPlugin instead. See migration guide