我通过mqtt指令分别开启负载摄像头和自带摄像头,返回的视频都是负载摄像头的视频
Completed我的机器是m30T,我通过mqtt指令分别开启负载摄像头和自带摄像头,返回的视频都是负载摄像头的视频,以下是我分别发送的mqtt指令:
Topic: thing/product/4LFCK9V0038KPK/servicesQoS: 0
{
"tid": "4b44df32-d6cb-4f70-93ab-791ab2dc541f",
"bid": "206c4582-ccc5-4f5a-8b06-5c15e73b9bff",
"method": "live_start_push",
"data": {
"url": "serverIP=192.168.0.126&serverPort=5061&serverID=34020000002000000001&agentID=34020000001320100001&agentPassword=123456&localPort=7060&channel=34020000001320100001",
"url_type": 3,
"video_id": "1581F5BKD22AA00C85M4/39-0-7/normal-0",
"video_quality": 1
}
}
Topic: thing/product/4LFCK9V0038KPK/servicesQoS: 0
{
"tid": "f402ad28-e555-4b3b-85cd-040f24b44e0b",
"bid": "9de28d98-88df-4219-89ad-0600e7d0418e",
"method": "live_start_push",
"data": {
"url": "serverIP=192.168.0.126&serverPort=5061&serverID=34020000002000000001&agentID=34020000001320100001&agentPassword=123456&localPort=7060&channel=34020000001320100001",
"url_type": 3,
"video_id": "1581F5BKD22AA00C85M4/53-0-0/zoom-0",
"video_quality": 1
}
}
以下是我通过mqtt收到的设备列表
{
"bid": "00000000-0000-0000-0000-000000000000",
"data": {
"live_capacity": {
"available_video_number": 2,
"coexist_video_number_max": 1,
"device_list": [
{
"available_video_number": 2,
"camera_list": [
{
"available_video_number": 1,
"camera_index": "53-0-0",
"coexist_video_number_max": 1,
"video_list": [
{
"video_index": "zoom-0",
"video_type": "zoom"
},
{
"video_index": "wide-0",
"video_type": "wide"
},
{
"video_index": "thermal-0",
"video_type": "thermal"
}
]
},
{
"available_video_number": 1,
"camera_index": "39-0-7",
"coexist_video_number_max": 1,
"video_list": [
{
"video_index": "normal-0",
"video_type": "normal"
}
]
}
],
"coexist_video_number_max": 1,
"sn": "WRJ00000000000000003"
}
]
}
},
"tid": "00000000-0000-0000-0000-000000000000",
"timestamp": 1678177225780,
"gateway": "Pilot000000003"
}
-
如你所说“对于GB协议,每个设备在服务器中注册时,需要有唯一的设备编号,但是你开启直播时使用的都是同一个。”
我重启无人机,重启遥控器,然后下发开启直播指令,url是"serverIP=192.168.0.126&serverPort=5061&serverID=34020000002000000001&agentID=34020000001320100001&agentPassword=123456&localPort=7060&channel=34020000001320100001", "video_id"是 "1581F5BKD22AA00C85M4/39-0-7/normal-0",
然后重启无人机,重启遥控器,然后下发开启直播指令,url是"serverIP=192.168.0.126&serverPort=5061&serverID=34020000002000000001&agentID=34020000001320100001&agentPassword=123456&localPort=7060&channel=34020000001320100001", "video_id"是 "1581F5BKD22AA00C85M4/53-0-0/zoom-0"。
也就是url相同,video_id不同,这时我接收到的直播视频是一样的。
请问,这是正常的吗?如果不正常,我该怎么操作才能收到不同的视频?
-
我重启无人机和遥控器,下发下面的第一条mqtt指令,然后重启无人机和遥控器,下发下面的第二条mqtt指令,为什么开启的都是无人机自带的摄像头呢?我的指令有问题吗?
Topic: thing/product/4LFCK9V0038KPK/servicesQoS: 0
{"tid":"d03ed74c-3780-4397-b1c6-2c4d7c6a0cfb","bid":"46dac255-7f21-4eb7-a1bb-51c52da54729","method":"live_start_push","data":{"url":"serverIP=192.168.0.102&serverPort=5061&serverID=34020000002000000001&agentID=34020000001320100001&agentPassword=123456&localPort=7060&channel=34020000001320100001","url_type":3,"video_id":"1581F5BKD22AA00C85M4/39-0-7/normal-0","video_quality":1}}
Topic: thing/product/4LFCK9V0038KPK/servicesQoS: 0
{"tid":"6ca91f4a-b66b-4df8-8660-235e2ab3ca95","bid":"7e48b62e-bf58-4281-a665-ff506a313df1","method":"live_start_push","data":{"url":"serverIP=192.168.0.102&serverPort=5061&serverID=34020000002000000001&agentID=34020000001320100001&agentPassword=123456&localPort=7060&channel=34020000001320100001","url_type":3,"video_id":"1581F5BKD22AA00C85M4/53-0-0/zoom-0","video_quality":1}} -
{"tid":"d03ed74c-3780-4397-b1c6-2c4d7c6a0cfb","bid":"46dac255-7f21-4eb7-a1bb-51c52da54729","method":"live_start_push","data":{"url":"serverIP=192.168.0.102&serverPort=5061&serverID=34020000002000000001&agentID=34020000001320100001&agentPassword=123456&localPort=7060&channel=34020000001320100001","url_type":3,"video_id":"1581F5BKD22AA00C85M4/39-0-7/normal-0","video_quality":1}}
{"tid":"6ca91f4a-b66b-4df8-8660-235e2ab3ca95","bid":"7e48b62e-bf58-4281-a665-ff506a313df1","method":"live_start_push","data":{"url":"serverIP=192.168.0.102&serverPort=5061&serverID=34020000002000000001&agentID=34020000001320100002&agentPassword=123456&localPort=7060&channel=34020000001320100002","url_type":3,"video_id":"1581F5BKD22AA00C85M4/53-0-0/zoom-0","video_quality":1}}
Please sign in to leave a comment.
Comments
12 comments