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 5a983b124a5f6292ef8f62fcc7981494b1b997ac..6ed25e59dbca34a1b663dfdeda59bfe2c903b5af 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-camera.md +++ b/zh-cn/application-dev/reference/apis/js-apis-camera.md @@ -440,7 +440,7 @@ createPreviewOutput(profile: Profile, surfaceId: string, callback: AsyncCallback **示例:** ```js -cameraManager.createPreviewOutput(profile, surfaceId, (err, previewoutput) => { +cameraManager.createPreviewOutput(profile, surfaceId, (err, previewOutput) => { if (err) { console.error(`Failed to gcreate previewOutput. ${err.message}`); return; @@ -473,7 +473,7 @@ createPreviewOutput(profile: Profile, surfaceId: string): Promise { +cameraManager.createPreviewOutput(profile, surfaceId).then((previewOutput) => { console.log('Promise returned with previewOutput created.'); }) ``` @@ -497,7 +497,7 @@ createPhotoOutput(profile: Profile, surfaceId: string, callback: AsyncCallback

{ +cameraManager.createPhotoOutput(profile, surfaceId, (err, photoOutput) => { if (err) { console.error(`Failed to create photoOutput. ${err.message}`); return; @@ -530,7 +530,7 @@ createPhotoOutput(profile: Profile, surfaceId: string): Promise **示例:** ```js -cameraManager.createPhotoOutput(profile, surfaceId).then((photooutput) => { +cameraManager.createPhotoOutput(profile, surfaceId).then((photoOutput) => { console.log('Promise returned with photoOutput created.'); }) ``` @@ -554,7 +554,7 @@ createVideoOutput(profile: VideoProfile, surfaceId: string, callback: AsyncCallb **示例:** ```js -cameraManager.createVideoOutput(profile, surfaceId, (err, videooutput) => { +cameraManager.createVideoOutput(profile, surfaceId, (err, videoOutput) => { if (err) { console.error(`Failed to create videoOutput. ${err.message}`); return; @@ -587,7 +587,7 @@ createVideoOutput(profile: VideoProfile, surfaceId: string): Promise { +cameraManager.createVideoOutput(profile, surfaceId).then((videoOutput) => { console.log('Promise returned with videoOutput created.'); }) ``` @@ -610,7 +610,7 @@ createMetadataOutput(metadataObjectTypes:Array, callback: A **示例:** ```js -cameraManager.createMetadataOutput(metadataObjectTypes, (err, metadataoutput) => { +cameraManager.createMetadataOutput(metadataObjectTypes, (err, metadataOutput) => { if (err) { console.error(`Failed to create metadataOutput. ${err.message}`); return; @@ -642,7 +642,7 @@ createMetadataOutput(metadataObjectTypes:Array): Promise { +cameraManager.createMetadataOutput().then((metadataOutput) => { console.log('Promise returned with metadataOutput created.'); }) ```