get-settings 接口

获取设备的设置信息。

请求方式

GET http://ip/usapi?method=get-settings
参数 说明
method 方法名称:get-settings

返回数据

JSON 结构如下:

{
  "result": 0,                       // 返回状态码
  "name": "Ultra...",                // 设备名称
  "passwd": 1,                       // App 客户端是否需要密码访问
  "is-settings": 0,                  // App 客户端是否能够修改设备配置
  "is-ssdp": 1,                      // 是否开启 UPNP
  "is-startup-rec": 1,               // 设备启动时,是否自动开启录制功能
  "is-startup-live": 1,              // 设备启动时,是否自动开启直播功能
  "is-signal-lost": 0,               // 信号丢失时,是否自动停止直播和录制功能
  "is-hdmi-rec-ctrl": 0,             // 是否允许数码相机或其它设备通过 HDMI 输入信号,控制设备开始或停止录制
  "is-auto-send-file": 0,            // 是否自动 SD 卡录制的文件添加到上传列表
  "is-check-update": 0,              // 是否检测有没有新的固件版本
  "is-auto-rec": 0,                  // 是否有信号时自动启动录制
  "is-auto-live": 0,                 // 是否锁定直播 
  "is-low-latency" 0,                // 直播时是否开启低延时模式
  "enable-key-reset": 0,             // 是否允许通过长按直播按键 5 秒将设备配置参数恢复至默认值
  "enable-key-reboot": 0,            // 是否允许通过长按录制按键 5 秒重新启动设备
  "audio-sync-offset": 20,           // 音频时延时间   
  "softap": {},                      // AP 配置信息
  "date-time": {},                   // 时区和时间
  "rec-control": {},                 // 录制配置信息
  "video-color": {},                 // 视频相关信息
  "volume": {},                      // 音频相关信息               
  "rec-stream": 0,                   // 录制码流类型
  "live-stream": 0,                  // 直播码流类型
  "mws-stream": 1,                   // App 客户端预览码流类型
  "main-stream": {},                 // 主码流配置信息
  "sub-stream": {},                  // 次码流配置信息
  "audio": {},                       // 音频配置信息
  "eth": {},                         // 以太网信息
  "wifi": {},                        // Wi-Fi 信息
  "stream-server": [...],            // 直播服务器列表
  "send-file-cloud": [...],          // 上传服务器列表
  "video-input-format": {},          // 视频输入格式
  "video-output-format": {},          // 视频输出格式
  "use-nosignal-file": 1,            // 是否启用无信号图片
  "nosignal-files": [...]            // 无信号图片列表
}

返回示例:

{
  "result": 0,
  "name": "Ultra Stream C301191111100",
  "passwd": 0,
  "is-settings": 1,
  "is-ssdp": 1,
  "is-signal-lost": 0,
  "is-hdmi-rec-ctrl": 0,
  "is-auto-send-file": 0,
  "is-auto-rec": 0,
  "is-low-latency": 0,
  "is-auto-live": 0,
  "is-check-update": 1,
  "audio-sync-offset": 0,
  "enable-key-reset": 1,
  "enable-key-reboot": 1,
  "softap": {
    "is-softap": 1,
    "is-visible": 1,
    "softap-ssid": "C301181214002",
    "softap-passwd": "81214002"
  },
  "date-time": {
    "timezone": "UTC",
    "is-auto": 1
  },
  "rec-control": {
    "mime-type": 0,
    "usb-option": 1,
    "sd-option": 1,
    "root-folder": "REC_Folder",
    "file-prefix": "VID",
    "time-unit": 5,
  },
  "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
  },
  "rec-stream": 0,
  "live-stream": 0,
  "mws-stream": 1,
  "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": ""
  },
  "wifi": {
    "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"
    }
  ],
  "send-file-cloud": [
    {
      "id": 0,
      "is-use": 1,
      "type": 2,
      "account-id":  "dbid:AABnr7BK6RO5Plz5qH2508Eu95LI2-Lpcsc",
      "photo-path": "",
      "user-name": "qin qiu",
      "access-token": "",
      "refresh-token": ",
      "dir-name": "()",
      "net-mode": 2
    }
  ],
  "video-input-format": {
    "is-color-fmt": 0,
    "color-fmt": 1,
    "is-quant-range": 0,
    "quant-range": 1
  },
  "video-output-format": {
    "is-color-fmt": 0,
    "color-fmt": 3,
    "is-quant-range": 0,
    "quant-range": 2,
    "is-sat-range": 0,
    "sat-range": 2
  },
  "use-nosignal-file": 1,
  "nosignal-files": [
    {
      "id": 0,
      "is-use": 0,
      "is-edit": 0,
      "file-path": "/no-signal/default0.jpg",
      "time": 0
    },
    {
      "id": 1,
      "is-use": 1,
      "is-edit": 0,
      "file-path": "/no-signal/default1.jpg",
      "time": 0
    }
  ]
}

与“”相关结果约

    找不到与“”相关的结果

    与“”相关结果约

      找不到与“”相关的结果