Advertisement
Home Open Editor ❯

HTML Audio/Video DOM seekable Property

Example

var vid = document.getElementById("myVideo");

function myFunction() {
  alert("Start: " + vid.seekable.start(0) + " End: "  + vid.seekable.end(0));
}

Try this code ❯

Meaning

The seekable property returns a TimeRanges object representing the seekable parts of the audio/video.

Note: The first seekable range is index 0.


Standard Syntax

audio|video.seekable


Advertisement

Return Value

Type Description
TimeRanges Object Returns the seekable parts of the audio/video.

TimeRanges Object Properties:

  • length: get the number of seekable ranges in the audio/video.
  • start(index): get the start position of a seekable range.
  • end(index): get the end position of a seekable range.
Home Open Editor ❯
Advertisement