我通过mqtt指令分别开启负载摄像头和自带摄像头,返回的视频都是负载摄像头的视频

Completed

Comments

12 comments

  • Boerma

       "coexist_video_number_max": 1,是因为这个吗?可同时推流的最大码流数量

    0
    Comment actions Permalink
  • cjf

    为了排查各种干扰,我是这么测试的:开启无人机,开启遥控器,通过mqtt下发开启“自带摄像头”的指令,关闭并且重新开启无人机,关闭并且重新开启遥控器,通过mqtt下发开启“负载摄像头”的指令。

    这两次操作返回的视频都是同一个摄像头的视频。

    0
    Comment actions Permalink
  • Boerma

    哦这样啊,我还以为你是同时开启两个摄像头的直播,那是有点奇怪。

    0
    Comment actions Permalink
  • DJI Developer Support
    对于GB协议,每个设备在服务器中注册时,需要有唯一的设备编号,但是你开启直播时使用的都是同一个。
    0
    Comment actions Permalink
  • cjf

    如你所说“对于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不同,这时我接收到的直播视频是一样的。

    请问,这是正常的吗?如果不正常,我该怎么操作才能收到不同的视频?

    0
    Comment actions Permalink
  • DJI Developer Support
    设备编号指的是国标协议中的参数agentID。video_id 用于上云API 区分开启直播的镜头。url 为设备和流媒体服务器建立连接时使用的参数。
    0
    Comment actions Permalink
  • cjf

    我重启无人机和遥控器,下发下面的第一条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}}

    0
    Comment actions Permalink
  • cjf

    抱歉,试了一下,还是不行,能帮我写一个分别开启m30T自带摄像头和负载摄像头的mqtt指令吗?万分感谢。

    0
    Comment actions Permalink
  • DJI Developer Support
    {"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}}
    0
    Comment actions Permalink
  • runl liu

    你好,我想问一下,你的指令是发给无人机的还是发给机场上云的,谢谢!

    0
    Comment actions Permalink
  • cjf

    发给polite2的

    0
    Comment actions Permalink

Please sign in to leave a comment.