Introduction: AirPlay Mirroring Without Apple TV (using RPi)

Picture of AirPlay Mirroring Without Apple TV (using RPi)

Ever wanted to mirror your iPhone, iPad, iPod or Mac to your TV, but you had no Apple TV?
Now you can without an Apple TV. With a Raspberry Pi and some free time you can transform your Pi into an AirPlay device that can mirror your iDevice to your TV using rPlay!

If you liked this instructable, please vote it! Thanks!

What you need:
1. A Raspberry Pi
2. A Wifi dongle or Ethernet connection
3. A PC
4. USB keyboard and mouse
5. An MicroSD card (4 GB or larger)
6. TV or a HDMI screen
7. HDMI cable
8. MicroUSB charger

Step 1: Preparing Your Pi

Picture of Preparing Your Pi

First, you must prepare your Pi!

Download the Raspbian image here: https://www.raspberrypi.org/downloads/raspbian/

Extract the image from the archive and plug your microSD card into your pc. Format it using SD Card Formatter (You can download it here: https://www.sdcard.org/downloads/formatter_4/ )

Using Win32DiskImager (Download it here: http://sourceforge.net/projects/win32diskimager/ ), select the location of your Raspbian Image , the SD card drive and than press 'Write'

After the program finishes writing the OS to the SD card, unplug your SD card. You won't need the PC anymore. :)

Step 2: Setting Up Your Pi

Picture of Setting Up Your Pi

Now, it's time to set up your Pi!

Plug your microSD card, USB keyboard and mouse, Wifi dongle or Ethernet cable, HDMI cable into the Pi. After that plug the microUSB charger too. Wait for the Os to load and than you can login with pi as the username and raspberry as the password.When the configuration menu shows up, expand the filesystem and n Advanced Option select memory split and type 256 . After that, reboot the Pi. If you are using Wifi dongle, type startx to launch the desktop and than connect to your network.

After that, you must update your Pi to the newest version. Open a terminal and write:

sudo apt-get update

sudo apt-get upgrade

sudo rpi-update

and wait for the Pi to update. After that, reboot your Pi.

Step 3: Installing the Software

You must install the needed software:

sudo apt-get install libao-dev avahi-utils libavahi-compat-libdnssd-dev libva-dev youtube-dl

wget -O rplay-1.0.1-armhf.deb http://www.vmlite.com/rplay/rplay-1.0.1-armhf.deb

sudo dpkg -i rplay-1.0.1-armhf.deb

Now you have installed rPlay and it will run automatically on boot. Reboot your Pi.

Step 4: Activating RPlay

Picture of Activating RPlay

Before you use rPlay, you must enter the license key.

Launch the desktop and open the web browser.

Type http://localhost:7100/admin and hit enter.

The username is admin and password admin.

Scroll to the end of the page and enter the License key (License key: S1377T8072I7798N4133R)

Step 5: Connecting Your IDevice to RPlay

Picture of Connecting Your IDevice to RPlay

On your iDevice, go to Airplay and select rPlay(raspberry) . The mirroring should begin!

Android users can use the YouMap app in order to connect to rPlay.

If you liked this instructable, please vote it! Thanks!

The End!

Comments

BrunoH34 (author)2017-09-02

Hello, "localhost" do not open in my raspberry, somebody can help me?

SohamS19 (author)2017-07-29

E: Command Line Option '0' [from -0] is not known.

MartinD193 (author)2017-02-21

Thanks for the instructions! Everything went fine while installing, but it doesn't show up on any iOS device. Any ideas?

ranswers (author)MartinD1932017-04-06

Nothing shows up for me too. Make sure you are on the same network as your pi.

JohnP671 (author)2017-03-02

Will this work without being on a wireless network, say in a car.

ranswers (author)JohnP6712017-04-04

No airplay uses wifi

JeradA (author)2017-02-19

I can reach the admin page and successfully edit settings but nothing ever shows up on iphone or imac. I am pretty sure that since 10.10 and def since 10.11 OSx Airplay spoofing like this has been patched

jjhuffo (author)2017-02-07

Never could make this work. Try Volumio, it works with Airplay, Spotify, NAS, internet radio and more. You do need to devote a Pi to music, but it works.

StefanG52 (author)2017-01-25

On IOS 10.2.1 it doesn't show rPlay in the Airplay list

faithie999 (author)2016-10-27

typo in above: error is "rplay-1.0.1-armhf.deb" is not a debian format archive

RichardD238 (author)faithie9992017-01-15

confirm the saved file name. It was rplay-1.0.1-armhf.deb.2 when I completed the installation

jjhuffo (author)2017-01-10

Installed, rPlay is running on the Pi, but IOS 10.2 doesn't show rPlay in the Airplay list. So, for me, it does not work.

p_wisard (author)2016-11-26

Hello!

Can anyone prove that this instruction works in IOS 10.2 or MacOS 10.12 ? Installation went smoothly but I don't see rplay device in the list. Thank you!

faithie999 (author)2016-10-27

when i execute the final command (sudo dpkg -i rplay-1.0.1-armhf.deb) i get the error:

dpkg-deb: error: 'play-1.0.1-armhf.deb' is not a debian format archive

any ideas?

thanks

Hector FS (author)2016-10-19

is not showing the raspberry in the airplay list (ios10 and macosx sierra)

jonfac (author)2016-10-07

Hi all, i was wondering if this would work for IOS10? I have recently update my Iphone. Thanks in advance,

TerryW50 (author)2016-06-22

Has anyone come up with a solution for this? It shows up as an Airplay device in iOS 9, but the rpi just isn't receiving any mirroring. Setup went smoothly with no errors. Running latest rasbian.

edjonesy (author)2016-05-17

I tried this last night, May 16 2016, with a MacBook Pro Retina OSX 10.11.5 and an iPhone 5S iOS 9.3.2.

The tutorial worked perfectly on the Raspberry PI, but, although it showed up as an airplay device on both the Mac and iPhone, audio would not play and mirroring was not available either.

I did however install 'shairport' on another card, using Raspbian Jessie Lite, it doesn't do mirroring at all, but it did play audio, perfectly.

tutorial for shairport on jessie lite
http://computers.tutsplus.com/tutorials/using-a-raspberry-pi-as-an-airplay-receiver--mac-54316

enabling wifi in jessie lite
https://thepihut.com/blogs/raspberry-pi-tutorials/83502916-how-to-setup-wifi-on-raspbian-jessie-lite

now I just want to be able to set that card to boot without asking for a username and password and to automatically run the shairport application.

Thanks to edyboy12 for posting the tutorial, it's a shame that it seems Apple have moved the goalposts though.

LorantR (author)2016-04-28

i did all the step and i can see on my ipad and connect but doesnt show anything...any solution? just update my ipad and still nothing

221480036 (author)LorantR2016-05-12

I have same problem actually, I can see connection as "rplay(raspberrypi)" on my iphone when I touch AirPlay. I select it and touch done but nothing appear screen of raspberry pi3. Any solution please ?

LaurenT18 (author)2016-01-20

Hi folks, was looking forward to this being the first programme i try to install on my Pi, however after following the instructions i'm getting an error message after step 3 (the second line of code) doesn't seem to install correctly when running the 3rd line of code.

Has anyone else had an issue with this step?

I've updated my software, rebooted etc. but to no avail.

PIT2 (author)LaurenT182016-04-30

don't do the third comman

NicolaG1 (author)2015-08-27

I got an error,i have lollipop and root ,using youmap

edyboy12 (author)NicolaG12015-08-27

You must start the Daemon first (press the green start button).

luca1977 (author)edyboy122016-03-01

Hi! I have a raspberry b+ with raspbian. I use yuomap but mirroring don t work... i don t understand what do with youmap green button .... sorry for my not good english

PIT2 (author)luca19772016-04-30

press i

NicolaG1 (author)edyboy122015-08-27

thx ,solved

JefC2 (author)2016-04-23

Hey, I'm running the new Raspberry Pi 3 OS X El Capitan 10.11.13. I had no problem throughout the tutorial, but rplay isn't showing up on my Airplay. Any advice?

OmerS (author)2016-04-15

I think there's a problem with the License key

Iv'e used License key:S1377T8072I7798N4133R

Got "rplay" running on my raspberry pi model b. My Macbook finds it on the network. I see the little screen icon in the topbar. In it, I can see the "rplay(raspberrypi)" AirPlay device. But when I'm trying to connect to it, I get "Could not connect to 'rplay (raspberrypi)'".

yosoufe (author)2016-01-17

Do you know any free software for windows users to share screen with rplay?

I know the AirParrot works fine but I am looking for free software.

Coky Jazz (author)yosoufe2016-03-21

This is not free actually, and just mirror the screen, audio not included. You can try Reflector

jiribrejcha (author)2016-03-11

Has anyone got it working with iOS 9.2.1, please?

flashsolutions (author)2016-03-04

Does not seem to work with IOS 9.2.1. iPhone connect via Airplay but nothing shows up on the Raspberry. I had no problems with the installation instructions and everything seemed to work, no errors, but just does not want to mirror my iPhone.

SteveN2 (author)flashsolutions2016-03-05

I'm having the same luck with ios 9.2.1. Everything seems to install on the pi, what I've noticed is that the icon next to the "rplay (raspberry pi)" is not the same as in this instructable, it kind of looks like an iPod, not a TV. Notice the TV icon next to my "Living Room Apple TV"

RajanP6 (author)2016-02-04

I tried to do it, but when I chose "rplay (raspberry pi)" from the AirPlay menu, nothing happens on the rpi's screen. What is wrong?

TheKingKarl (author)2016-02-03

I did all the steps, but when I select rplay on AirPlay nothing happens. No sound or anything.

JoshG49 (author)2016-01-03

broke in IOS 9

YunusDa (author)2015-12-29

hello it plays sound but no mirroring, the mirroring worked before but not anymore

ArchieW3 (author)2015-12-06

it shows and it is the speaker no mirroring. when I tap on it and play music nothing comes out the pi. Music streaming doesn't work on kodi as well so maby it's the software on my phone. (My phone is on ios 9.2 beta 4)

SteveW5 (author)2015-11-17

I was able to find my rplay on my network when I finished the install. After I rebooted the pi it disappeared. I have also stopped and restarted rplay. Still not showing up on my iOS device (6s +)

Robin PJ (author)2015-11-09

i have done upto activating rplay and successfully entered licence key.

Robin PJ (author)2015-11-09

hi can you please explain setting for android. i cant figure it out. ASAP please im really exited about this project.

JaviH2 (author)2015-11-08

My installation has stopped working 3 weeks ago. The computers cannot connect to the raspberry pi, although rplay is shown in the Airplay menu. I guess VMLite are cancelling the serial numbers to make place for the paid version of the app? Otherwise I don't get it. I've even tried reinstalling avahi and all the rest, to no avail.

JustinM71 (author)2015-11-07

I followed the steps and everything worked. I connected to my rasp pi via airplay, but nothing happens after it connects.

ikon00 (author)2015-10-30

I followed all steps, but the mirroring don't start. I use a ipad 4th gen with ios9.1

mcdom (author)2015-10-25

I followed the instructions to install everything, and it seems to be working (shows up in the AirPlay list of my iPhone 6 with iOS 9.1), but no sound comes from the pi 2. Has anyone else had this problem?

LinusJ (author)2015-10-14

I got this error when typing startx

X.Org X Server 1.12.4

Release Date: 2012-08-27

X Protocol Version 11, Revision 0

Build Operating System: Linux 3.2.0-2-mx5 armv7l Debian

Current Operating System: Linux raspberrypi 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l

Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1776 bcm2708_fb.fbheight=952 bcm2709.boardrev=0xa01041 bcm2709.serial=0xcdf3667 smsc95xx.macaddr=B8:27:EB:DF:36:67 bcm2708_fb.fbswap=1 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p10 rootfstype=ext4 elevator=deadline rootwait

Build Date: 11 February 2015 09:31:17PM

xorg-server 2:1.12.4-6+deb7u6 (Julien Cristau <jcristau@debian.org>)

Current version of pixman: 0.33.1

Before reporting problems, check http://wiki.x.org

to make sure that you have the latest version.

Markers: (--) probed, (**) from config file, (==) default setting,

(++) from command line, (!!) notice, (II) informational,

(WW) warning, (EE) error, (NI) not implemented, (??) unknown.

(==) Log file: "/var/log/Xorg.0.log", Time: Wed Oct 14 19:34:44 2015

(==) Using system config directory "/usr/share/X11/xorg.conf.d"

FATAL: Module g2d_23 not found.

The XKEYBOARD keymap compiler (xkbcomp) reports:

> Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols

> Ignoring extra symbols

Errors from xkbcomp are not fatal to the X server

PLZ HELP

RaffiR (author)LinusJ2015-10-16

try running the following commands:

sudo apt-get update

sudo apt-get upgrade

LinusJ (author)RaffiR2015-10-18

Thanks that worked but now dosent the licence key work

RaffiR (author)LinusJ2015-10-19

Can you be more specific? What exact part did you try and what were the unexpected results you got?