diff options
author | Gilles De Mey <gilles.de.mey@gmail.com> | 2015-08-31 01:24:43 +0300 |
---|---|---|
committer | Gilles De Mey <gilles.de.mey@gmail.com> | 2015-08-31 01:24:43 +0300 |
commit | 3c6681724e285e627e440b9972938c0f72051658 (patch) | |
tree | 9e153539ce2373e107c3046f7288efcca20b04d9 | |
parent | fed21e9205bb53f8568e3a07cded887698f166fc (diff) |
Switching to mafinstosh/chromecasts
-rwxr-xr-x | bin/cmd.js | 12 | ||||
-rw-r--r-- | package.json | 2 |
2 files changed, 5 insertions, 9 deletions
@@ -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": { |