A command line tool to play any audio/video on an Apple TV.
npx play-on-apple-tv '' 'my-apple-tv.local'
Find the address of your Apple TV using this command:
npx bonjour-browser | grep '_airplay._tcp.local'
If you have a question or have difficulties using
play-on-apple-tv, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.