Amazon.com Widgets

Enable Airplay on Boxee – XBMC – Plex

I had the chance a while back to play with airplay on the Apple TV in conjunction with the iphone and I quickly saw how wonderful this was and how useful it could be at times. One big drawback was that it was only available on the Apple TV through Itunes and the iPhone….until recently.

First let me remind how AirPlay works by showing you this video.

Ok so now that you are reminded of what it does, some of you do not have an Apple TV and you use XBMC or Boxee or even Plex as your media center.

Thankfully there is a fellow that has coded a way to finally do this. His name is Pascal Widdershoven. Check out his website here for information on what he has done and a video to show you. http://pwiddershoven.nl/blog/2011/01/05/airplayer.html

He has some great code, and I installed it and all of it went somewhat well, but it took me a long time to figure it out even with instructions. There were a few pitfals so I wanted to write this article to help out some of my freinds and the rest of you out there on the web, so lets get started.

First off download the following files and place them in an easily accesible folder, like c:\apps. If you do not know how to make a new folder under the C drive on windows, stop reading now. Oh and by the way this tutorial will focus on Windows as my Boxee system is running on Windows 7 and most of my friends are doing the same thing.

Files to get:

Install 7zip so that you can untar the file below that you will need to download
http://www.7-zip.org/download.html

https://github.com/PascalW/Airplayer/tarball/master
This is Pascals hard work right here and there is a file inside install.mdown and I suggest you open it up in Wordpad to read the instructions inside.

Next get Python for Windows and this is the best and easiest version to install so that you will not have to fool with installing PIP or any other special tools.
http://www.activestate.com/activepython/downloads Get the appropriate version for your version of Windows.

Get the Bonjour SDK from me so you will not have to log into Apple to do so.
http://userbytes.com/extra/bonjoursdksetup.exe

Ok now install
1. Install 7zip
2.Bonjour SDK
3. Active State Python
4. untar the airplayer file you downloaded by right clicking on it and choosing extract to blah blah .tar using 7zip. After that do it again on the tar file and choose extract to here and it will show the name of the file. Next go inside all that and you should see all the files that are listed here.
https://github.com/PascalW/Airplayer

Copy the Airplayer folder to your c:\Python27 folder. It can really go anywhere but I like it mixed in the meat where the work is going to be happening.

Ok now we need to open a cmd window and do some work, go to START or the ORB/Pearl thingy on Windows 7, and in the search box or run box type cmd and press enter.
While in here lets start with cd \ and press enter to get to the C: prompt and only the C: prompt.

Now lets type cd python and you can actually just type cd pyt and press the tab key and it will complete it for you and it may say python27 press enter and you should now be at c:\python27.

Type cd scripts and press enter, now you should be at c:\python27\scripts

While here type the following at the command line and press return or enter

pip install -r c:\pyhton27\airplayer\requirements.txt 


Some things will install that you need and you will see lots of text go by.
Before we fire this off and test it all out
edit the settings.py to reflect your setup.

I went into the airplay folder (C:\python27\Airplayer\Airplayer\settings.py) and opened settings.py with Wordpad.
Since I use Boxee for Windows I edited the following:

MEDIA_BACKEND = 'Boxee'
MEDIA_BACKEND_PORT = 8800

And thats it, save it and exit.

Now you can test it out right now by opening a cmd window and navigating to your airplayer.py file and make python run it.
At the command line enter the following and press return or enter

python C:\python27\airplayer\airplayer\airplayer.py

You should now see a some time stamps if its connected or if Boxee is closed, it will say it can not connect.
It will run in this window there until the window is closed, and while its running, launch Boxee, now while holding your iphone in hand, go to your pictures and open one and in the upper right hand corner you will see a tv looking icon with an arrow pointing upwards. This odd arrow looking icon means there is has been an airplay device detected. Touch it and you should see your computer name and when you select it, it will put the image or video on the screen. Way cool huh?

Ok that is way cool and all, but what happens on reboot? Do I have to start it up again manually? Well yes, but there is a better way.
Lets make it a system service that starts automatically when the computer boots up.

I  cannot take any credit for this next bit of work either, but to make it a service download nssm2.9 and read this blog on how to do it.
http://pascalw.github.com/Airplayer/airplayer-windows-service.html

Check that out and it will show you all about how to make a service and make airplayer start up when the machine boots up.

Now if you do not see any video on your boxee box, you will need to go into settings, media, advanced and disable the hardware acceleration.

Here is a video we made today when we made this happen.

 





Sponsored Ad

15 Responses to “Enable Airplay on Boxee – XBMC – Plex”

  1. Mark Haller Says:

    Thank you SO much for this.

    It worked first time for me, and took about 20 minutes end-to-end.

    There’s something magical. About having the iPad in your hand, but seeing movies, etc on the big screen and my beautiful amp playing in DTS 🙂

    Just tweeted your post through me @logicspot

    Mark


  2. Steve Says:

    Will this procedure work if you havea boxee box (dlink) and a dedicated computer running the python scripts?


  3. USERBYTES Says:

    I do not know. I do not have a D-Link Boxee Box. I have a Windows Media Center Windows 7 computer and Boxee running on it.


  4. Steve Says:

    Also can youtube videos work this way from ipad/iphone to boxee?


  5. USERBYTES Says:

    Yes youtube works this way as well.


  6. chris Says:

    i can’t get this to show up on ipod touch. it does show up and seems to work with android and doubletwist. android also shows xbmc media rendering as an option. any idea why touch doesn’t see it?


  7. USERBYTES Says:

    Make sure your touch has the latest updates


  8. Nicholas Says:

    Is it possible that one of the scripts used in this setup would cause my DVI output to not work? I currently have my HDTV hooked up via an DVI to HDMI cable. Everything has been fine and now i suddenly get no signal. Cable seems to check out and the Computer recognizes the TV. I have reinstalled my drivers and updated UltraMon. This was the last thing I did prior to the no signal issue. Thanks for your help.


  9. USERBYTES Says:

    I really really really really really doubt it. All there is, is a script and a service installed. It’s just using the video player of xbmc or boxee that’s already there. All over wifi.


  10. Nicholas Says:

    Just trying to rule that out. I can hook up another monitor to the DVI output and it does fine. All of a sudden my TV receives no signal. Argh.


  11. Simon Says:

    Hi all,
    My XBMC will play videos however pictures do not work.. Any ideas?

    Good work none the less..


  12. youtube script Says:

    youtube script…

    […]Enable Airplay on Boxee – XBMC – Plex | USERBYTES.COM[…]…


  13. Jonathan Says:

    Thanks USERBYTES, great detailed instructions. I’ve got another way to run airplayer on startup.
    Open notepad and create a document with “python C:\python27\airplayer\airplayer\airplayer.py” as the only text.
    Save as C:\Python27\*.bat
    Open Task Scheduler in control panel. Create a task that runs at startup and runs C:\Python27\*.bat


  14. Airplay Enabled Backyard | USERBYTES.COM Says:

    […] have talked about Apples Airplay before on this website here http://www.userbytes.com/enable-airplay-on-boxee-xbmc-plex/ which allows us to push whatever we are seeing on the iphone, onto the tv screen if you are using […]


  15. Chris Says:

    I’m getting an error when trying to use this.

    “RuntimeError: maximum recursion depth exceeded”

    Is anyone else getting this problem?

    Anyone fixed this?