buffer.js
- Source:
- utils/buffer.js
Methods
-
<static> bufferedPercent(buffered, duration)
-
Compute the percentage of the media that has been buffered.
Parameters:
Name Type Description bufferedTimeRange The current
TimeRangeobject representing buffered time rangesdurationnumber Total duration of the media
- Source:
- utils/buffer.js
Returns:
Percent buffered of the total duration in decimal form.
- Type
- number