Web/API/MediaSessionActionDetails/seekOffset

From Get docs

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 StandardThe definition of 'MediaSessionActionDetails.seekOffset' in that specification. Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet

seekOffset

Experimental'

Chrome

Full support 73

Edge

Full support ≤79

Firefox Full support 76

Disabled'

Full support 76

Disabled'

Disabled' From version 76: this feature is behind the dom.media.mediasession.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

IE

?

Opera

No support No

Safari

?

WebView Android

No support No

Chrome Android

Full support 57

Firefox Android

No support No

Opera Android

No support No

Safari iOS

?

Samsung Internet Android

Full support 7.0

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.'
Experimental. Expect behavior to change in the future.
User must explicitly enable this feature.'
User must explicitly enable this feature.



See also