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

On disconnecting/stopping ChromeCast from one device it is getting disconnected from both android devices #111

Open
amrith009 opened this issue Sep 3, 2021 · 3 comments

Comments

@amrith009
Copy link

amrith009 commented Sep 3, 2021

On disconnecting/stopping ChromeCast from one device it is getting disconnected from both android devices

1)Connect Android device 1 to chromecast and start streaming.
2)Connect Android device 2 to the same chromecast device.(Just keep connected)
3)Press Stop casting from Android device 2.

Expected Behaviour

  1. Only Android device 2 should disconnect from the receiver without interrupting Android device 1 and content should playback continuously

Actual Behaviour

  1. Playback is interrupted in chromecast and Android device 1 is also getting disconnected from the receiver
@amrith009 amrith009 changed the title On disconnecting ChromeCast from one device it is getting disconnected from both android devices On disconnecting/stopping ChromeCast from one device it is getting disconnected from both android devices Sep 3, 2021
@SashiWork
Copy link

SashiWork commented May 9, 2022

Hi,

I'm facing similar issue with different scenario, where I wanted the 1st device to disconnect when the 2nd device connected to Chromecast.

But when called below method it is disconnecting from both devices.

 castSession!!.setMessageReceivedCallbacks("urn:x-cast:com.example.cast"
        ) { castDevice, namespace, message ->
            castContext?.sessionManager?.endCurrentSession(true)
        }

if any solution/method available for this, please do let me know.

@jaworskim
Copy link

We were having the same issue in our app, so I've checked this Cast sample. Same issue exists here, when I have two senders, disconnecting one kills the receiver.

@skyler91
Copy link

Seeing the same issue. Have any solutions/workarounds been found?

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

No branches or pull requests

4 participants