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
diff options
context:
space:
mode:
-rwxr-xr-xbin/cmd.js12
-rw-r--r--package.json2
2 files changed, 5 insertions, 9 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) {
diff --git a/package.json b/package.json
index 18e0683..45da866 100644
--- a/package.json
+++ b/package.json
@@ -95,7 +95,7 @@
"main": "index.js",
"optionalDependencies": {
"airplay-js": "^0.2.3",
- "chromecast-js": "^0.1.4",
+ "chromecasts": "^1.5.3",
"nodebmc": "0.0.5"
},
"repository": {