Web/API/MediaSource/setLiveSeekableRange

From Get docs

This is an experimental technologyCheck the Browser compatibility table carefully before using this in production.


The setLiveSeekableRange() method of the MediaSource interface sets the range that the user can seek to in the media element.

Syntax

mediaSource.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 the HTMLMediaElement.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 the HTMLMediaElement.seekable property will have an end timestamp no less than this value.

Return value

undefined

Example

// TBD

Specifications

Specification Status Comment
Media Source ExtensionsThe definition of 'setLiveSeekableRange()' in that specification. Recommendation Initial definition.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet

setLiveSeekableRange

Experimental'

Chrome

Full support 62

Edge

Full support 17

Firefox

No support No

IE

No support No

Opera

Full support 49

Safari

No support No

WebView Android

Full support 62

Chrome Android

Full support 62

Firefox Android

?

Opera Android

Full support 46

Safari iOS

No support No

Samsung Internet Android

Full support 8.0

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.'
Experimental. Expect behavior to change in the future.