From b975f52345afe68c35922ec0e04c3a053a845612 Mon Sep 17 00:00:00 2001 From: Gloria Date: Thu, 6 Apr 2023 17:54:35 +0800 Subject: [PATCH] Update docs against 16434 Signed-off-by: wusongqing --- en/application-dev/media/avrecorder.md | 6 +++--- en/application-dev/reference/apis/js-apis-media.md | 10 ++++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/en/application-dev/media/avrecorder.md b/en/application-dev/media/avrecorder.md index d97ed9fb27..6485cc6748 100644 --- a/en/application-dev/media/avrecorder.md +++ b/en/application-dev/media/avrecorder.md @@ -20,7 +20,9 @@ The following figures show the AVRecorder state transition and the interaction w ## Constraints -Before developing the recording feature, configure the permissions **ohos.permission.MICROPHONE** and **ohos.permission.CAMERA** for your application. For details, see [Permission Application Guide](../security/accesstoken-guidelines.md). +Before developing audio recording, configure the permission **ohos.permission.MICROPHONE** for your application. For details about the configuration, see [Permission Application Guide](../security/accesstoken-guidelines.md). + +To use the camera to record videos, the camera module is required. For details about how to use the camera APIs, see [Camera Management](js-apis-camera.md). ## How to Develop @@ -28,8 +30,6 @@ For details about the AVRecorder APIs, see the [AVRecorder APIs in the Media Cla For details about the processes related to the media library, see [Media Library Management](../reference/apis/js-apis-medialibrary.md). -For details about the camera-related process, see [Camera Management](../reference/apis/js-apis-camera.md). - ### Full-Process Scenario of Audio and Video Recording The full audio and video recording process includes creating an instance, setting recording parameters, obtaining the input surface, starting, pausing, resuming, and stopping recording, and releasing resources. diff --git a/en/application-dev/reference/apis/js-apis-media.md b/en/application-dev/reference/apis/js-apis-media.md index 1b7c341a60..380849106e 100644 --- a/en/application-dev/reference/apis/js-apis-media.md +++ b/en/application-dev/reference/apis/js-apis-media.md @@ -104,6 +104,8 @@ createAVRecorder(callback: AsyncCallback\): void Creates an **AVRecorder** instance. This API uses an asynchronous callback to return the result. Only one **AVRecorder** instance can be created per device. +To use the camera to record videos, the camera module is required. For details about how to use the camera APIs, see [Camera Management](js-apis-camera.md). + **System capability**: SystemCapability.Multimedia.Media.AVRecorder **Parameters** @@ -142,6 +144,8 @@ createAVRecorder(): Promise\ Creates an **AVRecorder** instance. This API uses a promise to return the result. Only one **AVRecorder** instance can be created per device. +To use the camera to record videos, the camera module is required. For details about how to use the camera APIs, see [Camera Management](js-apis-camera.md). + **System capability**: SystemCapability.Multimedia.Media.AVRecorder **Return value** @@ -1698,6 +1702,8 @@ A recording management class that provides APIs to record media assets. Before c For details about the AVRecorder demo, see [AVRecorder Development](../../media/avrecorder.md). +To use the camera to record videos, the camera module is required. For details about how to use the camera APIs, see [Camera Management](js-apis-camera.md). + ### Attributes **System capability**: SystemCapability.Multimedia.Media.AVRecorder @@ -1716,8 +1722,6 @@ Sets audio and video recording parameters. This API uses an asynchronous callbac This permission is required only if audio recording is involved. -To use the camera to record videos, the camera module is required. For details about how to obtain the permissions and use the APIs, see [Camera Management](js-apis-camera.md). - **System capability**: SystemCapability.Multimedia.Media.AVRecorder **Parameters** @@ -1782,8 +1786,6 @@ Sets audio and video recording parameters. This API uses a promise to return the This permission is required only if audio recording is involved. -To use the camera to record videos, the camera module is required. For details about how to obtain the permissions and use the APIs, see [Camera Management](js-apis-camera.md). - **System capability**: SystemCapability.Multimedia.Media.AVRecorder **Parameters** -- GitLab