From b17634622aa98a1c060e6818fa6d808c7ecb59b1 Mon Sep 17 00:00:00 2001 From: mali Date: Wed, 16 Nov 2022 11:34:59 +0800 Subject: [PATCH] Correction of writing errors in camera data Signed-off-by: mali --- .../application-dev/reference/apis/js-apis-camera.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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 1d7ecedb9b..37f838c7eb 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-camera.md +++ b/zh-cn/application-dev/reference/apis/js-apis-camera.md @@ -194,7 +194,7 @@ getSupportedOutputCapability(camera:CameraDevice, callback: AsyncCallback { +cameraManager.getSupportedOutputCapability(cameradevice, (err, CameraOutputCapability) => { if (err) { console.error(`Failed to get the cameras. ${err.message}`); return; @@ -728,8 +728,8 @@ cameraManager.on('cameraStatus', (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; @@ -1005,7 +1005,7 @@ cameraInput.on('error', (cameraInputError) => { | -------------------------- | ---- | ------------ | | FOCUS_MODE_MANUAL | 0 | 手动对焦。 | | FOCUS_MODE_CONTINUOUS_AUTO | 1 | 连续自动对焦。 | -| FOCUS_MODE_AUTO | 2 | 自动变焦。 | +| FOCUS_MODE_AUTO | 2 | 自动对焦。 | | FOCUS_MODE_LOCKED | 3 | 对焦锁定。 | ## FocusState @@ -2019,8 +2019,8 @@ getExposureBiasRange(): Promise\> **示例:** ```js -captureSession.isExposureModeSupported(camera.ExposureMode.EXPOSURE_MODE_LOCKED).then((isSupported) => { - console.log(`Promise returned with exposure mode supported : ${isSupported}`); +captureSession.getExposureBiasRange().then((biasRangeArray) => { + console.log('Promise returned with the array of compenstation range: ' + JSON.stringify(biasRangeArray)); }) ``` -- GitLab