1.0.3 • Published 6 years ago

dial-receiver v1.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

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

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago