Skip to content

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

@Mehrankhan92

Description

@Mehrankhan92

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions