web api instance method
MediaSource: setLiveSeekableRange() method
Available in workers
The setLiveSeekableRange() method of the
MediaSource interface sets the range that the user can seek to in the
media element.
Syntax
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
TimeRangesobject returned by theseekableproperty will have a start timestamp no greater than this value.
- : 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
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
TimeRangesobject returned by theseekableproperty will have an end timestamp no less than this value.
- : 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
Return value
None (undefined).
Examples
// TBD
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.