UNPKG

rx-player

Version:
53 lines 2.31 kB
/** * Copyright 2015 CANAL+ Group * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import type { ISegment } from "../../manifest"; import type { IChunkTimeInfo, ISegmentContext, ITextTrackSegmentData } from "../types"; /** * Returns the a string expliciting the format of a text track when that text * track is embedded into a ISOBMFF file. * @param {string|undefined} codecs * @returns {string} */ export declare function getISOBMFFTextTrackFormat(codecs: string | undefined): "ttml" | "vtt"; /** * Returns the a string expliciting the format of a text track in plain text. * @param {string|undefined} codecs * @param {string|undefined} mimeType * @returns {string} */ export declare function getPlainTextTrackFormat(codecs: string | undefined, mimeType: string | undefined): "ttml" | "sami" | "vtt" | "srt"; /** * @param {Object} content * @param {ArrayBuffer|UInt8Array|null} chunkBytes * @param {number|undefined} initTimescale * @param {Object|null} chunkInfos * @param {boolean} isChunked * @returns {Object|null} */ export declare function getISOBMFFEmbeddedTextTrackData({ segment, language, codecs, }: { segment: ISegment; codecs?: string | undefined; language?: string | undefined; }, chunkBytes: Uint8Array<ArrayBuffer>, initTimescale: number | undefined, chunkInfos: IChunkTimeInfo | null, isChunked: boolean): ITextTrackSegmentData | null; /** * @param {Object} context * @param {ArrayBuffer|UInt8Array|null} textTrackData * @param {number|undefined} initTimescale * @param {boolean} isChunked * @returns {Object|null} */ export declare function getPlainTextTrackData(context: ISegmentContext, textTrackData: string, initTimescale: number | undefined, isChunked: boolean): ITextTrackSegmentData | null; //# sourceMappingURL=parse_text_track.d.ts.map