Airplay Plugin for Plex



Both points are doable. Point 2 I'll certainly implement and I'll consider point 1.


That's all I can ask. :) I understand that sub-launching a program can be tricky when supporting Mac, Windows, and Linux.


That's not really a problem. It's more that I'm not sure if this belongs in Airplayer.


For me it makes sense from a consistency standpoint - otherwise AirPlayer is advertising that it can accept content when it actually cannot (since the media player in question isn't actually open to display it). Another solution would be to not advertise via Bonjour when the client is closed - but it would certainly be more *convenient* to be able to hit the button on the iPhone/iPod/iPad and have it play - even if the media center wasn't running at the time.

Hey diamondsw I used your script it makes things so much easier. I had already manually installed it the first time. Thought I’d try yours out to see how it works. I understand that even tho the log says it’s not connected it’s still fine. But shouldn’t Plex show in the upper right corner that Airplayer has been activated?



Yes!

I’m a little confused about your script.

Does it just install Airplayer?

Do I need to download Pascal’s files or Erica Sadun’s files first?

How do I have Airplayer open at login and hide in the background?



Very confused.
I can't seem to install anything.
I downloaded both Pascal and Erica's files but the terminal commands return: no such file or command not found.

All you have to do is download and run my script. It downloads and configures AirPlayer, including the background startup item. It’s pretty much run it and you’re done.



Not sure what you mean - I never saw any indication inside Plex that AirPlayer was running, but maybe I just didn't look in the right place.

I thought so, but it says command not found and no such file. Am I typing something wrong? I copy and pasted both lines into terminal.



Honestly, for all the world it sounds like you either didn't download the file, or you're not in the same directory as where you downloaded it to. I updated the instructions to download the script as well; try running those three commands one after the other. Really should do the trick.


Thanks its working now.
I dunno why it wasn't before.

Thanks again for the prompt help.


Thanks its working now.
I dunno why it wasn't before.

Thanks again for the prompt help.


When you use the manual command line of starting airplayer (while plex is running) Plex in the upper corner will say airplayer activated. Anyways the auto launch in the background isn't working for me. I just got my iPad and it's not recognizing plex as an AirPlay device. Unless maybe I need to logoff and relogin. I'll try that.


Nope. Not working. I have to manually run the start command line. Hmmmm



Airplayer won't connect to plex unless I enter the above commands in terminal after login. I believe I'm using the newer script since I installed it after the above post.

Perhaps I should reinstall?

Ack! Never mind. Got it all sorted out. Since I had installed it manually before, the old launch script was still in USERNAME/Library/launchagent. Basically had to clean up the old install by deleting some things. All works great! You guys rule.



Ah, you fixed it before I could finish typing this up. Cool! :)

I'm going to leave this here though, just in case the troubleshooting steps help anyone else.



You can certainly try that:


curl -O http://www.joshuaochs.com/Misc/install_airplayer_plex.sh<br />
chmod +x install_airplayer_plex.sh<br />
sudo ./install_airplayer_plex.sh --remove<br />
sudo rm -f /Library/Logs/airplayer.log<br />
sudo ./install_airplayer_plex.sh



You can also check to see what Launchd thinks of things:

sudo launchctl list | grep airplayer<br />
launchctl list | grep airplayer



You should see something along these lines (although the first number will be different):

jochs@mini ~ $ sudo launchctl list | grep airplayer<br />
jochs@mini ~ $ launchctl list | grep airplayer<br />
56749	-	org.pwiddershoven.airplayer<br />
jochs@mini ~ $



One of those should show the airplayer agent running. Old versions of the script would show it running under sudo after first install, and under the non-sudo one when it runs at login. Current versions will always show it under the regular user.

However, if you see something like this:


jochs@mini ~ $ launchctl list | grep airplayer<br />
-	1	org.pwiddershoven.airplayer



Then that's a problem we'll have to look into, because that means that launchd tried to open airplayer but something in it died. In my original script, the bad permissions on the log file tripped things up and it ended up like that, with a non-zero exit status in the second entry. At that point we have to start digging through log files, both launchd and airplayer.

I made a slight change to the script add the launchd agent as the regular user, and the "--remove" option should handle either case now. Previously, since the script was running with sudo privileges, it would add the airplayer launch agent to root's list instead of the normal user. That caused a few subtle issues - it meant the log file was created with the wrong permissions (which I already worked around), and it also meant that technically airplayer was running differently after first install than at subsequent login. It *shouldn't* cause issues, but it's always best to try and minimize the variations. Now the initial install should behave exactly like a subsequent login and expose any latent issues right off the bat.

^ Nice



Now this might be a stupid question but I’m new to all this github stuff. How do I upgrade to the latest version with the current fixes? Do I do a terminal command or do I just download the source and copy it over?



The photos and YouTube is working, but recorded videos on the iPad wont play and freezes plex. Im suspecting I don’t have the updated files. I’m gone check the dates on them but needed to know how to go about in updating the correct way.



Thanks



My script is far from official, but you can use it to update to the latest release - it pulls its files from the latest on github automatically. Keep a copy around, and it's as simple as running "sudo ./install_airplayer_plex.sh".

Given some of the changes I made today, I do encourage everyone to [grab a fresh copy](http://forums.plexapp.com/index.php/topic/20950-airplay-plugin-for-plex/page__view__findpost__p__153267) - it fixes a couple subtle user permission issues, so you'll see fewer warnings at the very least.