HTMLMediaElement.seekable

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译
您也可以阅读此文章的English (US)版。

The seekable read-only property of the HTMLMediaElement returns a TimeRanges object that contains the time ranges that the user is able to seek to, if any.

Syntax

var seekable = audioOrVideo.seekable;

Value

A TimeRanges object.

Examples

// TBD

 

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'HTMLMediaElement' in that specification.
Living Standard No change from HTML5
HTML5
The definition of 'HTMLMediaElement' in that specification.
Recommendation Initial definition.
Media Source Extensions
The definition of 'HTMLMediaElement extensions, like for seekable' in that specification.
Recommendation Specifies a new algorithm for returning the seekable time range of a media element whose source is a MediaSource object.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support YesEdge Full support YesFirefox Full support 8IE Full support 9Opera ? Safari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 8Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown

See also

文档标签和贡献者

最后编辑者: oldmtn,