buffer.js
Methods
-
static bufferedPercent(buffered, duration) → {number}
-
Compute the percentage of the media that has been buffered.
Parameters:
Name Type Description bufferedmodule:time~TimeRange The current
TimeRangesobject representing buffered time rangesdurationnumber Total duration of the media
Returns:
number -Percent buffered of the total duration in decimal form.