行业视频管理服务 IVM-获取实况地址统一接口:响应示例

时间:2024-10-31 19:06:28

响应示例

状态码: 200

OK

{
	"fail_num": 1,
	"live_connections": [
		{
			"device_id": "219123456CYP***",
			"channel_id": "0",
			"cloud_trans_connections": {},
			"p2p_connections": {},
			"result": {
				"code": "IVM.10026004",
				"msg": "The param stream_type is not support."
			}
		},
		{
			"device_id": "210123456SMY***",
			"channel_id": "0",
			"cloud_trans_connections": {
				"live_url": "jvmp://123.123.123.123:7070/live/210123456SMY***?token=content***"
			},
			"p2p_connections": {
				"token": "content***",
				"device_state": "ONLINE",
				"p2p_nodes": [
					{
						"node_type": "COMMON",
						"address_type": "IPV4",
						"address": [
							"123.123.123.123"
						],
						"tcp_port": 0,
						"udp_port": 7050
					}
				]
			},
			"result": {
				"code": "IVM.0",
				"msg": "Success"
			}
		}
	]
}
support.huaweicloud.com/api-ivm/ivm_03_0052.html