This is an experimental technology
Check 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 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
Example
// TBD
Specifications
Specification | Status | Comment |
---|---|---|
Media Source Extensions The definition of 'setLiveSeekableRange()' in that specification. |
Recommendation | Initial definition. |
Browser compatibility
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
setLiveSeekableRange | 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.