AirPlay Mirroring Without Apple TV (using RPi)

445,512

181

129

Introduction: 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

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

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

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

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!

Raspberry Pi Contest

Participated in the
Raspberry Pi Contest

Be the First to Share

    Recommendations

    • Hand Tools Only Challenge

      Hand Tools Only Challenge
    • Modify It Speed Challenge

      Modify It Speed Challenge
    • Remix Contest

      Remix Contest

    129 Discussions

    0
    bobburudinesh
    bobburudinesh

    Question 2 months ago on Step 5

    Hello Sir,
    1.Can I use rplay for mirroring both ios devices and android devices?
    2.Can i use Raspberry pi Zero W for this application?
    3.does rPlay work on Raspberry pi zero w?

    0
    ScottT43
    ScottT43

    6 months ago on Step 2

    Do not execute the "sudo rpi-update" command ... it is only for RPi kernel developers. The "sudo apt-get update" and "sudo apt-get upgrade" commands are all that's needed to get the latest stable version intended for general distribution. The "sudo rpi-update" command pulls the experimental version still in development and could make your RPi unusable.

    reference: https://outsourcedguru.wordpress.com/2018/12/22/rp...

    0
    tthenrie
    tthenrie

    1 year ago

    Well, it appears the author has stopped supporting this project. No answers to anybody for quite some time.

    0
    ExpertSkinDoc
    ExpertSkinDoc

    1 year ago on Step 5

    Seems like this is is a dead venue for those seeking to Screen Mirroring ever since IOS 10. It's no longer called 'Airplay', but it's 'Screen Mirroring'. I suppose Apple shut this spoofing down, now there is no option for remote screen mirroring unless one buy an Apple TV.

    0
    lincoln743
    lincoln743

    Reply 1 year ago

    nor old ipad or new iphone works. i think apple blocked everything... again

    0
    ExpertSkinDoc
    ExpertSkinDoc

    Answer 1 year ago

    You should do:

    sudo apt install libjpeg8
    Then reboot your pi and then login using browser... but it still doesn't work for me, I'm on ios 12.2, no "Airplay" just "Screen Mirroring", but Raspberry Pi not showing up as an option, only thing it will screen mirror to is an Apple TV. Anybody has any suggestion?

    0
    Dale101
    Dale101

    1 year ago

    Am using a Raspberry Pi 3 B. I have tried to complete Step 4 (http://localhost:7100/admin) and similarly by substituting my RPi ip address in for localhost after typing the recommended command "sudo apt install libjpeg8". Unfortunately, Chromium sends me an error message "localhost refused to connect." I disabled "Protect you and your device from dangerous sites" to see if the security SW was the problem, but got the same error message. Any advice from the originator or someone who got this to work?

    0
    JakeM150
    JakeM150

    Question 1 year ago on Step 4

    When I try to pull up the localhost admin website, it pulls up a 404 error. I know I'm a little late to the rPlay party, but I wanted to know if it still works and, if it does, how i can fix this.

    0
    Carlos MonirR
    Carlos MonirR

    Question 1 year ago on Step 4

    I have problems with the step number 4, could you give me more specifications

    0
    LennartR3
    LennartR3

    2 years ago

    Hey,

    first of all thanks for the good description, seemed to work very well without any kind of error for me. eg. my YT app finds the Pi but cant quite connect. Same goes for Netflix. In the iOS Menu the Raspi doesnt show up. When I say "sudo rplay" it tells me

    "Another instance using port 7100 is running, please kill it first. Exit now.."

    I tried to check what uses the port but i dont really know what it is or how to end it. So if you have any ideas on fixing this pls tell me :)

    0
    Big Milk
    Big Milk

    Reply 1 year ago

    This is the same issue I am having. Did you ever figure out what the problem was?

    0
    krishnagec
    krishnagec

    Question 1 year ago

    I'm able to run rplay and able to do airplay audio but not airplay mirroring. I'm trying to mirror my iPhone 6SPlus (11.4 version). Could someone help me, If I'm missing something? When I click on Airplay mirroring from iPhone, it says looking for devices but doesn't connect to Rpi

    0
    OleksiiF1
    OleksiiF1

    Answer 1 year ago

    Same issue. It seems that it doesn't work in 2018.

    0
    MauriceB32
    MauriceB32

    Reply 1 year ago

    I have indeed the same issue. I anyone has a solution please let us know

    0
    KarlP31
    KarlP31

    Reply 1 year ago

    Did you get this working from iPhone point of view as well? did rPlay appear on the list of mirrorable devices?

    0
    MathieuG18
    MathieuG18

    2 years ago

    Hey guys, if anyone is still reading this in 2018 : there is a lib missing.

    You should do:

    sudo apt install libjpeg8

    Then reboot your pi and then it should work correctly.

    Let me know if it works for you.

    1
    AndresC167
    AndresC167

    Reply 2 years ago

    I'm pretty sure everything installed correctly and I was able to enter key but it's not showing up on my airplay choices. Although, it does show up in the Youtube App cast options but doesn't work when I click. Working with IOS 11.4.1 and Android 5.1, same situation on both. Thanks for any light you can shed.

    0
    KarlP31
    KarlP31

    Reply 2 years ago

    Hi!

    The localhost opens but for some reason my iOS device does not find rplay. Any suggestions if it should work on iOS 11?