Latest web development tutorials

HTML DOM Video seekable attribute

Video Object Reference Video Object

Examples

Get the first seconds of video addressable range (section):

var x = document.getElementById ( "myVideo");
document.getElementById ( "demo") innerHTML = "Start:". + x.seekable.start (0)
+ "End:" + x.seekable.end (0);

x The output is:

Start: 0 End: 12.612

try it"

Definition and Usage

seekable property returns TimeRanges object.

TimeRanges object represents the audio / video user addressable range.

Addressable range refers to the user in the audio / video addressable (moving the playback position) time frame.

For streaming video, video can usually be addressed to any position, even if it is not completed buffering.

Note: This property is read-only attribute.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support seekable attribute.

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


grammar

videoObject .seekable

return value

Types of description
TimeRanges objects

Represent audio / video addressable portion.

TimeRanges object properties:

  • length - obtaining audio / video range of the number of addressable
  • start(index) - get addressable range starting position
  • end(index) - get addressable range of end position

Note: The first addressable range of the index is index 0.



Video Object Reference Video Object