rx-player
Version:
Canal+ HTML5 Video Player
20 lines • 780 B
TypeScript
import type { ISupportedTextTrackFormat } from "../../../transports";
export interface IHTMLCue {
start: number;
end: number;
element: HTMLElement;
}
/**
* Convert text track data into timed HTML Cues.
* @param {string} type - Text track format wanted
* @param {string} data - Text track data
* @param {Object} context
* @param {Number} timestampOffset - offset to apply to every timed text
* @returns {Array.<Object>}
* @throws Error - Throw if no parser is found for the given type
*/
export default function parseTextTrackToElements(type: ISupportedTextTrackFormat, data: string | BufferSource, context: {
initTimescale: number | null;
language: string | undefined;
}, timestampOffset: number): IHTMLCue[];
//# sourceMappingURL=html_parsers.d.ts.map