From 3fc83e3f26bc6f061f52692d3a68e18a913ce5fb Mon Sep 17 00:00:00 2001 From: l30052832 Date: Fri, 20 Sep 2024 11:31:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=8A=A8=E6=80=81=E7=85=A7=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/utils/CameraShooter.ets | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entry/src/main/ets/utils/CameraShooter.ets b/entry/src/main/ets/utils/CameraShooter.ets index b407de8..3b9981f 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 { -- Gitee