I've stumbled upon a free solution that the fine users and makers of Plex Server have created to work around the issue which is almost as good as jailbreak. The solution hijacks the Apple Trailer app on the ATV by using DNS to redirect it to fetch data from Plex Server.
This allows you access to all the Plex plugins/transcoding and sharing of your local media in an air play like solution. So this is basically everything you could want in jailbreak but without having to jailbreak anything though you must run Plex on a computer somewhere in your house while using your ATV.
Enough talking onto the downloads.
First, we'll need to generate a certificate to get it running over SSL since Apple recently switched the trailers channel to https (SSL).
- Download and install Apple Configurator (it is in the Appstore & available for Windows).
- Open terminal window, paste the below commands:
- Now you have three files on your Desktop. Launch Apple Configurator. You should now see the below screen. Click Supervision on the below screen to get the profiles menu. Click the plus sign to get the create new profile wizard.
- The Window will change and you will see a profiles form on the window. Enter "appletv-fix for the name as shown below.
- Now click certificates on the left and click the the configure button. You'll be prompted to pick a file. Navigate to your desktop and select "trailers.cer" that we created from the terminal commands earlier.
- Click save on the bottom right and your profile will be saved. We can now transfer the profile to the Apple TV. This is necessary so your Apple TV can encrypt the content in a manner that the PlexConnect script can decrypt and we'll use the same cert in our PlexConnect configuration later.
- Turn supervisor mode off in Apple Configurator and connect your Apple TV to your computer with a mini-usb cable (like the charger for an Android phone). Ensure your Apple TV has power too or it won't work.
- Apple Configurator will change to the below screen when it recognises your Apple TV.
Apple Configurator screen once it recognizes your Apple TV - All you do is click next and it transfers the cert to your Apple TV. You'll see a green icon appear to indicate success.
openssl req -new -nodes -newkey rsa:2048 -out ~/Desktop/trailers.pem -keyout ~/Desktop/trailers.key -x509 -days 7300 -subj "/C=US/CN=trailers.apple.com"
openssl x509 -in ~/Desktop/trailers.pem -outform der -out ~/Desktop/trailers.cer && cat ~/Desktop/trailers.key >> ~/Desktop/trailers.pem |
Apple Configurator Prepare Screen |
Profiles Window |
We are now done with Apple Configurator and you can disconnect the Apple TV. Now, we need to get PlexConnect script and configure it to use the cert generated above to connect to the Apple TV.
- To get this setup going, your going to need to download Plex Server onto your computer. You can get it HERE.
- Get PlexConnect using Git on their repository HERE. You can use this command from the terminal if you have Git installed: git clone https://github.com/iBaa/PlexConnect.git
- In a terminal, get your machines, IP address: ifconfig -a (or ipconfig on windows)
- Run PlexConnect using this command: sudo ./PlexConnect.py
- Shutdown the script immediately. It has now generated a configuration file for you.
- Create a folder in the PlexConnect folder called certs. Move the trailers.cer, trailers.key and trailers.pem files to this folder. I recommend backing up these files so you have them for later.
- Open the Settings.cfg file in text editor and edit the line certfile to point to your trailers.pem file above. It will looks like below.
- Run PlexConnect from the terminal again using: sudo ./PlexConnect.py
- Change your Apple TV DNS from Automatic and enter in your IP address from your machine running PlexConnect (usually in format 192.168.X.X). Step by step screenshots HERE on how to change DNS.
- Run the trailer app and Plex should launch.
certfile = ./certs/trailers.pem
I recommend also getting the unsupported Plex Plugins HERE and you'll need to put them in the plugins directory of Plex (this depends on where your plex is setup, on OSX, it is ~/Library/Application Support/Plex Media Server/Plug-ins/
This will allow you to install some more plugins.
NOTE: The screenshots and text for cert generation here are taken from the post I followed about it here. I'm putting them all into one guide for simplicity.