YoutubeMusicRPC icon indicating copy to clipboard operation
YoutubeMusicRPC copied to clipboard

<feat> Mozilla Firefox support

Open Werameli opened this issue 2 years ago • 4 comments

Can you please add Mozilla Firefox support?

Werameli avatar Jun 29 '23 20:06 Werameli

Hi, I will work on it. Thank you for your issue.

manucabral avatar Jul 16 '23 16:07 manucabral

#24 maybe will be added in a future :-)

larayavrs avatar Sep 11 '23 03:09 larayavrs

Looked into adding Firefox support. Starting the Firefox browser using a subprocess with remote debugging enabled seems to work fine. Cannot seem to create a connection to the web socket however. Getting "The handshake request has incorrect Origin header" error. Assuming the flag --remote-allow-origins" when starting the browser process does not work but no clue how to fix

PickleUpADoodle avatar Feb 16 '24 21:02 PickleUpADoodle

Update: by setting --remote-allow-origins=http://127.0.0.1:9222/ it is possible to establish a websocket connection. Issue now is that the command evaluate.runtime returns context is null error. Have not been able to track the context id of the window, although omitting the "contextId" parameter should just take the regular window as default, like with the current Chrome implementation, but that is not working for Firefox.

PickleUpADoodle avatar Feb 17 '24 16:02 PickleUpADoodle