Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to a single Chromecast Audio #50

Closed
uniquePWD opened this issue Feb 25, 2017 · 30 comments
Closed

Cannot connect to a single Chromecast Audio #50

uniquePWD opened this issue Feb 25, 2017 · 30 comments

Comments

@uniquePWD
Copy link

I have two on my network and whenever trying to connect to one, both connect.

@muammar
Copy link
Owner

muammar commented Feb 25, 2017

Are you in Linux or macOS?. This problem was reported in #41 and it is solved in latest versions of mkchromecast. If you are on macOS, I am afraid that I am not able to provide a standalone app (see #36). If it is your case, you will have to use the application from console or compile the app following these instructions.

@uniquePWD
Copy link
Author

I'm on Linux. I'll try updating and see if that works.

@muammar
Copy link
Owner

muammar commented Mar 3, 2017

I'm on Linux. I'll try updating and see if that works.

Any update on this?. Can this report be closed?.

@pasikarkkainen
Copy link

pasikarkkainen commented Mar 3, 2017

This is still broken, happens also on OSX (v0.3.6). Meaning when there's two chromecast devices on the network (chromecast ultra + chromecast audio), and you choose the "chromecast audio", what actually happens is that both get selected.. and it's impossible to "deselect" the chromecast ultra device.

@uniquePWD
Copy link
Author

Confirming that this is still broken.

@muammar
Copy link
Owner

muammar commented Mar 4, 2017

I have at home Chromecast and Chromecast Audio. When I pushed this to try solve the issue, I could select one of the two. I will try again to see if I get the same problem as you have described.

@muammar muammar added the bug label Mar 4, 2017
@pasikarkkainen
Copy link

Oh, I forgot to mention.. my comment above applies to version 0.3.6.

@uniquePWD
Copy link
Author

It's probably important to note that I have a Chromecast and two Chromecast audios. I also have a group set up with just the Chromecast audios and whenever I try and send audio to my Kitchen Chromecast, both the Kitchen and Bathroom are selected in the mkchromecast dropdown with mkchromecast always seemingly preferring the Bathroom Chromecast.

@muammar
Copy link
Owner

muammar commented Mar 4, 2017

@pasikarkkainen that is a known problem with 0.3.6. You may try 0.3.7.

@sabret00the Are you using 0.3.6, too?.

@uniquePWD
Copy link
Author

Yup, I too am using 0.3.6

@muammar
Copy link
Owner

muammar commented Mar 4, 2017

You have to install 0.3.7 because the problem is fixed in that version. If you are using debian based distro, Ubuntu synced already 0.3.7 in their repo. For the case of macOS, I am afraid that you will have to use the application from sources as described in the README.

@uniquePWD
Copy link
Author

0.3.7 isn't linked from the releases on github and in order to get it from the Ubuntu repositories we apparently need to upgrade to the alpha status Ubuntu 17.04

@pasikarkkainen
Copy link

pasikarkkainen commented Apr 1, 2017

Ok, upgraded to v0.3.7 on Mac OSX (10.11.6 El Capitan), installed with brew, and still seeing this problem. pychromecast is version 0.7.7, and QT is 5.8.0, if that matters. Here's more detailed analysis of the issue.. it's a bit long, but the issue isn't exactly straight forward to explain:

When you start the mkchromecast app and search for chromecast devices it seems sometimes they are found in different order.. it's quite random, but let's say that out of 15 times you start the mkchromecast app and search for devices, twice the devices are found on different order.. so most of the times they are found on same order, but not always. Ok, let's continue. As an example here you have the found devices:

  • First device: Chromecast Audio.

  • Second device: Chromecast Ultra.

  • After searching If I click the first device to select it, both devices get selected. This happens every time. Clearly a bug.

  • After searching If I click the second device to select it, only the second device gets selected (as expected). Selecting the second device seems to work OK every time, just like it should.

  • When both devices are selected (due to the bug above), you can actually remove the selection from the first device by clicking on it, and this works as it should, leaving only the second device selected/working.

  • When both devices are selected (due to the bug above), If you try to remove the selection from the second device by clicking on the second device, nothing happens, and both stay selected. Clearly a bug aswell.

The end result: You can properly use only the device which is found as second on the list. If the device you wanted to use wasn't actually found as second device one has to restart and rescan many many times to make it happen.. Does that help finding and fixing the bug?

@uniquePWD
Copy link
Author

uniquePWD commented Apr 1, 2017

Tested this again yesterday. I can confirm.

@muammar
Copy link
Owner

muammar commented Apr 1, 2017

Ok, upgraded to v0.3.7 on Mac OSX (10.11.6 El Capitan), installed with brew, and still seeing this problem. pychromecast is version 0.7.7, and QT is 5.8.0, if that matters. Here's more detailed analysis of the issue.. it's a bit long, but the issue isn't exactly straight forward to explain:

In brew, the version is 0.3.6:

https://github.com/caskroom/homebrew-cask/blob/master/Casks/mkchromecast.rb

When you reported installed with brew, are you referring to brew cask install mkchromecast?.

I will check this again today. At home I have an audio chromecast and a regular one. I am able to connect to each of them separately when both online. I think 12055e5 fixes the problem. In that commit, when one selects a CC, it is connected by using its name. Are the names different in your cases @pasikarkkainen and @sabret00the?. But if you are still using something lower than 0.3.7 this won't work. Can you report the Mkchromecast versions, please?. Use this command if using deb package mkchromecast -v or python mkchromecast.py -v if using from sources.

@uniquePWD
Copy link
Author

I'm definitely using 0.3.7 according to Terminal on Ubuntu.

Also one of mine is called Kitchen Chromecast while the other is called Bathroom Chromecast.

@pasikarkkainen
Copy link

Sorry for the confusion. For me mkchromecast was installed using these instructions: https://github.com/muammar/mkchromecast/wiki/macOS-standalone-app . So basicly sources cloned from github, and the rest of the components (python3, git, qt5, etc) installed with brew. I just ran "python3 mkchromecast.py -v" and it confirms it's v0.3.7.

And my chromecast devices have different names ("chromecastultra-foo1" and "chromecastaudio-foo1").

@muammar
Copy link
Owner

muammar commented Apr 3, 2017

Thank you @sabret00the and @pasikarkkainen for posting your messages. I will investigate more in details to fix this problem.

@pasikarkkainen
Copy link

@muammar : Thanks for looking into this. Let me know if you need more info, or if there's something to test/verify.

muammar added a commit that referenced this issue Apr 8, 2017
This is related to issue #50. When one is selecting a new cast device
from the systray, one needs to stop casting to the previous device.
I think this partially solves #50, but still there is the problem that
all devices seem selected.
@muammar
Copy link
Owner

muammar commented Apr 9, 2017

@pasikarkkainen I have pushed b8927f1. Can you let me know if this is working for you?.

@pasikarkkainen
Copy link

@muammar now it seems better! I'm actually able to choose the correct chromecast device.. and only one device gets chosen, just like it should be. Thanks a lot!

@muammar
Copy link
Owner

muammar commented Apr 9, 2017

@pasikarkkainen thanks for confirming that is working now :). I will wait some more for @sabret00the to close this report.

@muammar muammar added the systray label Apr 9, 2017
@muammar
Copy link
Owner

muammar commented Apr 10, 2017

I am proceeding to close this report. If you consider that the issue is not solved, please feel free to re-open it again. Thanks.

@muammar muammar closed this as completed Apr 10, 2017
muammar added a commit that referenced this issue Apr 11, 2017
* master: (83 commits)
  This change is needed for the debian package.
  terminal-notifier.app updated.
  Updated changelog, and README files.
  This is a real attempt to solve issue #50.
  Stop casting when changing CC devices
  This commit fixes the controls
  Nodejs 7.8.0.
  - Removed requirements_app.txt file. - Updated requirements.txt - Refactored nodejs/html5-video-streamer.js.
  - Removed requirements_app.txt file. - Updaed requirements.txt - Refactored nodejs/html5-video-streamer.js.
  Revert "node bumped to 7.7.4."
  node bumped to 7.7.4.
  Renamed terminate.py to utils.py
  Fixed nodejs audio cast in macOS.
  Refactoring just a bit.
  This commit fixes `NameError: global name 'USER' is not defined` for macOS.
  Update README.md
  Another needed change for node in different distros.
  This is related to the error described in #49 when nodejs can have different names in different Linux distros.
  Fixing issue `OSError: [Errno 8] Exec format error` when using node backend.
  This commit fixes Video using node and macOS.
  ...
@Vednier
Copy link

Vednier commented Apr 11, 2017

Well, i kinda late to barge in into this bug, but there is still minor leftovers of problem present, imho.
I have two chromecasts, one Chromecast 2013 and Chromecast audio. Previously, on mkchromecast 0.3.6 on Ubuntu 16.10 there was problem with inability to select Audio chromecast when 2013 one is online (it was always selected instead Audio). On 0.3.7 this problem is gone. But...for some reason when i select one of chromecasts both getting marked as connected when actually only one is. Not like critical, but confusing.

@pasikarkkainen
Copy link

@Vednier : "both get selected" was already fixed, see discussion above. mkchromecast v0.3.7 is not enough, you need the latest git master version to get the bugfix.

@muammar
Copy link
Owner

muammar commented Apr 13, 2017

@pasikarkkainen thanks for the clarification. I uploaded a new version to Debian archives, so in anytime will be synced to ubuntu repos @Vednier.

@xmbwd
Copy link

xmbwd commented Apr 22, 2017

I used the latest file from the Debian packages, mkchromecast_0.3.7+git20170130-2_all.deb, and the "both get selected" bug remains for me. I understood from the last comment by @muammar that this was the latest version. If so, the bug remains. If not, please let me know where to find the latest.

@muammar
Copy link
Owner

muammar commented Apr 22, 2017

@xmbwd Try the one in unstable https://packages.debian.org/unstable/mkchromecast.

@xmbwd
Copy link

xmbwd commented Apr 22, 2017

Yep. That fixed it. Except now, whenever I switch from one Chromecast device to the other, a new sink is created, sometimes called mkchromecast and sometimes called Null Output. Sometimes, they are both called Null Output. This makes it difficult to determine where the sound will be routed. Any way to remedy?

screenshot from 2017-04-22 11-06-17

@muammar
Copy link
Owner

muammar commented Apr 22, 2017

@xmbwd can you open a new report with this, please?. Thanks for noticing this problem. It may be easy to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants