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
TextTrack
s on aTech
based on an array of javascript objectTextTrack
representations.Name Type Description json
Array An array of
TextTrack
representation objects, like those that would be produced bytextTracksToJson
.tech
Tech The
Tech
to create theTextTrack
s on. -
innertextTracksToJson(tech){Array}
-
Examine a
Tech
and return a JSON-compatible javascript array that represents the state of allTextTrack
s currently configured. The return array is compatible withtext-track-list-converter:jsonToTextTracks
.Name Type Description tech
Tech The tech object to query
Returns:
Type Description Array A serializable javascript representation of the Tech
sTextTrackList
.