buffer.js

Methods

static bufferedPercent(buffered, duration) → {number}

[utils/buffer.js](https://docs.videojs.com/utils_buffer.js.html), [line 19](https://docs.videojs.com/utils_buffer.js.html#line19)

Compute the percentage of the media that has been buffered.

Parameters:
NameTypeDescription
bufferedTimeRange

The current TimeRange object representing buffered time ranges

durationnumber

Total duration of the media

Returns:

number -

Percent buffered of the total duration in decimal form.