Script for sending any video file directly to your AirPlay enabled device.
send-to-airplay is a command line script for streaming videos from your drive to Apple's AirPlay remote playback protocol.
npm install send-to-airplay -g
cd ~ git clone https://github.com/guerrerocarlos/send-to-airplay.git npm link send-to-airplay/
send-to-airplay <file> <optional:port>
$ send-to-airplay ~/Download/52.mp4 Sending /Users/youruser/Download/52.mp4 by Airplay... Serving directory: /Users/youruser/Download/ on port 4007 Calling Play in: http://192.168.0.101:4007/52.mp4 Playing file 52.mp4 in your AirPlay Device
For convenience a 's2a' command alias is also created.
$ s2a ~/Download/52.mp4