Audio seekable attribute
Example
Get the first seekable range of the audio in seconds (part):
var x = document.getElementById("myAudio");
document.getElementById("demo").innerHTML = "Start: " + x.seekable.start(0)
- " End: " + x.seekable.end(0);
xOutput value:
Start: 0 End: 12.612
Try it »
Definition and Usage
The seekable attribute returns a TimeRanges object.
The TimeRanges object represents the seekable ranges of the audio that the user can seek to.
A seekable range refers to the time range within the audio that the user can seek to (move the playback position).
For streaming audio, you can usually seek to any position in the audio, even if it has not finished buffering.
Note: This attribute is read-only.
Browser support





All major browsers support the seekable attribute.
**Note:** Internet Explorer 8 or earlier browsers do not support this property.
Syntax
audioObject
.seekable
Return Value
| Type | Description |
|---|---|
| TimeRanges Object |
Represents the seekable part of the audio. TimeRanges object properties: |
Note:The index of the first seekable range, index, is 0.
|
Audio object