devicecapabilities()

    devicecapabilities()


    Article summary

    deviceCapabilities()

    Retrieve various capabilities that a device contains.

    Signature:

    $badger.deviceCapabilities()

    Parameters:

    None.

    Return Values:

    Return ValueTypeDescriptionExample
    isWifiDevicebooleantrue if device has Wifi capability. Does not mean if currently connected via Wifi.true
    adobePSKstring2.3.0
    deviceTypestringipstb
    supportsTrueSDstring"true"
    aampstring1
    nativeDimensionsint[2]
    [w , h]
    [ 1280, 720 ]
    canMixPCMWithSurroundstring"true"
    receiverTypestringNative
    webBrowserobject
    *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"
    }
    fontFamiliesstring[][
    "XFINITY Sans Lgt",
    "XFINITY Sans Med Cond",
    "XFINITY Sans Med",
    "XFINITY Sans Cond",
    "XFINITY Sans Reg",
    "XFINITY Sans Ex Lgt",
    "XFINITY Sans Indicators"
    ]
    hdrobject
    *settopHdrSupport - string[]
    *tvHdrSupport - string[]
    {
    "settopHdrSupport": ["HDR10", "Dolby Vision"],
    "tvHdrSupport": ["HDR10", "Dolby Vision"]
    }
    hdcpobject
    *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
    }
    videoDimensionsint[2] [w , h][ 1280, 720 ]

    Usage Example:

    $badger.deviceCapabilities()
       .success(deviceCaps => {    
    	     console.log("videoDimensions = " deviceCaps.videoDimensions);
    	  })
    		.failure(reason => {
    }); 
    

    Was this article helpful?