Apple AirPlay client library for AppleTV
node-airplay is a client library for Apple's AirPlay remote playback protocol.
some code full reference node-airplay, thanks!
npm install airplay2
bower install airplay
git clone https://github.com/zfkun/node-airplay.git npm link
no such record
node_mdnsis woefully out of date and has required many tweaks to get working
brew install ffmpeg
// remote videovar browser = require'airplay2'createBrowser;browseron'deviceOn'deviceplay'' 0console.info'video playing...';;;browserstart;
// local video (by HLS)var hls = require'airplay2'createHLS;hlsstart7001;hlsopen'/Users/zfkun/videos/1.mkv'console.info'video opened: ' info;;var browser = require'airplay2'createBrowser;browseron'deviceOn'deviceplayhlsgetURI 0console.info'video playing...';;;browserstart;