Developers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vansh7102
Reel Rookie

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

Tags (1)
0 Kudos
Community is Being Upgraded!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

We're sorry for this disruption — we’re excited to share what’s next!