Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGilles De Mey <gilles.de.mey@gmail.com>2015-08-31 01:24:43 +0300
committerGilles De Mey <gilles.de.mey@gmail.com>2015-08-31 01:24:43 +0300
commit3c6681724e285e627e440b9972938c0f72051658 (patch)
tree9e153539ce2373e107c3046f7288efcca20b04d9 /bin
parentfed21e9205bb53f8568e3a07cded887698f166fc (diff)
Switching to mafinstosh/chromecasts
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cmd.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index 816d94e..1e39300 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -427,14 +427,10 @@ function runDownload (torrentId) {
}
if (argv.chromecast) {
- var chromecast = require('chromecast-js')
- new chromecast.Browser()
- .on('deviceOn', function (device) {
- device.connect()
- device.on('connected', function () {
- device.play(href)
- })
- })
+ var chromecasts = require('chromecasts')()
+ chromecasts.on('update', function (player) {
+ player.play(href)
+ })
}
if (argv.xbmc) {