get-settings

Use this interface to obtain the device configurations.

HTTP Request

GET http://ip/usapi?method=get-settings
Parameter Description
method get-settings

Response Body

JSON structure is as follows:

{
  "result": 0,                       // returned status
  "name": "Ultra...",                // device name
  "is-check-update": 1,              // whether to auto-check latest firmware when connecting to Ethernet 
  "audio-sync-offset": 0,            // audio offset(ms)
  "softap": {},                      // AP configurations
  "video-color": {},                 // video information
  "volume": {},                      // audio information                       
  "main-stream": {},                 // main stream configurations
  "sub-stream": {},                  // sub stream configurations
  "audio": {},                       // audio configurations
  "eth": {},                         // Ethernet information
  "stream-server": [...]             // streaming session list
  "video-input-format: {}            // input video format
  "video-output-format": {}          // output video format
}

Request Body

{
  "result": 0,
  "name": "Ultra Encode A304200908001",
  "passwd": 1,
  "is-check-update": 1,
  "audio-sync-offset": 0,
  "softap": {
    "is-softap": 1,
    "is-visible": 1,
    "softap-ssid": "00908001",
  },
  "video-color": {
    "contrast": 100,
    "brightness": 0,
    "saturation": 100,
    "hue": 0
  },
  "volume": {
    "is-mic": 1,
    "mic-gain": 0,
    "is-spi": 1,
    "spi-gain": 0,
    "is-phone": 1,
    "phone-gain": 0
  },
  "main-stream": {
    "is-auto": 0,
    "codec": 0,
    "cx": 1920,
    "cy": 1080,
    "duration": 166667,
    "kbps": 4096,
    "gop": 1,
    "fourcc": 0,
    "profile": 2,
    "cbrstat": 60,
    "fullrange": 0
  },
  "sub-stream": {
    "cx": 1024,
    "cy": 768,
    "duration": 333333,
    "kbps": 1024,
    "gop": 1,
    "fourcc": 0,
    "profile": 2,
    "cbrstat": 60,
    "fullrange": 1
  },
  "audio": {
    "sample-rate": 48000,
    "channels": 2,
    "kbps": 128
  },
  "eth": {
    "is-dhcp": 1,
    "ip": "",
    "mask": "",
    "router": "",
    "dns": ""
  },
  "stream-server": [
    {
      "id": 0,
      "type": 0,
      "url": "192.168.1.123:345/live",
      "key": "aa",
      "is-auth": 0,
      "user": "",
      "passwd": "",
      "is-use": 0,
      "token": "",
      "net-mode": 1,
      "name": "192.168.1.123"
    }
  ]
  "video-input-format": {
    "is-color-fmt": 0,
    "color-fmt": 3,
    "is-quant-range": 0,
    "quant-range": 2
    },
  "video-output-format": {
    "is-color-fmt": 0,
    "color-fmt": 3,
    "is-quant-range": 0,
    "quant-range": 2,
    "is-sat-range": 0,
    "sat-range": 2
    }
}

results matching ""

    No results matching ""

    results matching ""

      No results matching ""