Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
ratish
Level 7

IsHDMIConnected not working as expected

Hi

I was thinking of using the IsHDMIConnected() method in ifDeviceInfo to detect if the TV connected via HDMI is swicthed off or if HDMI cable is removed.
Intention was to close the app or stop streaming if the TV is off or not connected to Roku.
But the method is always returning true even if you remove the cable or switch of TV.
How to I get to know if HDMI is disconnected if this methods not going to work this way?
0 Kudos
3 Replies
ratish
Level 7

Re: IsHDMIConnected not working as expected

Wanted to share an observation.

The API works with Roku 2 XS Model with 6.1 build 5518. But it doesn't work on Roku 3 with build 6.1 build 5517.

Also on Roku XS, the API doesn't work if TV is switched OFF. Only works if Cable is disconnected. This doesn't seem to serve the purpose.
0 Kudos
EnTerr
Level 8

Re: IsHDMIConnected not working as expected

"ratish" wrote:
The API works with Roku 2 XS Model with 6.1 build 5518. But it doesn't work on Roku 3 with build 6.1 build 5517.

Also on Roku XS, the API doesn't work if TV is switched OFF. Only works if Cable is disconnected. This doesn't seem to serve the purpose.

Wild-ass guess, perhaps when TV is "off" from the remote, it is really in stand-by and still maintains some level of HDMI connection because of HDMI-CEC. How does that compare to unplugging the TV power cable?

Re 6.1.5518 working and 6.1.5517 not working - that is strange. Even stranger than a fw release from a newer date having a smaller build# than an older beta 8-)
0 Kudos
ratish
Level 7

Re: IsHDMIConnected not working as expected

"EnTerr" wrote:
Re 6.1.5518 working and 6.1.5517 not working - that is strange. Even stranger than a fw release from a newer date having a smaller build# than an older beta 8-)


6.1.5518 in XS working but 6.1.5517 in Roku 3 not working.
0 Kudos