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

时间:2024-05-21 18:46:18

响应示例

状态码: 200

OK

{
	"playback_connections": {
		"device_id": "219123456CYP***",
		"channel_id": "0",
		"cloud_trans_connections": {
			"playback_url": "jvmp://123.123.123.123:7070/vod/219123456CYP***?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"
			},
			"start_time": "2023-03-20 10:05:00",
			"end_time": "2023-03-20 12:50:00"
		}
	}
}

{
	"playback_connections": {
		"device_id": "219123456CYP***",
		"channel_id": "0",
		"cloud_trans_connections": {
			"playback_url": "http://123.123.123.123:7083/dev_vod/vod.m3u8?token=content***&device_id=219123456CYP***&channel_id=0&stream_type=0"
		},
		"p2p_connections": {}
	}
}

{
	"playback_connections": {
		"device_id": "219123456CYP***",
		"channel_id": "0",
		"cloud_trans_connections": {
			"playback_url": "https://123.123.123.123:7081/vod/vod.m3u8?token=content***&device_id=219123456CYP***&channel_id=0"
		},
		"p2p_connections": {}
	}
}
support.huaweicloud.com/api-ivm/ivm_03_0054.html