text-track-list-converter.js Utilities for capturing text track state and re-creating tracks based on a capture.
Methods
-
innerjsonToTextTracks(json, tech)
-
Create a set of remote
TextTracks on aTechbased on an array of javascript objectTextTrackrepresentations.Name Type Description jsonArray An array of
TextTrackrepresentation objects, like those that would be produced bytextTracksToJson.techTech The
Techto create theTextTracks on. -
innertextTracksToJson(tech){Array}
-
Examine a
Techand return a JSON-compatible javascript array that represents the state of allTextTracks currently configured. The return array is compatible withtext-track-list-converter:jsonToTextTracks.Name Type Description techTech The tech object to query
Returns:
Type Description Array A serializable javascript representation of the TechsTextTrackList.