MPRIS does not work with Firefox (the issue is open for 3 years).
Not possible to get the currently playing track from the Chromium browser on Windows/Mac.
Le solution
We can create a browser extension to pass the currently playing track to sptlrx. I see two ways to achieve this:
The extension creates an HTTP server. sptlrx sends a GET request to it every X seconds to get the currently playing track. But I'm not sure if it's possible to create one.
sptlrx creates an HTTP server. The extension sends the currently playing track every X seconds via a POST request.
Also, there is a thing called Native messaging, but this requires additional research.
Le problem
Le solution
We can create a browser extension to pass the currently playing track to sptlrx. I see two ways to achieve this:
Also, there is a thing called Native messaging, but this requires additional research.