Closed hiroyuki177 closed 2 years ago
The errors seem to centre around PTP - try to disable PTP using correct flags. But PTP was on in both cases, so it's difficult to say either way :shrug:
OK - this looks directly related to PTP.
If I run
python3 ap2-receiver.py -n en0 --debug
the AP shows up but I cannot connect from the tethered iPhone.
If I run
python3 ap2-receiver.py -n en0 --debug -ftxor 41
on a tethered iPhone, the AP shows up and I can connect and stream. Audio does not work, because we're in buffered audio, NTP mode, which implies FP2 encryption (I think)..? I see no shk
exchanged...
BUT, if you run
python3 ap2-receiver.py -n en0 --debug -ftxor 41 40
then you get 'unbuffered' audio and ANNOUNCE, which works - I committed it a while ago.
Addendum: I'm not certain what iOS does not like about PTP, but it's iOS that causes the problem here.
Evidently, (some versions of) iOS cannot handle PTP and tethered clients (very well).
I've tried and it works, thanks. Using NTP with 'unbuffered' audio and ANNOUNCE rather than PTP is fine, but these are features from AirPlay 1. Hopefully the problem will be fixed in a future version.
Server: iPhone (iOS 15.1) Receiver: Windows with python 3.6
When making connections with local router or windows tethering everything is ok, while using personal hotspot from iPhone, the pairing process would be stopped after server received the reply from the second fairplay setup. I have no idea that whether two apple device could use AirPlay by personal hotspot, so if there's any solution (maybe NTP with legacy pairing), please tell me, thanks.
System logs of iPhone from one failed connection
System logs of iPhone from one successful connection