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

Firmwar 5.2 - CreateObject("roDeviceInfo").GetVersion()

I am trying to detect if a Roku has new firmware and has support for captions in the roVideoPlayer. I was going to do a test for 5.2, but i got 5.02? Can I test for that? Is there a better way?


version = CreateObject("roDeviceInfo").GetVersion()
versionNumber = Val(version.Mid(2,4))

print "version: ";version;versionNumber
if (versionNumber >= 5.02)
print "has caption support"
end if



'this is version variable?
025.02E03264A
- Daniel
http://dbulli.com
0 Kudos
3 REPLIES 3
dbulli
Visitor

Re: CreateObject("roDeviceInfo").GetVersion() shows 5.02?

Also if i got to Roku box > Settings > Account it shows Version 5.2.build 3264
- Daniel
http://dbulli.com
0 Kudos
destruk
Streaming Star

Re: Firmwar 5.2 - CreateObject("roDeviceInfo").GetVersion()

5.2 is 5.02. They are the same. When you version your channel for publication on the channel store it works the same way. 5.3=5.03, 5.4=5.04, 5.10=5.10
0 Kudos
dbulli
Visitor

Re: Firmwar 5.2 - CreateObject("roDeviceInfo").GetVersion()

"destruk" wrote:
5.2 is 5.02. They are the same. When you version your channel for publication on the channel store it works the same way. 5.3=5.03, 5.4=5.04, 5.10=5.10


Thanks destruk, then my check should be ok.
- Daniel
http://dbulli.com
0 Kudos