webtorrent / webtorrent-desktop

❤️ Streaming torrent app for Mac, Windows, and Linux
https://webtorrent.io/desktop
MIT License
9.62k stars 997 forks source link

Support Apple TV with pin codes (Could not connect to Airplay. Unexpected response from AppleTV: 403) #1339

Open tomstgeorge opened 6 years ago

tomstgeorge commented 6 years ago

Version 0.19.0 (0.98.20) on MacOS High Sierra.

Trying to stream to AppleTV 4 results in error; Could not connect to Airplay. Unexpected response from AppleTV: 403

Airplay works with other software on same laptop.

screen shot 2018-03-09 at 6 38 43 pm
akswalia23 commented 6 years ago

hey this started happening when Apple added a new security layer on airplay or maybe was trying to stop 3rd party apps from using airplay in TVOS 10.2 It turns out; some forward-thinking developers have already tackled this. AirParrot 2.7.0, released recently, has tvOS10.2 support. http://www.airsquirrels.com/airparrot/release-notes/win/

I have just installed it on Windows 10 and MacOs High Sierra, I can confirm it works. As you launch it, if you don't have a passcode or password set on your ATV4, Apple TV then shows you their standard format four digit code which you then enter on a little AirParrot prompt window, and that's it. Streaming via AirPlay once more.

I can only assume then that other developers (like the one of WebTorrent) can and should follow suit and update their software.

feross commented 6 years ago

We need to add support to the library that we use for Apple TV support, airplayer. I opened an issue there: https://github.com/watson/airplayer/issues/4

akswalia23 commented 6 years ago

Would it be stupid to consider completely changing the current airplay library?

akswalia23 commented 6 years ago

As airplay support may as well not be there since all new Apple TV's will not work

difelice commented 5 years ago

@feross I think the URL of the issue you opened is: https://github.com/watson/airplayer/issues/4

cristiandan commented 4 years ago

could this be used instead? https://github.com/evandcoleman/node-appletv others have the same issue - https://github.com/derhuerst/play-on-apple-tv/issues/2

feross commented 3 years ago

Is anyone interested in exploring how to support newer Apple TVs and sending a PR?