UNPKG

libpgs

Version:

Renderer for graphical subtitles (PGS) in the browser.

10 lines (9 loc) 427 B
export declare class PgsRendererHelper { /** * Returns the array index position for the previous timestamp position from the given array. * Returns -1 if the given time is outside the timestamp range. * @param time The timestamp to check in seconds. * @param pgsTimestamps The list of available PGS timestamps. */ static getIndexFromTimestamps(time: number, pgsTimestamps: number[]): number; }