buffer.js
Methods
-
staticmodule:buffer.bufferedPercent(buffered, duration){number}
-
Compute the percentage of the media that has been buffered.
Name Type Description bufferedTimeRange The current
TimeRangeobject representing buffered time rangesdurationnumber Total duration of the media
Returns:
Type Description number Percent buffered of the total duration in decimal form.