Easy Tutorial
❮ Canvas Addcolorstop Tag Comment ❯

HTML Audio/Video DOM seekable Property

HTML Audio/Video DOM Reference Manual

Example

Get the first seekable range of the video in seconds:


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.

Seekable ranges are the portions of the audio/video that the user can navigate to (move the playback position).

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


Browser Support

All major browsers support the seekable property.

Note: Internet Explorer 8 and earlier versions do 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.
❮ Canvas Addcolorstop Tag Comment ❯