Forum Discussion

vansh7102's avatar
vansh7102
Reel Rookie
3 years ago

How to Run CanDecodeVideo() method

Hello Sir

I Vansh Student and interested in Development. I have Roku Ultra device and already enabled Developer Settings in that device. Now I want to check the Video Codecs supported by the device. 

I runs a function CanDecodeVideo() but I am getting blank screen no output was display. Similarly this happen when I run GetSupportedGraphicsResolutions() as Object, GetDisplaySize() as Object. But when I runs GetModelDisplayName() as String, GetModelType() as String working fine gives me some output. 

Sir please tell me that how should I run CanDecodeVideo() such that I can get some relevant output. 

My Code Was this:

sub init()
m.top.SetFocus(true)

di = CreateObject("roDeviceInfo")

i=di.CanDecodeVideo()

infoPane = m.top.findNode("infoPane")
infoPane.infoText = i
End sub

Thanks and Regards

Vansh

No RepliesBe the first to reply