Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ratish
Visitor

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 3
ratish
Visitor

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
Roku Guru

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
Visitor

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