Device Object

The device object is no longer available in the SDK version 2. You can use the getDeviceProperties method to get the device information.

Device Object Properties

PropertyDescriptionType
idTelemetryTV Device IDstring
serialNumberSerial Numberstring
modelModel Typestring
nameNamestring
locationLocationstring
geoGeographic Coordinates (Requires app and device support)object
osOperating Systemstring
osVersionVersion of the OSstring
tagsTelemetryTV Device Tagsarray
languageLanguage locale settings (derived from the device and account language settings where device if set will override the account)string
deviceLanguageThe localization language set for the devicestring
accountLanguageThe localization language set for the accountstring
browserNameBrowser rendering enginestring
browserVersionBrowser versionstring
uptimeUptime of the device in secondsnumber
contentPlaybackContent playback mode of the device (playlists or webapp)string
environmentVarsDevice environment variablesarray
rotationRotation of the device's screennumber
orientationOrientation of the devicestring
serialPortsThe serial ports of the device (if any)array

Code Samples

import { getDeviceProperties } from '@telemetrytv/sdk'

getDeviceProperties().then((device) => {
  console.log('My device name is:', device.name)
})

What’s Next