HTMLMediaElement: buffered property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Thebuffered read-only property ofHTMLMediaElement objects returns a new staticnormalizedTimeRanges object that represents the ranges of the media resource, if any, that the user agent has buffered at the moment thebuffered property is accessed.
In this article
Value
A new staticnormalized TimeRanges object that represents the ranges of the media resource, if any, that the user agent has buffered at the moment thebuffered property is accessed.
Examples
js
const obj = document.createElement("video");console.log(obj.buffered); // TimeRanges { length: 0 }Specifications
| Specification |
|---|
| HTML> # dom-media-buffered-dev> |
| Media Source Extensions™> # htmlmediaelement-extensions-buffered> |
Browser compatibility
See also
HTMLMediaElement: Interface used to define theHTMLMediaElement.bufferedproperty