Easy Tutorial
❮ Prop Textarea Form Met Element Matches ❯

Audio seekable Property

Audio Object

Example

Get the first seekable range of the audio in seconds:

x output value is:


Definition and Usage

The seekable property returns a TimeRanges object.

The TimeRanges object represents the ranges of the audio that the user can seek to.

Seekable ranges refer to the time ranges within the audio where the user can move the playback position.

For streaming audio, it is usually possible to seek to any position in the audio, even if it has not yet been buffered.

Note: This property is read-only.


Browser Support

All major browsers support the seekable property.

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


Syntax

Return Value

Type Description
TimeRanges Object Represents the seekable parts of the audio. Properties of the TimeRanges object: length - Gets the number of seekable ranges in the audio<br>start(index) - Gets the start position of the seekable range<br>end(index) - Gets the end position of the seekable range Note: The index for the first seekable range is 0.

❮ Prop Textarea Form Met Element Matches ❯