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