From cd489024c91473e109df884d94983066c15b8cf3 Mon Sep 17 00:00:00 2001 From: wusongqing Date: Thu, 31 Mar 2022 20:40:09 +0800 Subject: [PATCH] updated docs Signed-off-by: wusongqing --- en/application-dev/media/Readme-EN.md | 4 ++-- en/application-dev/media/audio-capturer.md | 6 +++--- en/application-dev/media/audio-playback.md | 2 +- en/application-dev/media/audio-renderer.md | 8 ++++---- en/application-dev/media/video-recorder.md | 2 +- en/application-dev/website.md | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/en/application-dev/media/Readme-EN.md b/en/application-dev/media/Readme-EN.md index 3d5ad83f41..b5012b28ac 100755 --- a/en/application-dev/media/Readme-EN.md +++ b/en/application-dev/media/Readme-EN.md @@ -6,11 +6,11 @@ - [Audio Playback Development](audio-playback.md) - - [Audio Playback Development Using AudioRenderer](audio-renderer.md) + - [Audio Rendering Development](audio-renderer.md) - [Audio Recording Development](audio-recorder.md) - - [Audio Recorder Development Using AudioCapturer](audio-capturer) + - [Audio Capture Development](audio-capturer) - Video diff --git a/en/application-dev/media/audio-capturer.md b/en/application-dev/media/audio-capturer.md index a5762b949e..00ff76707d 100644 --- a/en/application-dev/media/audio-capturer.md +++ b/en/application-dev/media/audio-capturer.md @@ -1,4 +1,4 @@ -# Audio Recorder Development Using AudioCapturer +# Audio Capture Development --- ## ***Note***: @@ -41,7 +41,7 @@ Here's an example of how to use AudioCapturer to capture a raw audio file. 2. (Optional) Subscribe to audio capturer state change events using the **on('stateChange')** API. If an application wants to take some action based on the state updates in capturer, the application can subscribe to the state change event. - There are more events that applications can subscribe to, such as 'markReach' and 'periodReach'. Refer to [**js-apis-audio.md**](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-audio.md) for more details. + There are more events that applications can subscribe to, such as 'markReach' and 'periodReach'. Refer to [Audio](../reference/apis/js-apis-audio.md) for more details. ``` audioCapturer.on('stateChange',(state) => { console.info('AudioCapturerLog: Changed State to : ' + state) @@ -149,4 +149,4 @@ That is, the AudioCapturer has an internal state that the application must alway The system may throw an error/exception or generate other undefined behaviour if the application performs an operation while capturer is in an improper state. ## **Other APIs** -See [**js-apis-audio.md**](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-audio.md) for more useful APIs like **getAudioTime**, **getCapturerInfo** and **getStreamInfo**. +See [AudioCapturer in the Audio API](../reference/apis/js-apis-audio.md) for more useful APIs like **getAudioTime**, **getCapturerInfo** and **getStreamInfo**. diff --git a/en/application-dev/media/audio-playback.md b/en/application-dev/media/audio-playback.md index a8ea5a537f..2124319f5e 100644 --- a/en/application-dev/media/audio-playback.md +++ b/en/application-dev/media/audio-playback.md @@ -16,7 +16,7 @@ You can use audio playback APIs to convert audio data into audible analog signal ## How to Develop -For details about the APIs used for audio playback, see [js-apis-media.md](../reference/apis/js-apis-media.md). +For details about the APIs used for audio playback, see [AudioPlayer in the Media API](../reference/apis/js-apis-media.md). ### Full-Process Scenario diff --git a/en/application-dev/media/audio-renderer.md b/en/application-dev/media/audio-renderer.md index 251b6bf822..f9dfb75c2a 100644 --- a/en/application-dev/media/audio-renderer.md +++ b/en/application-dev/media/audio-renderer.md @@ -1,4 +1,4 @@ -# Audio Playback Development Using AudioRenderer +# Audio Rendering Development --- ## ***Note***: @@ -17,7 +17,7 @@ When a higher priority stream wants to play, the AudioRenderer framework interru For example, if a call is arrived when you listen to music, the music playback, which is the lower priority stream, is paused.\ With the sample code below, we'll look at how AudioInterrupt works in detail.\
-Please see [**js-apis-audio.md**](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-audio.md) for a list of supported audio stream types and formats, such as AudioSampleFormat, AudioChannel, AudioSampleFormat, and AudioEncodingType. +Please see [AudioRenderer in the Audio API](../reference/apis/js-apis-audio.md#audiorenderer8) for a list of supported audio stream types and formats, such as AudioSampleFormat, AudioChannel, AudioSampleFormat, and AudioEncodingType. ## **Usage** @@ -267,8 +267,8 @@ The system may throw an error/exception or generate other undefined behaviour if ## **Asynchronous Operations:** Most of the AudioRenderer calls are asynchronous. As a result, the UI thread will not be blocked.\ For each API, the framework provides both callback and promises functions.\ -In the example, promise functions are used for simplicity. [**js-apis-audio.md**](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-audio.md) +In the example, promise functions are used for simplicity. [AudioRender in the Audio API](../reference/apis/js-apis-audio.md#audiorenderer8) provides reference for both callback and promise. ## **Other APIs:** -See [**js-apis-audio.md**](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-audio.md) for more useful APIs like getAudioTime, drain, and getBufferSize. +See [Audio](../reference/apis/js-apis-audio.md) for more useful APIs like getAudioTime, drain, and getBufferSize. diff --git a/en/application-dev/media/video-recorder.md b/en/application-dev/media/video-recorder.md index 11af1d3984..dc036c1240 100644 --- a/en/application-dev/media/video-recorder.md +++ b/en/application-dev/media/video-recorder.md @@ -16,7 +16,7 @@ During video recording, audio and video signals are captured, encoded, and saved ## How to Develop -For details about the APIs used for video recording, see [js-apis-media.md](../reference/apis/js-apis-media.md). +For details about the APIs used for video recording, see [VideoRecorder in the Media API](../reference/apis/js-apis-media.md). ### Full-Process Scenario diff --git a/en/application-dev/website.md b/en/application-dev/website.md index f910c4bacd..9d38fc45ce 100644 --- a/en/application-dev/website.md +++ b/en/application-dev/website.md @@ -149,9 +149,9 @@ - Audio - [Audio Overview](media/audio-overview.md) - [Audio Playback Development](media/audio-playback.md) - - [Audio Playback Development Using AudioRenderer](media/audio-renderer.md) + - [Audio Rendering Development](media/audio-renderer.md) - [Audio Recording Development](media/audio-recorder.md) - - [Audio Recorder Development Using AudioCapturer](media/audio-capturer) + - [Audio Capture Development](media/audio-capturer) - Video - [Video Playback Development](media/video-playback.md) - [Video Recording Development](media/video-recorder.md) -- GitLab