Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser extension #28

Closed
raitonoberu opened this issue Sep 8, 2023 · 1 comment · Fixed by #31
Closed

Browser extension #28

raitonoberu opened this issue Sep 8, 2023 · 1 comment · Fixed by #31

Comments

@raitonoberu
Copy link
Owner

Le problem

  • 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:

  1. 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.
  2. 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.

@raitonoberu
Copy link
Owner Author

I came across WebNowPlaying-Redux extension and immediately started integrating in into sptlrx. You can check it out in the browser branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant