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

Does not automatically find iOS phone #24

Closed
agillis opened this issue Jan 30, 2014 · 11 comments
Closed

Does not automatically find iOS phone #24

agillis opened this issue Jan 30, 2014 · 11 comments

Comments

@agillis
Copy link

agillis commented Jan 30, 2014

I tested squeezebox-googlemusic today and works well. I have an iPhone not Android so the config GUI did not find my Mobile Device ID automatically. I needed to run mobile_devices.py.

Once I entered my iPhone id it worked great. Maybe it could find iPhone ids automatically. The ID looks like this
ios:0123456789abcdef

@hechtus
Copy link
Owner

hechtus commented Jan 30, 2014

Hi, thanks for reporting this. Could you please paste the exact output of mobile_device.py here.

@agillis
Copy link
Author

agillis commented Jan 31, 2014

This is the output of mobile_device.py for my iPhone 5s

Monkey | None | IOS | ios:0123456789abcdef

@hechtus
Copy link
Owner

hechtus commented Jan 31, 2014

OK. Interesting. And how did you enter the device ID? With or without the "ios:" prefix to make it work?

@agillis
Copy link
Author

agillis commented Jan 31, 2014

I entered this to get it working

ios:0123456789abcdef

I did not try it without the ios: I'll test that today.

@hechtus
Copy link
Owner

hechtus commented Jan 31, 2014

OK, but you need to check, that you can really play songs. The device ID is used to get the stream URL of a song. If it's not correct, a song cannot be played back.

@agillis
Copy link
Author

agillis commented Jan 31, 2014

I did some more testing today. This is the test and the results. This is the output from my mobile_devices.py

OfficePC | None | DESKTOP_APP | 00:2B:63:9B:C2:EB
vortexbox.localdomain (gmusicapi-3.1.1-dev) | None | DESKTOP_APP | D0:22:84:BC:AD:79
Monkey | None | IOS | ios:0123456789abcdef

So ios:0123456789abcdef or 0123456789abcdef both work. The desktop apps with MAC addresses do not.

Test

Go to the google plug-in setting page and enter my account and the Mobile Device ID to be tested.

  1. Go to the plug-in menu and select "Reload Libary". Make sure all my tracks are listed.
  2. Play a track

Results

ios:0123456789abcdef

  1. OK
  2. OK

0123456789abcdef

  1. OK
  2. OK

00:2B:63:9B:C2:EB

  1. OK
  2. track does not play. Get error in logs
    [14-01-31 10:29:14.6458] Plugins::GoogleMusic::ProtocolHandler::getNextTrack (98) Looking up stream url for url googlemusic:track:6974994c-ce01-3e22-8938-9d1ec942675e failed.

D0:22:84:BC:AD:79

  1. OK
  2. track does not play. Get error in logs
    [14-01-31 10:29:14.6458] Plugins::GoogleMusic::ProtocolHandler::getNextTrack (98) Looking up stream url for url googlemusic:track:6974994c-ce01-3e22-8938-9d1ec942675e failed.

@agillis
Copy link
Author

agillis commented Jan 31, 2014

I like the way it creates a new player for squeezebox-googlemusic (called gmusicapi) It's to bad you need to have an ID from an iphone or android app to make squeezebox-googlemusic work. The web based player doesn't seem to need and ID.

@hechtus
Copy link
Owner

hechtus commented Jan 31, 2014

Thank you very much for testing! So, I will add some code to allow IOS device ids to be configured automatically.

You are right. It's a pity that you will need a mobile device to use the plugin. But the webclient API which does not need a mobile ID does not easily support all access streaming. It splits up all access tracks into small pieces. Furthermore, it is quite unstable. You may have a look at the documentation of the Python gmusicapi.

As a workaround you may also run an Android emulator in a virtual machine to generate a device ID and register this at Google music. It works. :-)

Another thing I like to mention is that I'm extremely happy to see that you included this plugin into vortexbox. But please do not use the master branch, but the correct release tag. The current release tag is v0.3.2. At the moment the master branch is under heavy development. I'm continuing v0.3 releases on the v0.3 branch.

@agillis
Copy link
Author

agillis commented Jan 31, 2014

OK I updated VortexBox to use your 0.3.2 branch.

@hechtus
Copy link
Owner

hechtus commented Jan 31, 2014

Great! Thanks. And yes, PC MAC addresses unfortunately do not work as device IDs.

@hechtus
Copy link
Owner

hechtus commented Feb 6, 2014

Please check out the new release v0.3.3

hechtus referenced this issue in simon-weber/gmusicapi Mar 1, 2014
@hechtus hechtus closed this as completed May 29, 2014
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

No branches or pull requests

2 participants