UNPKG

video.js

Version:

An HTML5 video player that supports HLS and DASH with a common API and skin.

16 lines 540 B
/** @import { TimeRange } from './time' */ /** * Compute the percentage of the media that has been buffered. * * @param {TimeRange} buffered * The current `TimeRanges` object representing buffered time ranges * * @param {number} duration * Total duration of the media * * @return {number} * Percent buffered of the total duration in decimal form. */ export function bufferedPercent(buffered: TimeRange, duration: number): number; import type { TimeRange } from './time'; //# sourceMappingURL=buffer.d.ts.map