text-track-list-converter.js Utilities for capturing text track state and re-creating tracks based on a capture.
- Source:
- tracks/text-track-list-converter.js
Methods
-
<inner> jsonToTextTracks(json, tech)
-
Create a set of remote TextTracks on a Tech based on an array of javascript object TextTrack representations.
Parameters:
Name Type Description jsonArray An array of
TextTrackrepresentation objects, like those that would be produced bytextTracksToJson.techTech The
Techto create theTextTracks on.- Source:
- tracks/text-track-list-converter.js
-
<inner> textTracksToJson(tech)
-
Examine a Tech and return a JSON-compatible javascript array that represents the state of all TextTracks currently configured. The return array is compatible with text-track-list-converter:jsonToTextTracks.
Parameters:
Name Type Description techTech The tech object to query
- Source:
- tracks/text-track-list-converter.js
Returns:
A serializable javascript representation of the Techs TextTrackList.
- Type
- Array