Question

As I can see, Chromecast supports HDMI-CEC to control TV, for example - switch TV input. But I did not found in the documentation how it can be implemented. Is SDK for Android support TV control through HDMI-CEC? And if so - what methods and classes I must use to control it?

Was it helpful?

Solution

If HDMI-CEC is supported on your TV, you don't need to do anything extra from your android application; when user connects to your cast device, TV will be automatically turned on and input source will switch appropriately. On your receiver, there are a couple of things that you can do if you wish, and if the HDMI stack supports it: for example if you are casting a video to your chromecast device and user grabs the remote control and switches the input away from your chromecast input, you will receive a webkitvisibilitychange event in your receiver app so you can, say, pause the video.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top