I’m trying to find a way to stream my monitor to Apple TVs in my school via AirPlay. I’ve already done some research and it seems like there are currently no software solutions, with the closest one being openairplay, however it seems to be pretty dead.
I “need” AirPlay, as my school only uses Apple TVs, and it’s quite inconvenient to always bring my HDMI cable and have to hook up to projectors that way.
I’m also open to more scuffed solutions, as I won’t be going to that school for much longer. Some things I have thought of so far are:
- Using my old iPhone 6 (maybe jailbreak it, I don’t think that matters here though) and something like deskreen to first cast my laptop screen to the iPhone and then AirPlay from there. I’d expect this to work, but it wouldn’t be much less cumbersome than just using HDMI directly, and it would also mean having to carry that iPhone and a charging cable for it with me all the time.
- Using a Mac OS virtual machine with something like OSX-KVM, then possibly buying a WiFi card with AirPlay support and passing it through to the VM in combination with a similar deskreen solution as in 1. This also seems pretty complicated, and I’m not even sure if it would work at all.
Does anyone here have any experience with this, know of any better solutions (I’m also open to more scuffed solutions), or maybe even tried one of my scuffed methods already?
My main experience casting to Apple TVs from Linux is with Home Assistant, which has a few different addons related to Apple TV. Unfortunately most are related to receiving casts or casting music, and it doesn’t look like any support screen mirroring. The main library - https://pyatv.dev - has only limited support for AirPlay, and its documentation indicates it lacks screen mirroring support. If you just want to stream a video, though, then it would be worth looking into.
open-airplay with the auth solution by @funtax (on Github) is the approach I would try, but unfortunately I can’t comment as to whether or not that actually still works.
I can’t find any “funtax” user in the linked openairplay repo, but it appears that I have completely missed pyatv’s ability to stream video. As long as it can stream video I think I can make it do screen mirroring too. Thank you very much, I will be looking into pyatv now!
I don’t think they contributed to openairplay, but they mentioned in an open issue in the openairplay repo that they had created a separate repo to handle the auth piece. Strangely I can’t find the issue now, but this is the repo I was talking about for that: https://github.com/openairplay/AirPlayAuth
That all said, it pyatv will work for you it looks like a much better bet, anyway. Good luck!