The PBS is such an app. Additionally, Vevo crashes AirPlayer.
Both those apps recognize Airplayer for me.
However, both apps publish the videos as m3u8 files which apparently aren't handled correctly by XBMC/Plex.
See here:
http://forum.xbmc.org/showthread.php?t=94552
In what way does Vevo crash Airplayer btw? I can't reproduce that. Could you send me a crash log (running airplayer with debug=True) please?
I've updated Python on leopard to 2.7.1. I've re-run pip install -r requirements.txt
Now I get the following error:
<br />
Ernst:airplayer tv$ python airplayer.py <br />
Traceback (most recent call last):<br />
File "airplayer.py", line 18, in <module><br />
import bonjour<br />
File "/Users/tv/Documents/Airplayer/airplayer/bonjour.py", line 2, in <module><br />
import pybonjour<br />
ImportError: No module named pybonjour<br />
Thanks for your help so far!
Ok I got it running with video. That last post was me not installing things with pip correctly.
Audio does not appear to work, is that correct? or should it also be able to act as an AirPlay speaker?
That is correct, please read the README.
Has this been answered? Do I install the airplayer script on the server computer or the client computer?
Thanks
client
Ok installed it on a new mac mini. I’m testing it in the foreground right now. It won’t recognize plex but it will recognize xmbc. Strange. Not sure what it can be. Plex is on 8080 and XBMC is on 8060. It works fine (foreground) for XBMC but once I change the settings.py for plex usage it won’t activate for plex. I had the server off. Then turned the server on. Then running all the time. Nothing is working. I am having some issues with Plex itself though since I’ve switched to using a Windows box as the server and the mac mini as a client. Plex wont even connect to the Windows server. I’ll dig at it some more. Any insight would be great
Thanks
Shouldn't you be using port 3000 if you you're going to use it with Plex?
DOH! Ive been configuring sabnzbd hence the 8080. Got all mixed up hehehh
thank you. hopefully i can get it to launch in the background now.
Thanks for updating the instructions. I'm still a little confused. Everything runs great except when I restart or relogin I see in the log that it's starting but cannot connect to Plex. Am I supposed to have Plex as a login item? I thought the script was making Airplayer run in the background/daemon so that I can start Plex whenever I want AND THEN it'll connect. I'm still a little new to all of this.
Thanks
If Airplayer is running after login you're all set. It's just a warning it cannot connect to Plex, that's no problem.
Ahh ok. I didn’t think it connected because I didn’t see the normal airplayer activated message in plex when I started it. That’s why I checked the logs. There’s no way for me to confirm if its working right now because my iPhone is 4.1 jailbroken and waitin for an untethered 4.3 jailbreak. I initially tested this on an older set up with somebodys iPad. It worked but I couldn’t get it to run in the background. Now with this new setup I have, I’m waiting on my ordered ipad2 or the new jailbreak to confirm.
Thanks again, will report back as I’m sure I’ll have other questions.
Last updated: 2011/03/21, 7pm CT
I finally decided to try this out today, and my only complaint is I wish I had sooner! It’s kind of magical to see video and photos on my iPhone just appear on the TV, complete with iPhone-based remote control. A damn shame about audio being encrypted. 
Anyhow, after seeing all of the installation hassles folks are having, I whipped up a script to install and configure AirPlayer for the common case (local Plex installation). By default I put files in /Library, so if you want to use my script, then you may want to clean out your existing installation. Alternatively, you can change the install path at the top of the script.
Just open the terminal and run the following commands:
curl -O http://www.joshuaochs.com/Misc/install_airplayer_plex.sh<br />
chmod +x install_airplayer_plex.sh<br />
sudo ./install_airplayer_plex.sh
This will download the script, make it executable, and then start installing Airplayer.
Some very basic help is available via:
$ ./install_airplayer_plex.sh --help<br />
Run this script to easily install AirPlay support for Plex/Nine.<br />
--install Download and install AirPlay support (default)<br />
--remove Stop AirPlay and remove all files<br />
--help Print this help information<br />
Administrator privileges are required to run this script - use "sudo ./install_airplayer_plex.sh"<br />
**What's installed where (by default):**
[list][*]/Library/Application Support/airplayer - *main AirPlayer code*
[*]/Library/LaunchAgents/org.pwiddershoven.airplayer.plist - *agent to run AirPlayer at login*
[*]/Library/Logs/airplayer.log - *any AirPlayer logs, viewable in Console*[/list]
Why does this need sudo? Two reasons - one is that I install files in /Library, and the second is it might be required for the python dependencies. Feel free to examine the script - nothing sneaky in there to worry about.
If you have any problems, feel free to ask. I've also [posted some troubleshooting advice](http://forums.plexapp.com/index.php/topic/20950-airplay-plugin-for-plex/page__view__findpost__p__156109), but hopefully things are squeaky-clean now. ;)
Thanks! This is awesome; however, it did not stay running at startup. It did generate the warning about not being able to connect to Plex in the logs - and that was it.
I am using the PBS app on the iPad, and Plex is not an option. I have updated to the latest airplayer script, and airplayer does not crash when using Vevo HD. Vevo HD, is not working for the reasons stated above.
Someone stated that I should be using python 2.6... for the record, I am using python 2.6.
The good news is the videos, photos, and air video apps work just fine.
On another note, Apple now has a section for air player apps in their apps store. 95% of the stuff in there is not very compelling.
DRAT! DOUBLE POST! Sorry about that.
Your script worked perfectly for me diamondsw, thanks so much!
And so I thought as well. But...
Thanks for letting me know - I've updated the script to correct this. In the meantime, all you need to do to fix it is this:
sudo chmod 666 /Library/Logs/airplayer.log<br />
launchctl unload /Library/LaunchAgents/org.pwiddershoven.airplayer.plist<br />
launchctl load /Library/LaunchAgents/org.pwiddershoven.airplayer.plist
Or alternatively, just run the new version of my script which will fix the permissions and relaunch things.
What happened is the script originally had administrator privileges when it set up the launchd agent and log file. These permissions are required to set up launchd, but had the side-effect of making the log file only writable by root. On the next boot, the script was run as a standard user and found it couldn't write to the log file and died. All I did to fix it was set the permissions beforehand to allow full write access to the log file. Voila!
Wouldn't you know it - the **one** file that the script doesn't automatically clean up and recreate (it's a log - you typically don't want to reset those) is the one that causes problems. :)
Two questions, one related:
[list=1]
[*]Is it possible for AirPlayer to launch the proper client (Plex, XBMC, Boxee) on receiving an AirPlay request? Seems like it should be doable, and would be much more seamless on the iOS side.
[*]Is there any reason that the user should have to specify the media center port? Seems like AirPlayer should just see which one is selected and configure the port based on that. If a port selection is needed for some people with custom setups, could an "Auto" option be added as the default?
[/list]