Closed Memphiz closed 10 years ago
Hmm, it most certainly allows the second connection attempt, but it is possible that something is done wrong before disconnect. I got reports about password not working before, but it worked for me (on my iPhone/iPad) but if this is a iTunes problem then I can understand. Will look into this.
Actually I just debugged this problem and it seems that when I try to connect with iTunes to my atv3, it first does a fairplay handshake and only then tries to do the authentication. I tried to change shairplay's reply so that it responds exactly the same kind of Unauthorized message as atv3, but it doesn't seem to work without the fairplay handshake.
I'll still play with it for a while, but it looks like Apple might have dropped airport password support from iTunes completely. There is one trick I haven't tried yet so I'll check it out first.
Silly me, I just need to let the OPTIONS request pass without authorization and everything works.
btw handshake code is here:
https://github.com/Memphiz/xbmc/commit/bd6fac6826459933328f21e278af520a27d8f111
but we have no use for the fpaeskey ;)
In fact we have lots of use for the fpaeskey if someone can just tell us how to decrypt it. In that case I'd implement screen mirroring support right away, but until then I can just try to figure it out. :S
confirmed working - thx for the fix :)
When using iTunes and having the pw protection enabled itunes just responds with "the airplay receiver is not compatible" or something like that.
I captured the stream in wireshark and see the following difference:
itunes -> atv2
itunes -> xbmc/libshairplay
Could it be that shairplay doesn't allow the second connection attempt or something?