The spec says it must be called with a details dict [1]
[1] https://w3c.github.io/mediasession/#callbackdef-mediasessionactionhandler
fvogt |
Plasma |
The spec says it must be called with a details dict [1]
[1] https://w3c.github.io/mediasession/#callbackdef-mediasessionactionhandler
Given we don't support seeking, only the bare "details" with the action is implemented.
navigator.mediaSession.setActionHandler("nexttrack", (details) => { console.log("next track", details); });
prints next track {action: nexttrack} now instead of next track undefined
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
extension/content-script.js | ||
---|---|---|
673 | If you mention "seekforward", "seekbackward" or "seekto" here it can be found easier |