Proposal: Give extensions easy access to MediaSession #522
Labels
neutral: chrome
Not opposed or supportive from Chrome
neutral: firefox
Not opposed or supportive from Firefox
neutral: safari
Not opposed or supportive from Safari
I've been prototyping a browser extension that adds play/pause buttons to the tab context menu. A problem I've run into is that there's no good way to interact with a page's MediaSession from the background. Currently, I've worked around this by using a content script and message passing. This is not good for performance and requires the scary 'Access your data for all websites' permission, which is not ideal for Manifest v3.
It'd be neat if the background service worker could:
With these capabilities, lots of cool extensions could be made. I'm not sure what a concrete API design would look like at this point.
The text was updated successfully, but these errors were encountered: