Player APIs (BrightScript & Ja...
BrightScript-JavaScript Object...
BSDeviceInfo
3min
for more information about available methods, refer to the rodeviceinfo entry the javascript equivalent is deviceinfo docid\ xcvijzytq6jq780kloglu attributes readonly attribute domstring model readonly attribute domstring version readonly attribute int deviceuptime readonly attribute int devicelifetime readonly attribute int devicebootcount readonly attribute domstring bootversion readonly attribute domstring deviceuniqueid readonly attribute domstring family methods int versioncompare(in domstring version) int bootversioncompare(in domstring version) boolean hasfeature(in domstring feature) example the following javascript example posts device information on the page when the button is clicked function deviceinfo() { var device info = new bsdeviceinfo(); document getelementbyid("modeltext") innerhtml = device info model; document getelementbyid("versiontext") innerhtml = device info version; document getelementbyid("bversiontext") innerhtml = device info bootversion; document getelementbyid("serialtext") innerhtml = device info deviceuniqueid; document getelementbyid("familytext") innerhtml = device info family; document getelementbyid("uptime") innerhtml = device info deviceuptime; document getelementbyid("lifetime") innerhtml = device info devicelifetime; document getelementbyid("bootcount") innerhtml = device info devicebootcount; if(device info versioncompare("4 7 36") > 0) { document getelementbyid("version1") innerhtml = "version > 4 7 36" } else { document getelementbyid("version1") innerhtml = "version <= 4 7 36" } 	if(device info hasfeature("six channel audio")) { document getelementbyid("feature") innerhtml = "6 channel audio available" } else { document getelementbyid("feature") innerhtml = "6 channel audio not available" } }