MediaSource.setLiveSeekableRange()

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 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 Extensions
The definition of 'setLiveSeekableRange()' in that specification.
Recommendation Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support62 No No No49 No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support6262 ? ?49 ? No

Document Tags and Contributors

Contributors to this page: jpmedley
Last updated by: jpmedley,