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

dial-receiver

1.0.3 • Public • Published

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

Downloadsweekly downloads

6

version

1.0.3

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar