Created
August 13, 2013 07:34
-
-
Save yocontra/6218714 to your computer and use it in GitHub Desktop.
Demo for nodecast
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var nodecast = require('nodecast'); | |
var stream = nodecast.find(); | |
stream.on('device', function(device) { | |
console.log('Found device', device.name); | |
var youtube = device.app('YouTube'); | |
// you can change this video to anything you want | |
youtube.start('v=oHg5SJYRHA0', function(err) { | |
console.log('Started on', device.name); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment