未验证 提交 6618f978 编写于 作者: O openharmony_ci 提交者: Gitee

!11812 Camera data captureSession case synchronization to master

Merge pull request !11812 from 马利/master
...@@ -440,7 +440,7 @@ createPreviewOutput(profile: Profile, surfaceId: string, callback: AsyncCallback ...@@ -440,7 +440,7 @@ createPreviewOutput(profile: Profile, surfaceId: string, callback: AsyncCallback
**示例:** **示例:**
```js ```js
cameraManager.createPreviewOutput(profile, surfaceId, (err, previewoutput) => { cameraManager.createPreviewOutput(profile, surfaceId, (err, previewOutput) => {
if (err) { if (err) {
console.error(`Failed to gcreate previewOutput. ${err.message}`); console.error(`Failed to gcreate previewOutput. ${err.message}`);
return; return;
...@@ -473,7 +473,7 @@ createPreviewOutput(profile: Profile, surfaceId: string): Promise<PreviewOutput\ ...@@ -473,7 +473,7 @@ createPreviewOutput(profile: Profile, surfaceId: string): Promise<PreviewOutput\
**示例:** **示例:**
```js ```js
cameraManager.createPreviewOutput(profile, surfaceId).then((previewoutput) => { cameraManager.createPreviewOutput(profile, surfaceId).then((previewOutput) => {
console.log('Promise returned with previewOutput created.'); console.log('Promise returned with previewOutput created.');
}) })
``` ```
...@@ -497,7 +497,7 @@ createPhotoOutput(profile: Profile, surfaceId: string, callback: AsyncCallback<P ...@@ -497,7 +497,7 @@ createPhotoOutput(profile: Profile, surfaceId: string, callback: AsyncCallback<P
**示例:** **示例:**
```js ```js
cameraManager.createPhotoOutput(profile, surfaceId, (err, photooutput) => { cameraManager.createPhotoOutput(profile, surfaceId, (err, photoOutput) => {
if (err) { if (err) {
console.error(`Failed to create photoOutput. ${err.message}`); console.error(`Failed to create photoOutput. ${err.message}`);
return; return;
...@@ -530,7 +530,7 @@ createPhotoOutput(profile: Profile, surfaceId: string): Promise<PhotoOutput\> ...@@ -530,7 +530,7 @@ createPhotoOutput(profile: Profile, surfaceId: string): Promise<PhotoOutput\>
**示例:** **示例:**
```js ```js
cameraManager.createPhotoOutput(profile, surfaceId).then((photooutput) => { cameraManager.createPhotoOutput(profile, surfaceId).then((photoOutput) => {
console.log('Promise returned with photoOutput created.'); console.log('Promise returned with photoOutput created.');
}) })
``` ```
...@@ -554,7 +554,7 @@ createVideoOutput(profile: VideoProfile, surfaceId: string, callback: AsyncCallb ...@@ -554,7 +554,7 @@ createVideoOutput(profile: VideoProfile, surfaceId: string, callback: AsyncCallb
**示例:** **示例:**
```js ```js
cameraManager.createVideoOutput(profile, surfaceId, (err, videooutput) => { cameraManager.createVideoOutput(profile, surfaceId, (err, videoOutput) => {
if (err) { if (err) {
console.error(`Failed to create videoOutput. ${err.message}`); console.error(`Failed to create videoOutput. ${err.message}`);
return; return;
...@@ -587,7 +587,7 @@ createVideoOutput(profile: VideoProfile, surfaceId: string): Promise<VideoOutput ...@@ -587,7 +587,7 @@ createVideoOutput(profile: VideoProfile, surfaceId: string): Promise<VideoOutput
**示例:** **示例:**
```js ```js
cameraManager.createVideoOutput(profile, surfaceId).then((videooutput) => { cameraManager.createVideoOutput(profile, surfaceId).then((videoOutput) => {
console.log('Promise returned with videoOutput created.'); console.log('Promise returned with videoOutput created.');
}) })
``` ```
...@@ -610,7 +610,7 @@ createMetadataOutput(metadataObjectTypes:Array<MetadataObjectType\>, callback: A ...@@ -610,7 +610,7 @@ createMetadataOutput(metadataObjectTypes:Array<MetadataObjectType\>, callback: A
**示例:** **示例:**
```js ```js
cameraManager.createMetadataOutput(metadataObjectTypes, (err, metadataoutput) => { cameraManager.createMetadataOutput(metadataObjectTypes, (err, metadataOutput) => {
if (err) { if (err) {
console.error(`Failed to create metadataOutput. ${err.message}`); console.error(`Failed to create metadataOutput. ${err.message}`);
return; return;
...@@ -642,7 +642,7 @@ createMetadataOutput(metadataObjectTypes:Array<MetadataObjectType\>): Promise<Me ...@@ -642,7 +642,7 @@ createMetadataOutput(metadataObjectTypes:Array<MetadataObjectType\>): Promise<Me
**示例:** **示例:**
```js ```js
cameraManager.createMetadataOutput().then((metadataoutput) => { cameraManager.createMetadataOutput().then((metadataOutput) => {
console.log('Promise returned with metadataOutput created.'); console.log('Promise returned with metadataOutput created.');
}) })
``` ```
...@@ -664,7 +664,7 @@ createCaptureSession(callback: AsyncCallback<CaptureSession\>): void ...@@ -664,7 +664,7 @@ createCaptureSession(callback: AsyncCallback<CaptureSession\>): void
**示例:** **示例:**
```js ```js
cameraManager.createCaptureSession((err, capturesession) => { cameraManager.createCaptureSession((err, captureSession) => {
if (err) { if (err) {
console.error(`Failed to create captureSession. ${err.message}`); console.error(`Failed to create captureSession. ${err.message}`);
return; return;
...@@ -690,7 +690,7 @@ createCaptureSession(): Promise<CaptureSession\> ...@@ -690,7 +690,7 @@ createCaptureSession(): Promise<CaptureSession\>
**示例:** **示例:**
```js ```js
cameraManager.createCaptureSession().then((capturesession) => { cameraManager.createCaptureSession().then((captureSession) => {
console.log('Promise returned with captureSession created.'); console.log('Promise returned with captureSession created.');
}) })
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册