YouTip LogoYouTip

Prop Video Buffered

HTML DOM Video buffered Property

HTML DOM Video buffered Property

-- Learning not just technology, but dreams!

JavaScript Reference

Overview

JavaScript Objects

Browser Objects

DOM Objects

HTML Objects

HTML DOM Track Object

HTML DOM Video controller Property

Video buffered Property

Video Object Reference Video Object

Example

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

var x = document.getElementById("myVideo");

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

Try it Yourself Β»


Definition and Usage

The buffered property returns a TimeRanges object.

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

Buffered ranges refers to the time ranges of the buffered audio/video. If the user jumps around in the audio/video, you will get multiple buffered ranges.

Note: This property is read-only.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the buffered property.

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


Syntax

videoObject.buffered

Return Value

Value Description
TimeRanges Object Represents the buffered parts of the audio/video. TimeRanges Object Properties:
* length - Get the number of buffered ranges in the audio/video
* start(index) - Get the start position of a buffered range
* end(index) - Get the end position of a buffered range
Note: The index of the first buffered range is 0.

Video Object Reference Video Object

← Prop Video ControllerProp Video Controller β†’