go get github.com/jeremija/appletv
appletv [apple-tv-host:port] [http-url-to-play]
Running from source:
git clone https://gist.github.com/jeremija/09976b0e5d71429571588f4b328c2a25/edit appletv
cd appletv
go run main.go [apple-tv-host:port] [http-url-to-play]
Example:
go run main.go 192.168.1.2:7000 http://path/to/file.mp4
The Connection: keep-alive
header is necessary for playback to work.