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: 
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

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.