LDWS API Info Endpoints

 

GET /v1/info/ 

Returns basic player information

Request Example

GET /api/v1/info/ HTTP/1.1 Host: {{playerIP} Authorization: {{DigestAuth}}

Response Body

  • serial string: The serial number of the player

  • model string: The model number of the device (e.g. "XD234")

  • connectionType string: The currently active network interface, which can be either "Ethernet" or "WiFi"

  • ethernet object: An object containing information about the ethernet connection. This property will only be available if there's a valid ethernet connection on the player. The object can contain the following properties:

    • IPv4 object: An object containing information about the IPv4 configuration. The object can contain the following properties:

      • address string: The assigned IPv4 address

      • netmask string: The IPv4 network mask

      • family string: IPv4

      • mac string: The MAC address of the network interface

      • internal bool: true if the network interface is a loopback or similar interface that is not remotely accessible; otherwise false

      • cidr string: The assigned IPv4 address with the routing prefix in CIDR notation. If the netmask is invalid, this property is set to null.

    • IPv6 object: An object containing information about the IPv6 configuration:

      • address string: The assigned IPv6 address

      • netmask string: The IPv6 network mask

      • family string: IPv6

      • mac string: The MAC address of the network interface

      • internal bool: true if the network interface is a loopback or similar interface that is not remotely accessible; otherwise false

      • cidr string: The assigned IPv6 address with the routing prefix in CIDR notation. If the netmask is invalid, this property is set to null.

  • bootVersion string: The current version of the boot loader

  • fwVersion  string: The current version of firmware installed on the player

  • upTime string: The amount of time (as a human-readable string) that the player has been powered on and working correctly

  • upTimeSeconds int: The amount of time (in seconds) that the player has been powered on and working correctly

  • extensions extension[ ]: An array of Extension objects describing Firmware Extensions currently installed on the player

  • blessings blessing[ ]: An array of Blessing objects describing proprietary codecs that are currently authorized on the player

Response Example

{ "route": "/v1/info", "method": "GET", "data": { "result": { "serial": "RE433D006644", "upTime": "30 minutes", "upTimeSeconds": 1832, "model": "XD1035", "FWVersion": "9.0.97", "bootVersion": "9.0.85", "family": "cobra", "isPlayer": true, "power": { "result": { "battery": "absent", "source": "AC", "switch_mode": "hard" } }, "poe": { "result": { "status": "inactive" } }, "extensions": { "result": { "extensions": [] } }, "blessings": { "result": { "ac3": false, "eac3": false } }, "networking": { "result": { "description": "Test_player", "name": "XD5-RE433D006644" } }, "bvnPipelines": { "result": { "pipelines": [] } }, "bvnComponents": { "result": { "components": [] } }, "hardware_features": { "hdmi": true, "component video": false, "vga": false, "two channel audio": true, "ethernet": true, "usb": true, "serial port 0": true, "serial port 1": false, "gpio connector": true, "svc button": true, "reset button": true, "rtc": true, "settings rom": false, "microsd": false, "sdhc": true, "six channel audio": false, "ir blaster": true, "wifi": false, "serial port 2": false, "audio input": false, "cec": true, "battery": false, "portrait lcd": false, "hdmi input": false, "digital tuner": false, "spdif": true, "audio input loopback": false, "msata": false, "ac3": false, "eac3": false, "onboard storage": true, "no 4k decode": false, "no bluetooth": false, "no poe": false, "internal storage only": false, "disable packet capture": false, "disable bsn cloud": false, "brightear": false, "disable dws": false }, "api_features": { "video": true }, "active_features": { "legacyDWS": true }, "connectionType": "eth0", "ethernet": [ { "interfaceName": "eth0", "interfaceType": "Ethernet", "IPv4": [ { "address": "123.456.7.890", "netmask": "255.255.255.0", "family": "IPv4", "mac": "90:ac:3f:2a:01:79", "internal": false, "cidr": "192.168.1.174/24" } ], "IPv6": [ { "address": "2600:1700:dac0:2060::23", "netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "family": "IPv6", "mac": "90:ac:3f:2a:01:79", "internal": false, "cidr": "2600:1700:dac0:2060::23/128", "scopeid": 0 }, { "address": "2600:1700:dac0:2060:92ac:3fff:fe2a:179", "netmask": "ffff:ffff:ffff:ffff::", "family": "IPv6", "mac": "90:ac:3f:2a:01:79", "internal": false, "cidr": "2600:1700:dac0:2060:92ac:3fff:fe2a:179/64", "scopeid": 0 }, { "address": "fe80::92ac:3fff:fe2a:179", "netmask": "ffff:ffff:ffff:ffff::", "family": "IPv6", "mac": "90:ac:3f:2a:01:79", "internal": false, "cidr": "fe80::92ac:3fff:fe2a:179/64", "scopeid": 2 } ] } ], "wireless": [], "interfaces": [], "bsnce": true } } }

 

GET /v1/time/ 

Retrieves the date and time as configured on the player. The date/time value is formatted as "yyyy-mm-dd hh:mm:ss <timezone>". 

Request Example

GET /api/v1/time/ HTTP/1.1 Host: {{playerIP}} Authorization: {{DigestAuth}}

Response Example

 

PUT /v1/time/ 

Sets the time on the player. 

Request Body

  • date string: The recommended format is: "YYYY-MM-DD"

  • time string: The recommended format is: "HH:mm"

  • applyTimezone bool: This value decides if the date and time passed is in UTC or not (the default is false).

Request Example

This is the example request body:

Response Example

 

GET /v1/video-mode/ 

Returns the current video mode of the player

Request Example

Response Body

  • width int: The screen width

  • height int: The screen height

  • frames int: The frame rate

  • scan string: The scan method of the video signal, which can be either progressive ("p") or interlaced ("i")

  • name string: The full name of the video mode (a full list of modes can be found here)

  • isAutoMode bool: A flag indicating whether the video mode was set using auto mode

  • mode mode{ }: A Mode object that gives additional information about the video output. This object can contain the following properties:

    • preferred bool: A flag indicating whether the video mode is the preferred mode

    • overscan bool: A flag indicating whether the video output is using an overscan setting or not

    • modeName string: The full name of the video mode (a full list of modes can be found here)

    • interlaced bool: A flag indicating whether the video output is interlaced (true) or progressive (false)

    • width int: The width of the video output

    • height int: The height of the video output

    • graphicsPlaneWidth int: The width of the graphics plane 

    • graphicsPlaneHeight int: The height of the graphics plane

    • frequency int: The frame rate of the video output

    • dropFrame bool: A flag indicating whether the video timecode utilizes drop frames

    • colorSpace string: The color space of the video signal ("rgb", "yuv420", or "yuv422")

    • colorDepth string: The color depth of the video signal ("8bit", "10bit", or "12bit")

Response Example