Video seekable attribute
Definition and Usage
seekable
This property returns a TimeRanges object.
The TimeRanges object represents the video range that is available for user search.
The searchable range is the video time range that the user can retrieve (move the playback position) to.
For non-streaming videos, it is usually possible to retrieve at any position in the video even before buffering.
Note:This property is read-only.
Example
Get the first searchable range (part) of the video, in seconds:
var x = document.getElementById("myVideo"); document.getElementById("demo").innerHTML = "Start: " + x.seekable.start(0) + " End: " + x.seekable.end(0);
Grammar
videoObject.seekable
TimeRanges Object
Return Value | Type |
---|---|
Description |
TimeRanges Object Represents the searchable part of the video.
Note:The first searchable range is index 0. |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 9.0 | Support | Support | Support |