ruby-dacpclient icon indicating copy to clipboard operation
ruby-dacpclient copied to clipboard

Support for homesharing?

Open jkiddo opened this issue 11 years ago • 5 comments

I saw that the homesharing feature is removed because it was incomplete. Could you explain what is needed for the feature to be completed?

jkiddo avatar Aug 11 '14 07:08 jkiddo

Home sharing authentication is quite easy, but you need to communicate using special headers with the iTunes server for it to accept commands other than the status command. I don't have the time to do that right now.

jurriaan avatar Aug 11 '14 08:08 jurriaan

I would like to include this feature in my own implementation of a DACP client (project Jolivia) and have duplicated your pairing mechanism using the Apple token - however it does not seem to be enough. Can you confirm that your pairing algorithm and that you are able to control the latest version of iTunes using your implementation of Homesharing?

jkiddo avatar Aug 12 '14 12:08 jkiddo

It did work before. I reverse engineered it using mitmproxy on my iPhone. So if anything's changed you should be able to see that if you look at the traffic between a iOS device and Apple's servers/iTunes.

jurriaan avatar Aug 12 '14 13:08 jurriaan

Would you care to test it again? I've run a couple of traces with Wireshark between Remote on iPhone and on my PC. It seems pretty clear what happens - however there seems to be a key exchange during the /fp-setup calls which is used later on. So the problem is not to login - its to go further than that. Could you please have a check to see if it works for you?

jkiddo avatar Aug 12 '14 21:08 jkiddo

Have you had the time to dig into it?

jkiddo avatar Aug 17 '14 17:08 jkiddo