Forum

Full Version: Airplay not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I just installed Xbian (XBian_2016.12.23_rpi) on a Raspberry PI 1. I'm also running macOS 10.12.1 and a iPhone with iOS 10.2.
In Kodi I activated Zeroconf and AirPlay, but in the AirPlay settings I deactivated "Enable Airplay videos and pictures support". But xbian doesn't show up in my AirPlay devices. AirPlay works fine in the newest versions of OSMC and OpenELEC. Any ideas? (By the way, nothing to read in the kodi.log)
I have the same issue. On RPI3 Airplay doesnt work, avahi-daemon is running, but myMac and other devices are not able to find Airplay device.
I'll investigate this issue. Unfortunately I do not have any Apple hardware, so I have to install iTunes for Windows first.
So, iTunes for Windows version 12.5.4.42 installed in my Wndows 7/32bit virtual machine and tested.

Here are my results:
  • RPi1, Kodi 16.1, WLAN connection:
    Does not work, absolutely nothing in the logfiles (neither Kodi log nor system log)
  • RPi1, Kodi 17.0 rc1, WLAN connection:
    Does not work, CZeroconfAvahi message in Kodi log, but library libshairplay.so.0 is not loaded
  • RPi2, Kodi 17.0 rc1, LAN connection:
    Working
  • RPi2, Kodi 16.1, LAN connection:
    Working
  • RPi3, Kodi 17.0 rc1, WLAN connection:
    Working
  • i.MX6(Hummingboard), Kodi 16.1, WLAN connection:
    Working
  • RPi3, Kodi 17.0 rc1, WLAN connection, binary (kodi.bin) built for RPi1:
    Does not work

Conclusion:
It seems Kodi builds for RPi1 does not work, no idea why Huh libshairpackage has same version on all devices. Has to be investigated in next year

@rab
It should work, see my test results



I have Rpi3 and latest stable version. Rpi3 connected via LAN (wlan is disabled). iPhone and macbook cannot find Rpi device...

Is different to use WLAN or LAN?

(1st Jan, 2017 05:10 AM)Nachteule Wrote: [ -> ]So, iTunes for Windows version 12.5.4.42 installed in my Wndows 7/32bit virtual machine and tested.

Here are my results:
  • RPi1, Kodi 16.1, WLAN connection:
    Does not work, absolutely nothing in the logfiles (neither Kodi log nor system log)
  • RPi1, Kodi 17.0 rc1, WLAN connection:
    Does not work, CZeroconfAvahi message in Kodi log, but library libshairplay.so.0 is not loaded
  • RPi2, Kodi 17.0 rc1, LAN connection:
    Working
  • RPi2, Kodi 16.1, LAN connection:
    Working
  • RPi3, Kodi 17.0 rc1, WLAN connection:
    Working
  • i.MX6(Hummingboard), Kodi 16.1, WLAN connection:
    Working
  • RPi3, Kodi 17.0 rc1, WLAN connection, binary (kodi.bin) built for RPi1:
    Does not work

Conclusion:
It seems Kodi builds for RPi1 does not work, no idea why Huh libshairpackage has same version on all devices. Has to be investigated in next year

@rab
It should work, see my test results



(2nd Jan, 2017 02:45 AM)rab Wrote: [ -> ]I have Rpi3 and latest stable version. Rpi3 connected via LAN (wlan is disabled). iPhone and macbook cannot find Rpi device...

Is different to use WLAN or LAN?

No, don't think so. If you read my results, I tested it with WLAN and LAN, both works (RPi2 I used LAN, RPi3 I used onboard WLAN and my VM running iTunes is connected via WLAN)
@rab

You should enable debug log and start kodi again.

Then you should see two messages in log like this:

Code:
Jan  1 17:39:40 kmxbibr 344 853588.125000 T:3021475840   DEBUG: SECTION:LoadDLL(libshairplay.so.0)
Jan  1 17:39:40 kmxbibr 363 853588.125000 T:3021475840   DEBUG: Loading: libshairplay.so.0

or check ports opened by Kodi

Terminal

sudo netstat -anp | grep 366
tcp 0 0 0.0.0.0:36666 0.0.0.0:* LISTEN 11607/kodi.bin
tcp6 0 0 :::36666 :::* LISTEN 11607/kodi.bin

Kodi should listen on port 36666
Good news Smile The RPi1 issue has been fixed, Airplay is working again with RPi1 (both version 16.1 and 17.0 rc tested sucessfully), new packages have been built and are ready for update
Airplay is working from Windows iTunes - tested on my desktop PC - with RPI3 and 17 RC2 (and latest version 16).

But still doesn`t work for iOS 10 and macOS Sierra. I have log files from TCPDump and error are in SRV records - from my point of view. iTunes windows is checking a lot of SRV records and waiting for reply. iOS 10 send only one query.
Hmmm, absolutely not good information Sad So I can not help anymore

Found this thread, maybe it helps
On my RPi3 with Kodi 16.1, Airplay doesn't work neither over Wifi nor over Ethernet with my iPhone 6S, iOS 10.2.
What can we do to have this working again? I was putting quite some hope into using Airplay.

Running the suggested tests gives me:
Terminal

$ sudo netstat -anp | grep 366
tcp 0 0 0.0.0.0:36666 0.0.0.0:* LISTEN 1547/kodi.bin
tcp 0 0 0.0.0.0:36667 0.0.0.0:* LISTEN 1547/kodi.bin
netstat: /proc/net/tcp6: No such file or directory
netstat: /proc/net/udp6: No such file or directory
netstat: /proc/net/raw6: No such file or directory

Terminal

$ cat ~/.kodi/temp/kodi.log | grep airplay
19:10:03 19.886923 T:1953181696 DEBUG: SECTION:LoadDLL(libshairplay.so.0)
19:10:03 19.888994 T:1953181696 DEBUG: Loading: libshairplay.so.0
19:10:03 19.933195 T:1516319664 DEBUG: CZeroconfAvahi::doPublishService identifier: servers.airplay type: _airplay._tcp name:XBian port:36667
19:10:03 19.933334 T:1516319664 DEBUG: CZeroconfAvahi::addService() named: XBian type: _airplay._tcp port:36667
(3rd Jan, 2017 06:56 PM)rab Wrote: [ -> ]Airplay is working from Windows iTunes - tested on my desktop PC - with RPI3 and 17 RC2 (and latest version 16).

But still doesn`t work for iOS 10 and macOS Sierra. I have log files from TCPDump and error are in SRV records - from my point of view. iTunes windows is checking a lot of SRV records and waiting for reply. iOS 10 send only one query.

Further to this statement as I am trying to solve the same thing.... I have found that enabling the airplay option in the GUI... then shortly thereafter disabling it, it will show up in my audio device list (In control center) and does stream to the pi. It works until either rebooted or switched back on for whatever reason.
Hello everybody,

I'm also experiencing Airplay problems with xbian - Kodi 17.3 (Git2017-05-26-1521bf9) and OS X 10.11.6 or iOS 10.3.3 (14G60). No device can be found in airplay. Trying a clean runeaudio image, streaming works like a charm.

Both services (avahi-daemon & dbus) are up and listening to the ports mentioned above:

Code:
tcp        0      0 0.0.0.0:36666           0.0.0.0:*               LISTEN      2114/kodi.bin
tcp        0      0 0.0.0.0:36667           0.0.0.0:*               LISTEN      2114/kodi.bin
netstat: /proc/net/udp6: No such file or directory
netstat: /proc/net/raw6: No such file or directory
unix  3      [ ]         STREAM     CONNECTED      13666 686/dbus-daemon     /var/run/dbus/system_bus_socket

However I cannot find the so often mentioned zeroconf options unter the menu "Service settings" > "General" (switching to expert mode). There I can only change the device name option.
Airplay has been enabled.

Are you guys experiencing the same issues as I do or do you have any idea what can be done?

Thanks for all your help in advance!

Cheers
I suppose Airplay is not working anymore with recent versions of OSX and iOS
Interestingly, I got it working for a short time with a clean install of xbian. However, that stopped somehow shortly after.

By manually installing the package "shairport-sync", I got to manage a perpament working connection to airplay.

Terminal
sudo apt-get install shairport-sync

Maybe installing this package may be helpful to someone else, too in order to get airplay running with xbian (worked out for me of the box with hifiberry digi+ and alsa output).
Pages: 1 2
Reference URL's