Video buffered attribute

Definition and Usage

buffered The property returns a TimeRanges object.

The TimeRanges object represents the user's video buffering range.

The buffered range is the time range of the buffered video. If there is a jump in the video, the user will get several buffered ranges.

Note:This property is read-only.

Example

Get the first buffered range in seconds of the video (partial):

var x = document.getElementById("myVideo");
document.getElementById("demo").innerHTML = "Start: " + x.buffered.start(0)
+ " End: " + x.buffered.end(0);

Try it yourself

Grammar

videoObject.buffered

TimeRanges Object

Return Value Type
Description

TimeRanges Object

Represents the buffered part of the video.

  • TimeRanges Object Properties:
  • length - Get the number of buffer ranges in the videoindexstart(
  • ) - Get the start position of the buffer rangeindex) - Get the end position of the buffer range

Note:The first buffer range is index 0

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support 9.0 Support Support Support