FD- / RPiPlay

An open-source AirPlay mirroring server for the Raspberry Pi. Supports iOS 9 and up.
GNU General Public License v3.0
4.89k stars 354 forks source link

owntone breaks RPiPlay #337

Open frankusb opened 2 years ago

frankusb commented 2 years ago

If I have owntone running, which has support for Airplay devices, rpiplay will not allow connections. On startup I get:

pi@raspberrypi:~ $ /usr/local/bin/rpiplay -d stream info: channel = 2 sample_rate = 44100 frame_size = 480 aot = 39 bitrate = 0 Initialized server socket(s) WARNING The program 'rpiplay' uses the Apple Bonjour compatibility layer of Avahi. WARNING Please fix your application to use the native API of Avahi! WARNING For more information see http://0pointer.de/blog/projects/avahi-compat.html Accepted IPv4 client on socket 15 Local: 192.168.1.169 Remote: 192.168.1.88 httpd receiving on socket 15 Connection closed for socket 15 Destroying connection

192.168.1.88 is running the owntone server.

If I stop owntone before running rpiplay, then connections work normally.

pi@raspberrypi:~ $ /usr/local/bin/rpiplay -d stream info: channel = 2 sample_rate = 44100 frame_size = 480 aot = 39 bitrate = 0 Initialized server socket(s) WARNING The program 'rpiplay' uses the Apple Bonjour compatibility layer of Avahi. WARNING Please fix your application to use the native API of Avahi! WARNING For more information see http://0pointer.de/blog/projects/avahi-compat.html Accepted IPv4 client on socket 15 Local: 192.168.1.169 Remote: 192.168.1.106 httpd receiving on socket 15 conn_request Handling request GET with URL /info INFO len = -1288718124 httpd receiving on socket 15 conn_request Handling request POST with URL /pair-setup httpd receiving on socket 15 conn_request Handling request POST with URL /pair-verify httpd receiving on socket 15 conn_request Handling request POST with URL /pair-verify httpd receiving on socket 15 conn_request Handling request POST with URL /fp-setup httpd receiving on socket 15 conn_request Handling request POST with URL /fp-setup httpd receiving on socket 15 conn_request Handling request SETUP with URL rtsp://192.168.1.169/3534893432778148038 DACP-ID: 409FA59793145CC1 Active-Remote: 499953737 ....

frankusb commented 2 years ago

The owntone log shows:

[2022-04-02 20:27:19] [ LOG] raop: No response from 'RPiPlay' (192.168.1.169) to OPTIONS request [2022-04-02 20:27:19] [ LOG] player: The AirPlay 1 device 'RPiPlay' failed to activate

frankusb commented 2 years ago

Owntone can be modified to not try to connect to every airplay device it sees and doing this does allow other devices to connect. See issue 1440. But if owntone tries to connect, it fails and the RPiPlay will no longer accept connections.

frankusb commented 2 years ago

Owntone is a red herring. Basically, rpiplay allows one connection then subsequent connections fail. I've tried both buster and bullseye light on a Raspberry Pi Zero W.