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.

句法

let mediaSessionActionDetails = { seekOffset: deltaTimeInSeconds };
let deltaTime = mediaSessionActionDetails.seekOffset;
					

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 用户代理 will choose an appropriate offset automatically. This is typically in the range of five to ten seconds.

规范

规范 状态 注释
Media Session Standard
The definition of 'MediaSessionActionDetails.seekOffset' in that specification.
草案 初始定义。

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.

No compatibility data found. Please contribute data for "api.MediaSessionActionDetails.seekOffset" (depth: 1) to the MDN 兼容性数据存储库 .

另请参阅

元数据

  • 最后修改: