From b240673054a7d36de51a9b6d0b6ea2d2cd99b772 Mon Sep 17 00:00:00 2001 From: mali Date: Wed, 16 Nov 2022 11:36:32 +0800 Subject: [PATCH] Correction of writing errors in camera data Signed-off-by: mali --- zh-cn/application-dev/reference/apis/js-apis-camera.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-camera.md b/zh-cn/application-dev/reference/apis/js-apis-camera.md index 392fb9457b..fc8e356dbb 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-camera.md +++ b/zh-cn/application-dev/reference/apis/js-apis-camera.md @@ -815,8 +815,8 @@ cameraManager.on('cameraMute', (err, cameraStatusInfo) => { ```js async function getCameraInfo("cameraId") { - let cameraManager = await camera.getCameraManager(context); - let cameras = await cameraManager.getSupportedCameras(); + let cameraManager = camera.getCameraManager(context); + let cameras = cameraManager.getSupportedCameras(); let cameraObj = cameras[0]; let cameraId = cameraObj.cameraId; let cameraPosition = cameraObj.cameraPosition; -- GitLab