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

...

 

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

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes Yes89 ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes Yes8 ? ? ?

See also

文档标签和贡献者

最后编辑者: fscholz,