正在上传图片(0/1)

H20镜头设置规定拍照格式,调用API接口报错

 0
手机看帖 2 707
环境:M300 H20镜头 SDK环境:iOS
DJI-SDK-iOS'[color=rgba(0, 0, 0, 0.85)], '~> 4.14-trial1'
DJI-UXSDK-iOS', '~> 4.14-trial1'
DJIWidget', '~> 1.6.4'

调用接口 - (void)setCaptureStreamSources: (DJICameraStreamSettings *)sourceSettings withCompletion: (DJICompletionBlock)completion 后程序报错

调用如下:
DJICameraStreamSettings *sourceSet = [[DJICameraStreamSettings alloc] initWithNeedCurrentLiveView:YES streams: @[@(DJICameraVideoStreamSourceZoom)]];
[color=rgba(0, 0, 0, 0.85)]
[color=rgba(0, 0, 0, 0.85)][self.camera setCaptureStreamSources:sourceSet withCompletion:^(NSError * _Nullable error) {
[color=rgba(0, 0, 0, 0.85)]    NSLog(@"设置拍照模式:%@", error.deion);
[color=rgba(0, 0, 0, 0.85)]}];

[color=rgba(0, 0, 0, 0.85)]错误信息如下:Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[5f6089d9-94d5-11ea-b982-acde48001122 requestBodyLength]: unrecognized selector sent to instance 0x282ecddd0'

在GitHub下载Mobile-SDK-iOS的代码,添加上述修改拍照格式的代码后,调用也报同样的错误
[color=rgba(0, 0, 0, 0.85)]请问是什么原因导致的
评论
上传
你需要登录之后才能回帖    登录 | 注册
楼主   2020-12-25 3#

官方回复
想养一条边牧  Mavic 2 Pro认证用户 2020-12-25 4#
这个试了下,确实有问题,我之前报告给了DJI
收藏 点赞 评论
分享至:
回复:
上传
取消 评论
快速回复 返回顶部 返回列表