Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    dial-receiverpublic

    DIAL-receiver 1.0.3

    Simple module to accept DIAL cast requests from second screen devices.

    Version 1.0.3

    • Only supports Youtube cast requests

    Example

    let DIALreceiver = require("dial-receiver");
     
    // Called when the second screen device requests to launch Youtube
    DIALreceiver.Youtube.on("cast-received", function(link) {
        // Show something like a browserwindow to load the tv link
    });
     
    // Called when the second screen device stops casting
    DIALreceiver.Youtube.on("cast-stopped", function() {
        //Destroy player here
    });
     
    // Called when the second screen device requests the app to be hidden
    DIALreceiver.Youtube.on("cast-hidden", function() {
        //Destroy player here
    });
     

    Reference

    Keywords

    none

    install

    npm i dial-receiver

    Downloadslast 7 days

    8

    version

    1.0.3

    license

    ISC

    repository

    github.com

    last publish

    collaborators

    • avatar