YouTip LogoYouTip

Prop Video Buffered

HTML DOM Video buffered Property

HTML DOM Video buffered Property

HTML DOM Video buffered Property

-- Learning not just technology, but dreams!

JavaScript Reference Manual

Overview

JavaScript Objects

Browser Objects

DOM Objects

HTML Objects

HTML DOM Track Object

HTML DOM Video controller Property

Video buffered Property

Video Object Reference Manual 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 refer 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 versions 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 Manual Video Object

HTML DOM Track Object

HTML DOM Video controller Property

ByteDance Coding Plan supports mainstream large models such as Doubao, GLM, DeepSeek, Kimi, MiniMax, officially supplied, stable and reliable.

iFlytek Star Coding Plan includes free model call quotas, DeepSeek, GLM, Kimi, MiniMax, one-stop experience and deployment platform. Configuration Guide Β₯3.9/month Subscribe Now

Click to Share Notes

Cancel

← Prop Video ControllerProp Video Autoplay β†’