Audio buffered Property
Example
Get the buffered range of the first part of the audio:
var x = document.getElementById("myAudio");
document.getElementById("demo").innerHTML = "Start: " + x.buffered.start(0)
- " End: " + x.buffered.end(0);
Try it »
Definition and Usage
The buffered property returns a TimeRanges object.
The TimeRanges object represents the buffered range of the audio.
A buffered range refers to the time range of the buffered audio/video. If the user seeks within the audio/video, multiple buffered ranges are obtained.
Note: This property is read-only.
Browser support





All major browsers support the buffered object.
**Note:** Internet Explorer 8 or earlier browsers do not support this property.
Syntax
audioObject
.buffered
Return Value
| Type | Description |
|---|---|
| TimeRanges Object | Represents the buffered part of the audio/video. TimeRanges object properties:
|
Note:The index of the first buffered range is 0.
|
Audio object