mauimauer / cheapcast

It's CheapCast.
Apache License 2.0
399 stars 107 forks source link

Using multiple devices to cast is not handled well #16

Open weinberz opened 10 years ago

weinberz commented 10 years ago

When casting to Google Music, it seems that only one device can gain control for a given instance of the server.

Steps to reproduce:

  1. Start server.
  2. Check Device 1 and Device 2 - both can see the Cheapcast server.
  3. Start playing Google Music from Device 1.

The end result is either that the Cheapcast server disappears from Device 2 (no cast selector in Google Music app) or no casting can be done from Device 2.

Device 1 - Nexus 4, Android 4.3 Device 2 - Galaxy Nexus, Android 4.2.2 Cheapcast server - Nexus Q, CM 10.1.2

Are there any logs that would be helpful for debugging this?

mauimauer commented 10 years ago

Without knowing how an actual ChromeCast Device would handle this it's hard to say if this is a bug or not. I will look into that as soon as I get my hands on an actual ChromeCast dongle.

weinberz commented 10 years ago

Awesome, thanks! From my experience with Chromecasts, the same scenario plays out like so:

  1. Connect Chromecast to TV
  2. Check Device 1 and Device 2 - both can see the Chromecast.
  3. Start playing Google Music from Device 1.
  4. While music is playing from Device 1, select Chromecast as output on Device 2. Device 2 can now play/pause tracks that were played by Device 1.
  5. Play track with device 2. Device one gets booted off Chromecast, Chromecast smoothely starts play of target song from Device 2.

It's graceful, but not secure or anything - starting new content from a new device kicks off the previously playing content and previously controlling device.