From 0ade770c95aacf804d5f32e2b468c4df5da6e7a7 Mon Sep 17 00:00:00 2001 From: Yxk2026 <10178404+yxk2026@user.noreply.gitee.com> Date: Mon, 14 Jul 2025 11:26:09 +0000 Subject: [PATCH 1/4] =?UTF-8?q?=E7=BA=A6=E6=9D=9F=E4=B8=8E=E9=99=90?= =?UTF-8?q?=E5=88=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Yxk2026 <10178404+yxk2026@user.noreply.gitee.com> --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 757c1f3..ce53aaf 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,6 @@ ### 约束与限制 1. 本示例仅支持标准系统上运行,支持设备:华为手机。 -2. HarmonyOS系统:HarmonyOS 5.0.4 Release及以上。 -3. DevEco Studio版本:DevEco Studio 5.0.4 Release及以上。 -4. HarmonyOS SDK版本:HarmonyOS 5.0.4 Release SDK及以上。 \ No newline at end of file +2. HarmonyOS系统:HarmonyOS 5.0.0 Release及以上。 +3. DevEco Studio版本:DevEco Studio 5.0.0 Release及以上。 +4. HarmonyOS SDK版本:HarmonyOS 5.0.0 Release SDK及以上。 \ No newline at end of file -- Gitee From 1fd10e97616c0a100b67d824e65d24b8a245cd23 Mon Sep 17 00:00:00 2001 From: Yxk2026 <10178404+yxk2026@user.noreply.gitee.com> Date: Mon, 14 Jul 2025 11:26:42 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=E7=BA=A6=E6=9D=9F=E4=B8=8E=E9=99=90?= =?UTF-8?q?=E5=88=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Yxk2026 <10178404+yxk2026@user.noreply.gitee.com> --- README.en.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.en.md b/README.en.md index 7169111..43b26c8 100644 --- a/README.en.md +++ b/README.en.md @@ -84,6 +84,6 @@ N/A ### Constraints 1. The sample app is supported only on Huawei phones running the standard system. -2. The HarmonyOS version must be HarmonyOS 5.0.4 Release or later. -3. The DevEco Studio version must be DevEco Studio 5.0.4 Release or later. -4. The HarmonyOS SDK version must be HarmonyOS 5.0.4 Release or later. +2. The HarmonyOS version must be HarmonyOS 5.0.0 Release or later. +3. The DevEco Studio version must be DevEco Studio 5.0.0 Release or later. +4. The HarmonyOS SDK version must be HarmonyOS 5.0.0 Release or later. -- Gitee From ee7db97d5cb3f5b710379ba4d5661462d6532ddf Mon Sep 17 00:00:00 2001 From: Yxk2026 <10178404+yxk2026@user.noreply.gitee.com> Date: Mon, 14 Jul 2025 11:27:02 +0000 Subject: [PATCH 3/4] =?UTF-8?q?api=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Yxk2026 <10178404+yxk2026@user.noreply.gitee.com> --- build-profile.json5 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-profile.json5 b/build-profile.json5 index 651829e..cde2069 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -5,7 +5,7 @@ { "name": "default", "signingConfig": "default", - "compatibleSdkVersion": "5.0.4(16)", + "compatibleSdkVersion": "5.0.0(12)", "runtimeOS": "HarmonyOS" } ], -- Gitee From e8cdcc918b3273647f2d073ecab6232ec67fd86e Mon Sep 17 00:00:00 2001 From: Yxk2026 <10178404+yxk2026@user.noreply.gitee.com> Date: Mon, 14 Jul 2025 11:29:08 +0000 Subject: [PATCH 4/4] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BD=95=E5=83=8F?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E5=8F=AA=E6=98=BE=E7=A4=BA=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E8=A7=86=E9=A2=91=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Yxk2026 <10178404+yxk2026@user.noreply.gitee.com> --- entry/src/main/ets/views/ModeComponent.ets | 3 +++ 1 file changed, 3 insertions(+) diff --git a/entry/src/main/ets/views/ModeComponent.ets b/entry/src/main/ets/views/ModeComponent.ets index 6cd0a97..d6bcaed 100644 --- a/entry/src/main/ets/views/ModeComponent.ets +++ b/entry/src/main/ets/views/ModeComponent.ets @@ -145,6 +145,9 @@ export struct ModeComponent { if (this.sceneMode === camera.SceneMode.NORMAL_PHOTO) { await CameraService.takePicture(); } else { + let cameraDeviceIndex = GlobalContext.get().getT('cameraDeviceIndex'); + let surfaceId = GlobalContext.get().getT('xComponentSurfaceId'); + await CameraService.initCamera(surfaceId, cameraDeviceIndex); await CameraService.startVideo(); this.isRecording = true; } -- Gitee