行业视频管理服务-【旧】批量获取通道实况P2P地址(仅支持好望协议):响应示例

时间:2023-12-06 11:43:50

响应示例

状态码: 200

OK

{
  "p2p_connections" : [ {
    "device_id" : "D123",
    "token" : "XSab786654",
    "p2p_nodes" : [ {
      "address_type" : "IPV4",
      "address" : [ "123.123.*.*", "lingwai123.123.*.*" ],
      "tcp_port" : 0,
      "udp_port" : 7050,
      "node_type" : "BETTER"
    } ],
    "device_state" : "ONLINE",
    "result" : {
      "code" : "IVM.0",
      "msg" : "Success"
    }
  }, {
    "device_id" : "D124",
    "token" : "XSab786654",
    "p2p_nodes" : [ {
      "address_type" : "IPV4",
      "address" : [ "123.123.*.*", "123.123.*.*" ],
      "tcp_port" : 0,
      "udp_port" : 7050,
      "node_type" : "BETTER"
    } ],
    "device_state" : "ONLINE",
    "result" : {
      "code" : "IVM.0",
      "msg" : "Success"
    }
  } ],
  "live_urls" : [ {
    "device_id" : "D123",
    "channel_id" : "0",
    "live_url" : "jvmp://123.123.*.*:***/live/2102412469",
    "result" : {
      "code" : "IVM.0",
      "msg" : "Success"
    }
  }, {
    "device_id" : "D124",
    "channel_id" : "1",
    "live_url" : "jvmp://123.123.*.*:***/live/2102412469",
    "result" : {
      "code" : "IVM.0",
      "msg" : "Success"
    }
  } ]
}
support.huaweicloud.com/api-ivm/P2PConnectLive.html