HTML DOM Video buffered property
Examples
The first section to obtain a video buffer range (part), in seconds:
var x = document.getElementById ( "myVideo");
document.getElementById ( "demo") innerHTML = "Start:". + x.buffered.start (0)
+ "End:" + x.buffered.end (0);
document.getElementById ( "demo") innerHTML = "Start:". + x.buffered.start (0)
+ "End:" + x.buffered.end (0);
try it"
Definition and Usage
buffered property returns TimeRanges object.
TimeRanges object represents the user's audio and video buffering range.
Buffering range refers to the time the buffered audio and video. If you jump in audio and video playback, you will get multiple buffer range.
Note: This property is read-only.
Browser Support
All major browsers support buffered property
Note: Internet Explorer 8 or earlier browser does not support this property.
grammar
videoObject .buffered
return value
value | description |
---|---|
TimeRanges objects | Indicates that the audio and video portion of the buffer. TimeRanges object properties:
Note: The first buffering range of the table below is zero. |
Video Object