Easy Tutorial
❮ Jsref Sup Jsref Valueof Date ❯

Video seekable Property

Video Object

Example

Get the first seekable range 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 Output result:

Start: 0 End: 12.612

Definition and Usage

The seekable property returns a TimeRanges object.

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

A seekable range is the portion of the audio/video that the user can seek (move the playback position) to.

For streaming videos, it is usually possible to seek to any point in the video, even if it has not been fully buffered yet.

Note: This property is read-only.


Browser Support

All major browsers support the seekable property.

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


Syntax

Return Value

Type Description
TimeRanges Object Represents the seekable parts of the audio/video. Properties of the TimeRanges object: length - Gets the number of seekable ranges in the audio/video<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 of the first seekable range is 0.
❮ Jsref Sup Jsref Valueof Date ❯