devicecapabilities()
- Print
devicecapabilities()
- Print
Article summary
Did you find this summary helpful?
Thank you for your feedback
deviceCapabilities()
Retrieve various capabilities that a device contains.
Signature:
$badger.deviceCapabilities()
Parameters:
None.
Return Values:
Return Value | Type | Description | Example |
---|---|---|---|
isWifiDevice | boolean | true if device has Wifi capability. Does not mean if currently connected via Wifi. | true |
adobePSK | string | 2.3.0 | |
deviceType | string | ipstb | |
supportsTrueSD | string | "true" | |
aamp | string | 1 | |
nativeDimensions | int[2] [w , h] | [ 1280, 720 ] | |
canMixPCMWithSurround | string | "true" | |
receiverType | string | Native | |
webBrowser | object *userAgent - string *browserType - string *version - string | { "userAgent": "Mozilla/5.0 (Linux; x86_64 GNU/Linux) AppleWebKit/601.1 (KHTML, like Gecko) Version/8.0 Safari/601.1 WPE", "browserType": "WPE", "version": "1.0.0.0" } | |
fontFamilies | string[] | [ "XFINITY Sans Lgt", "XFINITY Sans Med Cond", "XFINITY Sans Med", "XFINITY Sans Cond", "XFINITY Sans Reg", "XFINITY Sans Ex Lgt", "XFINITY Sans Indicators" ] | |
hdr | object *settopHdrSupport - string[] *tvHdrSupport - string[] | { "settopHdrSupport": ["HDR10", "Dolby Vision"], "tvHdrSupport": ["HDR10", "Dolby Vision"] } | |
hdcp | object *supportedHDCPVersion - string The highest version supported by device (fixed value) *receiverHDCPVersion - string The highest version supported by connected downstream device (TV or AVReceiver) (runtime value, may change) *currentHDCPVersion - string The currently negotiated version between device and connected device (runtime value, may change) *connected: boolean *hdcpcompliant: boolean *hdcpenabled: boolean | { "supportedHDCPVersion": "2.2", "receiverHDCPVersion": "1.4", "currentHDCPVersion": "1.4", "connected": false, "hdcpcompliant": false, "hdcpenabled": false } | |
videoDimensions | int[2] [w , h] | [ 1280, 720 ] |
Usage Example:
$badger.deviceCapabilities()
.success(deviceCaps => {
console.log("videoDimensions = " deviceCaps.videoDimensions);
})
.failure(reason => {
});
Was this article helpful?