Easy Tutorial
❮ Att Body Link Att Global Accesskey ❯

HTML Audio/Video DOM buffered Property

HTML Audio/Video DOM Reference Manual

Example

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


Definition and Usage

The buffered property returns a TimeRanges object.

The TimeRanges object represents the buffered ranges of the user's audio/video.

A buffered range refers to the time range of the audio/video that has been buffered. If the user skips around in the audio/video, multiple buffered ranges will be obtained.


Browser Support

All major browsers support the buffered property.

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


Syntax

Return Value

Type Description
TimeRanges Object Represents the buffered parts of the audio/video. Properties of the TimeRanges object: length - Gets the number of buffered ranges in the audio/video<br> start(index) - Gets the start position of a buffered range<br> end(index) - Gets the end position of a buffered range Note: The index of the first buffered range is 0.
❮ Att Body Link Att Global Accesskey ❯