mirror of
https://github.com/zoriya/libpgs-js.git
synced 2026-08-27 00:00:51 +00:00
Not for upstream: this branch only exists so a consumer can depend on the fork straight from git while the `ready` promise waits on a release.
10 lines
427 B
TypeScript
10 lines
427 B
TypeScript
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;
|
|
}
|