MediaSessionActionDetails.seekOffset

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

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
seekOffset
73
79
82
71
No
No
No
No
57
82
Firefox exposes the API, but does not provide a corresponding user-facing media control interface.
No
No
7.0

See also

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/MediaSessionActionDetails/seekOffset