While using Google Cast to cast to Android TV, is it possible to capture the remote control buttons of the Android TV? - chromecast

I have a CAF receiver and would like to utilize some of the Android TV buttons on it. Is it possible?
Also, I can't get to the debug console of the CAF receiver when using Android TV. I have an ADT-2, what serial number should I be entering on the Google Cast Developer Console?

No
If you go to https://cast.google.com/publish/#/overview and cast to the device(You can see cast option on Chrome browser), you can get the serial number, it will show the serial number on the tv.

On the second question regarding registration of an Android TV device, there was a similar question asked on stackoverflow here (although not ADT-2 specific, but I suppose it applies to ADT-2 too).
I fail to cast my custom receiver app to an Android TV device though. Having registered the serial number in Google cast developer console, I get a session_error without details when trying to setup a cast session. On a second generation chromecast dongle, or a chromecast ultra, it works fine.

Related

does Chromecast with google tv need Android TV receiver app for just casting?

Do I need to develop Android TV Receiver App to cast from existing sender app to "Chromecast with google tv" device?
I thought just web receiver app would be okay for casting without registered android TV app just like Chromecast.
You do not need to developer an Android TV receiver app to cast to the Chromecast with Google TV. A standard web receiver will work on this device the same as a typical device running the Android TV OS. The main reason to use the Cast Connect library to build an Android TV receiver app is if you already have an Android TV app and want to give a more robust casting experience (e.g., allowing users to control playback with their remote control or providing a UX that's easier with native Android code).

Cant debug any apps on google chromecast device

I registered the chromecast in chrome developer account but still i am not able to debug any apps. Chromecast is showing up in the developer console, but the inspect button is not visible. I tried debugging my own styled media receiver app.
https://developers.google.com/cast/docs/debugging
You might have to restart your device to ensure it downloads the latests configs for development. Also, it is very easy to get the serial number wrong when you register your device in the Google Cast Developer console, so double check that too.

Chromecast debugger unavailable

I'm trying to develop a new application for Chromecast device.
However I can't access to Chromecast Debugger by the URL http://[CHROMECAST-IP]:9222 after I've launched my receiver app in Chrome (OS X 10.10.4 / version 45.0.2454.15 dev (64-bit), but it the same with all version).
I've already rebooted and made factory reset my Chromecast few times. My device is also well registered on Google Cast SDK Developer Console and I'm very sure with the device number (I checked 10 times). My app is also registered with an App Id and I'm on the same WiFi network of Chromecast when I cast with my Chrome sender.
Finally, my firmware version is 32904.
Someone can help me to resolve this problem ? If you need other information, ask me.
Please contact our support for this issue; they can help you debug your issue.
To debug a Chromecast device you need to register the app and the Google Cast device and then go to chrome://inspect.
Detailed instructions are here: https://developers.google.com/cast/docs/debugging

How to cast the screen of android device with chromecast?

I'm developing an app which casts a screen of android device with Chromecast. but, I don't know how to cast the screen to a monitor.
How does Chromecast App cast the screen to a monitor?
Please note, the following way requires the Chromecast app running on Android 4.4.2 or greater.
Check this
https://support.google.com/chromecast/answer/6059461?hl=en

Discover chromecast devices

I did everything verbatim on this sample (How do I discover a Chromecast device using Android?).
The chromecast icon turns to white on indicating there are devices available.
When I pressed it, the application unfortunately stops.
What can be going wrong? The only step so far I want to achieve is list all available devices.
Cheers!

Resources