UNPKG

imsc

Version:

Renders IMSC documents to HTML5 fragments

48 lines • 1.3 kB
/** * @module imscISD */ /** * @typedef {import("./doc").TTElement} TTElement * @typedef {import("./error").ErrorHandler} ErrorHandler */ /** * Creates a canonical representation of an IMSC1 document returned by <pre>fromXML()</pre> * at a given absolute offset in seconds. This offset does not have to be one of the values returned * by <pre>getMediaTimeEvents()</pre>. * * @param {TTElement} tt IMSC1 document * @param {number} offset Absolute offset (in seconds) * @param {ErrorHandler} errorHandler Error callback * @returns {ISD} Opaque in-memory representation of an ISD */ export function generateISD(tt: TTElement, offset: number, errorHandler: ErrorHandler): ISD; export class ISD { constructor(tt: any); /** * @type {ISDContentElement[]} */ contents: ISDContentElement[]; /** * @type {string} */ aspectRatio: string; /** * @type {string} */ lang: string; } export class ISDContentElement { constructor(ttelem: any); kind: any; lang: any; id: any; styleAttrs: {}; src: any; type: any; text: any; contents: any[] | undefined; space: any; } export type TTElement = import("./doc").TTElement; export type ErrorHandler = import("./error").ErrorHandler; //# sourceMappingURL=isd.d.ts.map