diff --git a/entry/src/main/ets/utils/CameraShooter.ets b/entry/src/main/ets/utils/CameraShooter.ets index b407de8545eac13b9627836b38e6a1f97cd5413d..3b9981ff2d6e834fc59f17aae5d81464936e8cb1 100644 --- a/entry/src/main/ets/utils/CameraShooter.ets +++ b/entry/src/main/ets/utils/CameraShooter.ets @@ -118,7 +118,10 @@ export async function cameraShooting(isVideo: boolean, cameraPosition: number, s } export function enableLivePic(isMovingPhoto: boolean): void { - photoOutPut.enableMovingPhoto(isMovingPhoto); + let isSupported: boolean = photoOutPut.isMovingPhotoSupported(); + if (isSupported) { + photoOutPut.enableMovingPhoto(isMovingPhoto); + } } export function setPhotoZoom(zoom: number): void {