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);

Try it yourself

Grammar

videoObject.seekable

TimeRanges Object

Return Value Type
Description

TimeRanges Object

Represents the searchable part of the video.

  • TimeRanges Object Properties:
  • length - Get the number of searchable ranges in the videoindexstart(
  • ) - Get the start position of the searchable rangeindex) - Get the end position of the searchable range

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