I am developing a TV Remote control application. I am only discovering CastService
and DIALService
devices. After getting the devices list. I select a device and try to connect it with the below code.
connectableDevice.addListener(connectableDeviceListener)
connectableDevice.setPairingType(null)
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 ?