Nonconformist Propaganda Machine

    airplay-js

    0.3.0 • Public • Published

    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

    Install

    npm i airplay-js

    DownloadsWeekly Downloads

    480

    Version

    0.3.0

    License

    none

    Last publish

    Collaborators

    • guerrerocarlos