libpgs
Version:
Renderer for graphical subtitles (PGS) in the browser.
16 lines (15 loc) • 546 B
TypeScript
import { PgsRendererMode } from "./pgsRendererMode";
export declare class BrowserSupport {
/**
* Checks if the web worker is supported in the current environment.
*/
static isWorkerSupported(): boolean;
/**
* Checks if the offscreen-canvas and `transferControlToOffscreen` are supported in the current environment.
*/
static isOffscreenCanvasSupported(): boolean;
/**
* Returns the optimal PGS renderer mode for the current platform.
*/
static getRendererModeByPlatform(): PgsRendererMode;
}