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

Mobile browser on same network can not connect to Spotify #130

Open
s-cotton opened this issue Aug 24, 2016 · 3 comments
Open

Mobile browser on same network can not connect to Spotify #130

s-cotton opened this issue Aug 24, 2016 · 3 comments
Labels

Comments

@s-cotton
Copy link

I have the interface up and running on a rPi2, and I am passing through a virtualhost with apache proxypass from my home web server to the Mopidy web port. I can access the interface without issue, and was able to connect spotify from a browser on a desktop on the LAN. Works as expected there using the virtualhost address, mp.domainname.com (Ports 6680, 6681 and 6600 have been mapped on the router to forward through to the rPi as well).

I tried to connect in my Android phone so that I could control the system from there, but upon authenticating the spotify application, I end up at a blank screen on your domain, at the spotmop.php file. I was connected via WiFi at that point, so I also tried doing it over my 4G connection with the same results.

Am I missing a piece of the setup here? Thanks!

@jaedb
Copy link
Owner

jaedb commented Aug 25, 2016

Hmm, that would suggest a lack of browser support for HTML5 window.postMessage functionality (see specs). What browser and version are you using on your Android phone? Do you have javascript disabled on your phone or browser?

Please note that in order to achieve this outside of the network your RaspberryPi is on you will typically need to have a fixed IP address.

@s-cotton
Copy link
Author

Chrome 52.0.2743.98
Android 6.0.1 A0001 Build/MHC19Q
Fixed IP is resolved with Dynamic DNS and the Virtualhost. Ive been able to use it fine if there is another user (the desktop user) who has signed into spotify and I uncheck "Connect with Spotify" in the mobile device, but only if that desktop user has already started music playing, otherwise I get the "Connect with Spotify" error message in the top pane of the application. At that point, I try to connect with spotify and I get the white screen.

@jaedb
Copy link
Owner

jaedb commented Aug 31, 2016

Quick question - what version of Spotmop are you running?

@jaedb jaedb added the stale label Sep 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants