Video seekable property
Example
Get the first seekable range (portion) of the video, in seconds:
var x = document.getElementById("myVideo");
document.getElementById("demo").innerHTML = "Start: " + x.seekable.start(0)
- " End: " + x.seekable.end(0);
x The output result is:
Start: 0 End: 12.612
Try it »
Definition and Usage
The seekable attribute returns a TimeRanges object.
The TimeRanges object represents the seekable range of the audio/video for the user.
The seekable range refers to the time range within the audio/video that the user can seek (move the playback position).
For streaming video, the user can usually seek to any position in the video, 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
videoObject
.seekable
Return Value
| Type | Description |
|---|---|
| TimeRanges Object |
Represents the seekable portion of the audio/video. TimeRanges object properties: |
Note:The index of the first seekable range is index 0.
|
The Video object