UNPKG

libpgs

Version:

Renderer for graphical subtitles (PGS) in the browser.

16 lines (15 loc) 727 B
import { PgsRendererInWorker } from "./pgsRendererInWorker"; import { PgsRendererOptions } from "./pgsRendererOptions"; /** * A subtitle renderer running partially in a web-worker. It loads the subtitles in the web-worker, but rendering is * done on the main thread. This still requires web-workers, but skips the requirement of the offscreen-canvas. */ export declare class PgsRendererInWorkerWithoutOffscreenCanvas extends PgsRendererInWorker { constructor(options: PgsRendererOptions, canvas: HTMLCanvasElement); /** * The subtitle renderer, running in the main thread. */ private readonly renderer; protected render(index: number): void; protected onWorkerMessage(e: MessageEvent): void; }