How do I share my screen to airplay / AppleTV?
Solution 1
No. Airplay is a proprietary protocol that hasn't been fully reverse engineered. That might even never happen.
If you are not bound to Apple, you might look into DLNA.
Solution 2
Connect to the wifi network of the AppleTV
Download or clone from this link: https://github.com/jamesdlow/open-airplay
Once you have downloaded the .zip
, unzip it and enter the folder open-airplay-master
.
The document “Dockerfile” contains the list of instructions: From terminal:
sudo apt-get update
sudo apt-get install -y default-jdk
sudo apt-get install -y maven2
Apparently the maven2
library is not available on Ubuntu 16. In this case, you should install the maven
library with the same command as above.
From terminal:
cd open-airplay-master/Java
ant
The command ant
builds the airplay.jar
file in the open-airplay-master/Java/build
folder.
From terminal:
cd open-airplay-master/Java
java -cp "build/airplay.jar:lib/jmdns.jar" com.jameslow.AirPlay
You should see a searching window for few seconds. It should find the AppleTV automatically (click OK). Select resolution and click OK.
Now you should see your screen projected.
Solution 3
Well, there is a way - https://github.com/jamesdlow/open-airplay It is not really fancy, but it works:
- Download latest release of airplay.jar (in GitHub there is "2 releases" link)
- Download supplementary library jmdns.jar (stored in folder Java/lib)
- Execute from folder with downloaded jars by java -cp "airplay.jar:jmdns.jar" com.jameslow.AirPlay
It should show list of available devices after a few seconds, then ask for resolution and finally share your screen.
Related videos on Youtube
![NullVoxPopuli](https://i.stack.imgur.com/INqgP.jpg?s=256&g=1)
NullVoxPopuli
Updated on September 18, 2022Comments
-
NullVoxPopuli almost 2 years
I've seen a lot of posts about streaming audio to their AppleTV / other airplay audio devices... but I want to share my screen.
Is there a way I can do this?
I'm on Ubuntu 16.04.
-
NullVoxPopuli almost 8 yearsOk, cool, thanks for the clarification! I'm personally not bound to apple, but my company uses airplay in meeting rooms. I personally cast my screen with chromecast at home, though. :-) thanks!
-
NullVoxPopuli over 7 yearsdoes this work pretty consistently?
-
NullVoxPopuli over 7 yearsdoes this work pretty consistently? thanks for the detailed instructions?
-
xuancong84 almost 3 yearsNo longer working, too old