Easy Tutorial
❮ Tag Col Att Output Form ❯

HTML Audio/Video DOM played Property

HTML Audio/Video DOM Reference

Example

Get the first played range in seconds of the video:


Definition and Usage

The played property returns a TimeRanges object.

The TimeRanges object represents the ranges of the audio/video that have been played by the user.

The played ranges are the parts of the audio/video that have been played. If the user skips around in the audio/video, multiple played ranges will be returned.


Browser Support

All major browsers support the played property.

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


Syntax

Return Value

Type Description
TimeRanges Object Represents the played ranges of the audio/video. Properties of the TimeRanges object: length - Gets the number of played ranges in the audio/video<br> start(index) - Gets the start position of a played range<br> end(index) - Gets the end position of a played range Note: The index for the first played range is 0.
❮ Tag Col Att Output Form ❯