Buffer
These API calls are used to update clients with the percentage of a file that is buffered into the player. This only applies to VOD media; live streaming media (HLS/DASH) does not expose this behavior.
.on('bufferChange')
Fired when the currently playing item loads additional data into its buffer.
Returns an object with the following:
Value | Description |
---|---|
bufferPercent number | Percentage between 0 and 100 of the current media that is buffered. |
duration number | Current media's duration (In seconds) |
metadata object | (Flash HLS-Only) Contains bandwidth and droppedFrames valuesSee: Metadata Object below for more info NOTE: As per Adobe, Flash Player is no longer supported. |
position number | Current position of the media file (in seconds) |
Metadata Object
Value | Description |
---|---|
bandwidth number | Current download speed in bits per second. |
droppedFrames number | Amount of dropped frames caused by a buffer change. |