ckdo / airplay2-receiver

AirPlay 2 receiver - python implementation only for testing
125 stars 7 forks source link

Connection can't get past POST/command on MacOS 10.15 #8

Closed jdtsmith closed 3 years ago

jdtsmith commented 4 years ago

On MacOS I had to add -n en0 to get it running, but otherwise seems to start fine. Endpoint appears in Airplay List from iPhone, but when attempting to join, it doesn't seem to get past the POST /command section. So authentication apparently works (!), but then the RTSP stream has a TEARDOWN, and the connection is rejected. airplay2-receiver keeps running after this, but doing nothing, and CPU usage spikes. A further attempt to connect while still running doesn't get as far (to ----- ENCRYPTED CHANNEL -----), and CPU usage spikes even more.

You can see the output here. Thanks for working on this.

danielhelmstedt commented 3 years ago

yep, same here

jdtsmith commented 3 years ago

One conjecture from ckdo is this relates to the Airplay version the sending device attempts to use. I tried (iPhone iOS 14.2):

User-Agent: AirPlay/525.38.2

which fails, but he has tested primarily with older senders. In fact with an older MacOS running iTunes (User-Agent: AirPlay/387.2), I can connect and playback works! Newer versions of the MacOS Music app running AirPlay/425.1 also fail to connect.

He thinks perhaps a PTP check is made that does not get a response from the server.

PaulWieland commented 3 years ago

@jdtsmith Try again with the latest version. I believe this is fixed and can be closed.

jdtsmith commented 3 years ago

Yep been fixed for a while, thanks for the reminder.