This will show you how to airplay from iPhone or iPad to linux. This way you can stream from your iPhone to a linux media server, or a raspberry pi :D If you don’t know what airplay is already, then this post most likely isn’t for you, but here is a definition from apple

Play content from your iPhone, iPad, iPod touch or Mac on your HDTV.
AirPlay lets you wirelessly stream what’s on your iOS device and Mac to your HDTV and speakers.1 Or mirror exactly what’s on your display to the big screen. Guests can even share their content with peer-to-peer AirPlay.2 Holiday photos, blockbusters, presentations, the latest games — AirPlay and Apple TV put it all on your TV.

Sending to a linux destination

To be able to Airplay from iphone or ipad to a linux target we need to setup a totem plugin on the linux machine. To do this, first, make sure you have totem player installed in your linux machine if you don’t have it already.

apt-get install totem
or
yum install totem

The next step is to clone the totem airplay plugin from github to the totem plugin folder in your own machine:

cd ~/local/share/totem/plugins/airplay

git clone https://github.com/phuang/totem-plugin-airplay
create the folders first if you don’t have them.

Next, open totem player.

Enable the airplay plugin from the edit > plugins configuration screen. You can now Airplay from iphone or ipad to linux!

Sending from a linux source

There are various options available, the best source being here:

https://github.com/jamesdlow/open-airplay

Sources: https://github.com/phuang/totem-plugin-airplay


3 Comments

Geermc4 · April 24, 2012 at 10:49 pm

doesn’t show as a plug in to enable , what did i miss.

Gman Smith · February 13, 2016 at 7:59 pm

i enabled it but i get errors on the totem console. im running linux in a chroot, so it will be hard to get the error codes, but its somthing about avahi?

Mark Jagodzinski · March 27, 2020 at 6:27 pm

It isn’t showing in the Configure Plugins menu