scorpiontahir02
9 years agoVisitor
Pragmatically find out if the device is RokuTV?
How to pragmatically find out if the device running the app is a RokuTV (with built in Roku) not a Roku stand alone device or stick.
My Usecase:
I am using the below function to see if HDMI(display basically) is connected or not.
If HDMI is not connected, I activate a sleep mode of my app (where it does not play videos and wait for HDMI to be plugged in again) to save my and my users' bandwidth.
This method works great with Roku stand alone devices and sticks. But with RokuTV this method always returns false, hence my app is always in sleep mode.
My Usecase:
I am using the below function to see if HDMI(display basically) is connected or not.
Function IsHDMIPlugged()
Return CreateObject("roHdmiStatus").IsConnected()
End Function
If HDMI is not connected, I activate a sleep mode of my app (where it does not play videos and wait for HDMI to be plugged in again) to save my and my users' bandwidth.
This method works great with Roku stand alone devices and sticks. But with RokuTV this method always returns false, hence my app is always in sleep mode.