OpenTV Player Web HTML5

Module: buffer

buffer

buffer.js

Methods

staticmodule:buffer.bufferedPercent(buffered, duration){number}

Compute the percentage of the media that has been buffered.

Name Type Description
buffered TimeRange

The current TimeRange object representing buffered time ranges

duration number

Total duration of the media

Returns:
Type Description
number Percent buffered of the total duration in decimal form.