libpgs
Version:
Renderer for graphical subtitles (PGS) in the browser.
17 lines (14 loc) • 488 B
text/typescript
export enum PgsRendererMode {
/**
* A worker thread is used to load, build and render the subtitles. This requires OffscreenCanvas support.
*/
worker = 'worker',
/**
* A worker thread is used to load and build the subtitles. They are rendered in the main thread.
*/
workerWithoutOffscreenCanvas = 'workerWithoutOffscreenCanvas',
/**
* The subtitles are loaded, built and rendered in the main thread.
*/
mainThread = 'mainThread',
}