WebNowPlaying-BrowserExtension icon indicating copy to clipboard operation
WebNowPlaying-BrowserExtension copied to clipboard

Found Out A Simple Way to Support Many Websites

Open MostOriginalIGN opened this issue 4 years ago • 1 comments

Hi! I was using WebNowPlaying but I realized that it wasn't working for some sites. So, as a developer, I looked for better ways to get the now playing status. Which is when I remembered Chrome has a built in media controller that shows the song name, artist, and cover art. Global Media Controls So I looked on how I could pull data from that. I found a way that is surprisingly easy! navigator.mediaSession Tidal Playing Industry Baby by LilNasX Example Soundcloud image Spotify image

I hope that this can help make this extension better by supporting a lot more media websites.

MostOriginalIGN avatar Jan 14 '22 06:01 MostOriginalIGN

Since you're a developer you could at the very least make a PR so that it's easier for the owner of this repo to merge (and maybe see it?). PS. I'm new here so I don't know how well maintained this is.

DarkCeptor44 avatar Oct 04 '22 03:10 DarkCeptor44

This is a decent idea, however a lot of websites don't support it. It's barely supported by big players like spotify even, as you see it never ends up setting the 'playbackState', and it also doesn't provide us with functions to pause/play/set volume, etc. Future development of the browser extension will continue here, where mediaSessions are already made use of where ever it made sense.

keifufu avatar Feb 22 '23 10:02 keifufu