getAvailableVideoChannels什么情况下为空

Completed

Comments

6 comments

  • DJI Developer Support
    一旦连接上飞机就会开始进行视频通道的初始化。能否告诉我们你在什么情况下出现了getAvailableVideoChannels为空呢?是稳定为空吗?
    0
    Comment actions Permalink
  • Jock

    我是在videoStreamManager.addStreamSourcesListener中获取,稳定为空

    2023-10-07 11:27:33.834  2502-2502  Video5                  I  availableStreamSources:[StreamSource{physicalDeviceCategory = CAMERA, physicalDeviceType = FPV, physicalDevicePosition = NOSE, streamId = 2556672}, StreamSource{physicalDeviceCategory = CAMERA, physicalDeviceType = ZENMUSE_H20, physicalDevicePosition = PORTSIDE, streamId = 2752513}]
    2023-10-07 11:27:33.834  2502-2502  Video5                  I  availableVideoChannels:[]

    0
    Comment actions Permalink
  • Jock

    使用Mate30非常容易出现,使用moto手机就不会,而且Mate30手机YUV格式为YUV420SemiPlanar

    0
    Comment actions Permalink
  • DJI Developer Support
    我放到主线程调用addStreamSourcesListener能获取到availableVideoChannels了,不知是否有关系 -- 能不能给我们一个大概率复现的项目工程?以及你所使用的mate 30是Huawei mate 30吗?系统版本是多少呢? 这里是上传地址:https://pan-sec.djicorp.com/s/Lbqt9HoTqwDz8pH 密码为:dji123
    0
    Comment actions Permalink
  • Jock

    是Huawei mate 30手机

    系统鸿蒙OS4.0.0.113

    现在飞机不在暂时复现不了,当时出现问题,一直获取不到availableVideoChannels,手机重启后就可以获取到了,另一台手机Huawei nova 5  pro也出现过类似情况

    0
    Comment actions Permalink
  • DJI Developer Support
    YUV数据格式的问题在不同设备上的确会存在不同,你可以使用YUV数据回调给出的mediaFormat确定YUV数据格式。一直获取不到availableVideoChannels的问题要麻烦你给到我们一个复现方法或者工程,目前我们自己测试是没有问题的。
    0
    Comment actions Permalink

Please sign in to leave a comment.