Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dbulli
Level 7

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
dbulli
Level 7

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
Level 10

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

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