MediaSessionActionDetails.seekOffset - Web APIs 编辑
The MediaSessionActionDetails
dictionary's seekOffset
property is an optional value passed into the action handler callback to provide the number of seconds the seekforward
and seekbackward
actions should move the playback time by.
Syntax
let mediaSessionActionDetails = { seekOffset: deltaTimeInSeconds }; let deltaTime = mediaSessionActionDetails.seekOffset;
Value
A floating-point value indicating the time delta in seconds by which to move the playback position relative to its current timestamp. If the offset isn't specified, the user agent will choose an appropriate offset automatically. This is typically in the range of five to ten seconds.
Specifications
Specification | Status | Comment |
---|---|---|
Media Session Standard The definition of 'MediaSessionActionDetails.seekOffset' in that specification. | Draft | Initial definition. |
Browser compatibility
BCD tables only load in the browser
See also
- Media Session API
- Refer to the
MediaSession
methodsetActionHandler()
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论