pgs.js
Version:
PGS (Presentation Graphic Stream) Subtitle For HTML5 Media Playback
16 lines (12 loc) • 377 B
text/typescript
import { AcquisitionPointForRender } from "../render";
export type PGSFeederOptionPreloadType = 'none' | 'decode' | 'render';
export type PGSFeederOption = {
preload: PGSFeederOptionPreloadType
timeshift: number
}
export default interface PGSFeeder {
content(time: number): AcquisitionPointForRender | null;
onattach(): void;
ondetach(): void;
onseek(): void;
}