setCaptions() without having to reload the player.
An index of 0 implies that captions are off.
Fired when the list of available captions tracks changes. This event is the ideal time to set default captions with the API.
captionsListwill always return an array of at least 1 item due to off, but will trigger again once captions are fully loaded. We suggest only changing captions when the tracks array length exceeds 1.
Returns an array with the following:
|tracks ||An array with all included captions tracks (Including "off"). Includes the same information as |
Triggered whenever the active captions track is changed manually or via API.
Returns an object with the following:
|track ||Index of the new active captions track|