msdk 调用8k照片保存, 拍照图传卡死
已完成设置photoSize 为PhotoSize.SIZE_LARGE后, 变焦到7倍以上拍照,图传卡死,切换成pilot app也卡死,必须重置相机参数才恢复
CamearUtil.setPhotoResolution(ComponentIndexType.LEFT_OR_MAIN, CameraLensType.CAMERA_LENS_WIDE, PhotoSize.SIZE_LARGE);
CameraUtil.kt
@JvmStatic
fun setPhotoResolution(
cameraIndex: ComponentIndexType,
lensType: CameraLensType,
photoSize: PhotoSize
) {
KeyTools.createCameraKey(
CameraKey.KeyPhotoSize, cameraIndex, lensType
).set(photoSize,
onSuccess = {
Log.i(
TAG,
"set setPhotoResolution to $photoSize succeed"
)
ToastUtils.showToast("$photoSize success")
}, onFailure = {
Log.i(
TAG,
"set setPhotoResolution to $photoSize fail ," + it.errorCode()
)
ToastUtils.showToast("$photoSize fail")
})
}
fun setPhotoResolution(
cameraIndex: ComponentIndexType,
lensType: CameraLensType,
photoSize: PhotoSize
) {
KeyTools.createCameraKey(
CameraKey.KeyPhotoSize, cameraIndex, lensType
).set(photoSize,
onSuccess = {
Log.i(
TAG,
"set setPhotoResolution to $photoSize succeed"
)
ToastUtils.showToast("$photoSize success")
}, onFailure = {
Log.i(
TAG,
"set setPhotoResolution to $photoSize fail ," + it.errorCode()
)
ToastUtils.showToast("$photoSize fail")
})
}
请先登录再写评论。
评论
2 条评论