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

Failed to connect to Google Cast device (Chromcast) #135

Open
Mehrankhan92 opened this issue Oct 13, 2022 · 1 comment
Open

Failed to connect to Google Cast device (Chromcast) #135

Mehrankhan92 opened this issue Oct 13, 2022 · 1 comment

Comments

@Mehrankhan92
Copy link

Mehrankhan92 commented Oct 13, 2022

Hi,

I am developing a TV Remote control application. I am only discovering CastService and DLNAService devices. After getting the devices list. I select a device and try to connect it with the below code.

`
deviceModel.connectableDevice.addListener(connectableDeviceListener)
deviceModel.connectableDevice.setPairingType(DeviceService.PairingType.MIXED)
deviceModel.connectableDevice.connect()

`

After a few seconds, I only receive a callback in onDeviceDisconnected() method. nothing else is happening. After some deep debugging, I found that the error states that Failed to connect to Google Cast Device.

I have no idea about what is going wrong here. Am I missing something ?

Also, What should I set in .setPairingType(PairingType) as I have tried all the PairingTypes but of no use.

@najam-amfnrh9
Copy link

Hye, Have you fixed with your issue? I need help in an issue like above.

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

2 participants