接入大疆Mobile sdk禅思H20广角部分接口提示该功能不受支持
0
在接入大疆Mobile SDK H20相机广角部分接口时候报错,用的大疆M300加禅思H20测试显示报错:该功能不受支持,请问下啥原因吗?
以下是我代码部分:
fun startWideAngle(WideAngle: LensType) {
val lensIndex: Int = CommonUtil.getLensIndex(0, WideAngle)
KeyManager.getInstance().getValue(
CameraKey.createLensKey(CameraKey.CAMERA_VIDEO_STREAM_SOURCE_RANGE, 0, lensIndex), object :
GetCallback {
override fun onSuccess(p0: Any?) {
wideangleSub.onNext(p0 as LensType?)
KLog.d(TAG,"SettingsDefinitions.LensType.WIDE -- > $p0")
}
override fun onFailure(error: DJIError) {
error.let {
val e = "startWideAngle-->LensType.WIDE-->:${it.description}"
errorSub.onNext(e)
}
}
})
} |
|
|
|