di=createobject("roDeviceInfo")
version=di.GetVersion()
version_major=mid(version,3,1)
version_minor=mid(version,5,2)
version_build=mid(version,8,5)
if version_minor.toint() < 10 then
version_minor=mid(version_minor,2)
end if
userAgent="Roku/DVP-"+version_major+"."+version_minor+" ("+version+")"
ui = CreateObject ("roVideoScreen")
ui.AddHeader ("User-Agent", "Apple TV - version 42")
@pir8radiocan you link that google search post? Also do you know if different versions of Roku present different user agent strings? For example, do user agent strings for Roku premiere differ from the user agent strings for Roku ultra?
This seems to produce
@mdale, GetVersion() is deprecated. Use GetOSVersion().