Skip to content

Commit

Permalink
bugfix - not playing when another chromecast playing same url
Browse files Browse the repository at this point in the history
  • Loading branch information
angelnu committed Dec 19, 2016
1 parent 4e298b5 commit bf6bf8a
Show file tree
Hide file tree
Showing 8 changed files with 1,210 additions and 1,182 deletions.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,29 @@ Features
What is missing?
----------------

* use semaphores to avoid race conditions
* add state machine to track states: detected ->connected -> player loader -> playing
* add retries: sometimes the Chromecast fails to respond to a request
* more testing

How to build
------------

1. Checkout from git
2. Install grunt with `npm install -g grunt-cli`
3. Install node.js dependencies: `npm install`
4. Make changes and test them
5. Change version in package.json
6. Check changes with `grunt`
7. git commit & push
8. npm publish

Changelog
---------

### 1.1.1
* (Vegetto) bugfix - not playing when another chromecast playing same url
* (Vegetto) added additional logs

### 1.1.0
* (Vegetto) **Added support for playlist m3u, asx and pls files - play first entry**

Expand Down
4 changes: 2 additions & 2 deletions chromecast.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var adapter = utils.adapter('chromecast');

//Own libraries
var chromecastScanner = require('./lib/chromecastScanner');
var ChromecastDevice = require('./lib/chromecastDevice');
var ChromecastDevice = require('./lib/chromecastDevice')(adapter);

// is called when adapter shuts down - callback has to be called under any circumstances!
adapter.on('unload', function (callback) {
Expand Down Expand Up @@ -77,7 +77,7 @@ function main() {
var chromecastDevices = {};
chromecastScanner(adapter.config.useSSDP,
function (name, address, port) {
chromecastDevices[name] = new ChromecastDevice(adapter, name, address, port);
chromecastDevices[name] = new ChromecastDevice(name, address, port);
}, SCAN_INTERVAL,
function (name, address, port) {
chromecastDevices[name].updateAddress(address, port);
Expand Down
2 changes: 1 addition & 1 deletion io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"common": {
"name": "chromecast",
"title": "Chromecast Adapter",
"version": "1.1.0",
"version": "1.1.1",
"license": "MIT",
"authors": ["Vegetto <[email protected]>"],
"desc": {
Expand Down
Loading

0 comments on commit bf6bf8a

Please sign in to comment.