HTML DOM Video seekable attribute
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);
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
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:
Note: The first addressable range of the index is index 0. |
Video Object