How do I share my screen to airplay / AppleTV?

21,428

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:

  1. Download latest release of airplay.jar (in GitHub there is "2 releases" link)
  2. Download supplementary library jmdns.jar (stored in folder Java/lib)
  3. 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.

Share:
21,428

Related videos on Youtube

NullVoxPopuli
Author by

NullVoxPopuli

Updated on September 18, 2022

Comments

  • NullVoxPopuli
    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
    NullVoxPopuli almost 8 years
    Ok, 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
    NullVoxPopuli over 7 years
    does this work pretty consistently?
  • NullVoxPopuli
    NullVoxPopuli over 7 years
    does this work pretty consistently? thanks for the detailed instructions?
  • xuancong84
    xuancong84 almost 3 years
    No longer working, too old