video.js
Version:
An HTML5 video player that supports HLS and DASH with a common API and skin.
52 lines • 1.75 kB
TypeScript
declare namespace _default {
export { textTracksToJson };
export { jsonToTextTracks };
export { trackToJson };
}
export default _default;
/**
* Examine a {@link Tech} and return a JSON-compatible javascript array that represents the
* state of all {@link TextTrack}s currently configured. The return array is compatible with
* {@link text-track-list-converter:jsonToTextTracks}.
*
* @param {Tech} tech
* The tech object to query
*
* @return {Array}
* A serializable javascript representation of the {@link Tech}s
* {@link TextTrackList}.
*/
declare function textTracksToJson(tech: Tech): any[];
/**
* Create a set of remote {@link TextTrack}s on a {@link Tech} based on an array of javascript
* object {@link TextTrack} representations.
*
* @param {Array} json
* An array of `TextTrack` representation objects, like those that would be
* produced by `textTracksToJson`.
*
* @param {Tech} tech
* The `Tech` to create the `TextTrack`s on.
*/
declare function jsonToTextTracks(json: any[], tech: Tech): any;
/**
* @file text-track-list-converter.js Utilities for capturing text track state and
* re-creating tracks based on a capture.
*
* @module text-track-list-converter
*/
/** @import Tech from '../tech/tech' */
/**
* Examine a single {@link TextTrack} and return a JSON-compatible javascript object that
* represents the {@link TextTrack}'s state.
*
* @param {TextTrack} track
* The text track to query.
*
* @return {Object}
* A serializable javascript representation of the TextTrack.
* @private
*/
declare function trackToJson(track: TextTrack): any;
import type Tech from '../tech/tech';
//# sourceMappingURL=text-track-list-converter.d.ts.map