Easy Tutorial
❮ Prop Iframe Frameborder Prop Progress Max ❯

buffered Property of Audio

Audio Object

Example

Retrieve the buffered range of the first part of the audio:


Definition and Usage

The buffered property returns a TimeRanges object.

The TimeRanges object represents the buffered ranges of the audio.

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

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

Type Description
TimeRanges Object Represents the buffered parts of the audio or video. Properties of the TimeRanges object: <br> length - Gets the number of buffered ranges in the audio or video <br> start(index) - Gets the start position of a specific buffered range <br> end(index) - Gets the end position of a specific buffered range <br> Note: The index of the first buffered range is 0.
❮ Prop Iframe Frameborder Prop Progress Max ❯