Easy Tutorial
❮ Met Win Atob Jsref Valueof Boolean ❯

Video buffered Property

Video Object

Example

Get the first buffered range of the video, in seconds:

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

Definition and Usage

The buffered property returns a TimeRanges object.

The TimeRanges object represents the buffered ranges of the audio or video.

A buffered range is the portion of the audio or video that has been loaded. If the user skips around in the media, multiple buffered ranges may be present.

Note: This property is read-only.


Browser Support

All major browsers support the buffered property.

Note: Internet Explorer 8 or earlier versions do not support this property.


Syntax

Return Value

Value Description
TimeRanges Object Represents the buffered parts of the audio or video. Properties of the TimeRanges object: length - Gets the number of buffered ranges in the media<br>start(index) - Gets the start time of a buffered range<br>end(index) - Gets the end time of a buffered range<br>Note: The index of the first buffered range is 0.
❮ Met Win Atob Jsref Valueof Boolean ❯