w3c/mediasession

MediaSession API on Edge in showing ANY buttons when entering picture-in-picture

Closed this issue · 2 comments

Hi,

When trying to assign "nexttrack" and "prevtrack" - the buttons are not showing up in PiP mode.

It seems to work well on chrome (version 101) but on Edge (version 101) ALL the buttons are hidden. Even the "close" button is overlayed by a weird gray shadow - which is not the case on chrome.

Ref to MDN + compatibility table: https://developer.mozilla.org/en-US/docs/Web/API/MediaSession/setActionHandler

An image is attached for example:

https://photos.app.goo.gl/iM1QPzJJuqzesyQv8

Any ideas?

Thanks!
-m

UP (very weird)

This seems like a bug in Microsoft's usage of the Media Session API and not with the spec itself. Please file feedback to Microsoft directly (which I believe you can do via the "Send feedback" option in the Edge menu)