Easy Tutorial
❮ Prop Tablerow Rowindex Dom Obj Datetime Local ❯

played Attribute

Audio Object

Example

Get the first played range in seconds within the audio:

x output as:


Definition and Usage

The played attribute returns a TimeRanges object.

The TimeRanges object represents the ranges of audio that the user has played or seen.

A played range refers to the time range of the audio that has been played. If the user skips around in the audio, multiple played ranges are obtained.

Note: This attribute is read-only.


Browser Support

All major browsers support the played attribute.

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


Syntax

Return Value

Type Description
TimeRanges Object Represents the played ranges of the audio. Properties of the TimeRanges object: length - Gets the number of played ranges in the audio<br>start(index) - Gets the start position of a played range<br>end(index) - Gets the end position of a played range<br>Note: The index of the first played range is 0.
❮ Prop Tablerow Rowindex Dom Obj Datetime Local ❯