airplay-js

JS Native Apple AirPlay client library for AppleTV

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
airplay-js
0.3.06 years ago8 years agoMinified + gzip package size for airplay-js in KB

Readme

node-airplay
node-airplay is a native javascript client library for Apple's AirPlay remote playback protocol.

Installation

From npm:
npm install airplay-js

Usage

// remote video
var browser = require( 'airplay-js' ).createBrowser();
browser.on( 'deviceOn', function( device ) {
    device.play( 'http://remotehost/video.mp4', 0, function() {
        console.info( 'video playing...' );
    });
});
browser.start();

Testing

npm install
npm test
...then, turn on your AppleTV!

Help

API