Latest web development tutorials

HTML DOM Video buffered property

Video Object Reference Video Object

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);

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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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:

  • length - get audio and video in a range of the number of buffered
  • start (index) - has obtained a buffering range starting position
  • end (index) - has obtained a range of end position cushioning

Note: The first buffering range of the table below is zero.



Video Object Reference Video Object