The setLiveSeekableRange()
method of the MediaSource
interface sets the range that the user can seek to in the media element.
On this page
MediaSource: setLiveSeekableRange() method
Syntax
js
setLiveSeekableRange(start, end)
Parameters
-
start
-
The start of the seekable range to set in seconds measured from the beginning of the source. If the duration of the media source is positive infinity, then the
TimeRanges
object returned by theHTMLMediaElement.seekable
property will have a start timestamp no greater than this value. -
end
-
The end of the seekable range to set in seconds measured from the beginning of the source. If the duration of the media source is positive infinity, then the
TimeRanges
object returned by theHTMLMediaElement.seekable
property will have an end timestamp no less than this value.
Return value
None (undefined
).
Examples
js
// TBD
Specifications
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
setLiveSeekableRange |
62 | 17 | 50 | No | 49 | 10.1 | 62 | 62 | 50 | 46 |
13Exposed in Mobile Safari on iPad but not on iPhone. |
8.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/setLiveSeekableRange