diff --git a/en-US/dita/RTC-NG/API/api_ibasespatialaudioengine_setmaxaudiorecvcount.dita b/en-US/dita/RTC-NG/API/api_ibasespatialaudioengine_setmaxaudiorecvcount.dita
index 0eb20bb4de4..ae53623fff4 100644
--- a/en-US/dita/RTC-NG/API/api_ibasespatialaudioengine_setmaxaudiorecvcount.dita
+++ b/en-US/dita/RTC-NG/API/api_ibasespatialaudioengine_setmaxaudiorecvcount.dita
@@ -28,7 +28,7 @@
If the number of receivable streams exceeds the set value, the local user receives the
+
After a successful update, the local user can hear the change in the spatial position of the media player.
This method can be called either before or after joining the channel.
+None.
+This method can be called either before or after joining the channel.
+None.
+After connected to the Agora server, you can call this method to adjust the volume of the media file heard by the remote user.
This method can be called either before or after joining the channel.
+None.
+Call this method after calling
None.
+You can call this method either before or after joining a channel.
+None.
+On the Android platform, if you need to open a file in URI format, use
This method supports playing URI files starting with
If you want to choose the CDN route for playing the media resource, you can call the
This method is called asynchronously.
-If you need to play a media file, make sure you receive the
This method can be called either before or after joining the channel.
+None.
+You can call this method either before or after joining a channel.
+None.
+When the method call succeeds, there is no return value; when fails, the
After calling
None.
This method can be called either before or after joining the channel.
+None.
+You can call this method either before or after joining a channel.
+None.
+The media player supports setting options through
The media player supports setting options through
The difference between this method and
Scenarios that require technical previews or special customization features. In general, you do not need to call this method; you can simply use the default options provided by the media player.
+Call this method before the
None.
+The difference between this method and
None.
+When the method call succeeds, there is no return value; when fails, the
You can call this method either before or after joining a channel.
+None.
+After calling this method to stop playback, if you want to play again, you need to call
Call this method after
None.
+When the method call succeeds, there is no return value; when fails, the
You need to call this method after calling
None.
+This method adjusts the volume of audio mixing for publishing (sending to other users).
-Call this method after calling
None.
+This method adjusts the audio mixing volume on both the local client and remote clients.
-Call this method after
None.
+You can call this method to adjust the playback volume of a specified remote user. To adjust the playback volume of different remote users, call the method as many times, once for each remote user.
+You can call this method to adjust the playback volume of a specified remote user. To adjust the playback volume of different remote users, call the method as many times, once for each remote user.
After calling
This method can be called either before or after joining the channel.
+None.
+Call this method after joining a channel.
+You can call this method either before or after joining a channel.
Before calling any APIs in the
Before calling any APIs in the
When publishing video streams, you can call this method to replace the current video feeds with custom images.
Once you enable this function, you can select images to replace the video feeds through the
Call this method after joining a channel.
+None.
+Retrieves the total duration (ms) of the audio.
-You need to call this method after calling
Call this method after
None.
+This method helps troubleshoot audio volume‑related issues.
-You need to call this method after calling
You can call this method to get the local playback volume of the mixed audio file, which helps in troubleshooting volume‑related issues.
+Call this method after
None.
+Monotonic Time refers to a monotonically increasing time series whose value increases over time. The unit is milliseconds.
In custom video capture and custom audio capture scenarios, in order to ensure audio and video synchronization, Agora recommends that you call this method to obtain the current Monotonic Time of the SDK, and then pass this value into the timestamp parameter in the captured video frame (
This method can be called either before or after joining the channel.
+None.
+This method must be called after the SDK triggers the
None.
+You can call this method either before or after joining a channel.
+None.
+By default, the user subscribes to the audio and video streams of all the other users in the channel, giving rise to usage and billings. To stop subscribing to a specified stream or all remote streams, call the corresponding
This method enables users to join a channel. Users in the same channel can talk to each other, and multiple users in the same channel can start a group chat. Users with different App IDs cannot call each other.
-A successful call of this method triggers the following callbacks:
When the connection between the client and Agora's server is interrupted due to poor network conditions, the SDK tries reconnecting to the server. When the local client successfully rejoins the channel, the SDK triggers the
Compared to
Compared to
This method supports setting the media options when joining a channel, such as whether to publish audio and video streams within the channel. or whether to automatically subscribe to the audio and video streams of all remote users when joining a channel. By default, the user subscribes to the audio and video streams of all the other users in the channel, giving rise to usage and billings. To stop subscribing to other streams, set the
Call this method after
This method allows a user to join the channel with the user account and a token. After the user successfully joins the channel, the SDK triggers the following callbacks:
Once a user joins the channel, the user subscribes to the audio and video streams of all the other users in the channel by default, giving rise to usage and billing calculation. To stop subscribing to a specified stream or all remote streams, call the corresponding
Once a user joins the channel, the user subscribes to the audio and video streams of all the other users in the channel by default, giving rise to usage and billings. To stop subscribing to a specified stream or all remote streams, call the corresponding
When the method call succeeds, there is no return value; when fails, the
This method allows a user to join the channel with the user account. After the user successfully joins the channel, the SDK triggers the following callbacks:
Once a user joins the channel, the user subscribes to the audio and video streams of all the other users in the channel by default, giving rise to usage and billing calculation. To stop subscribing to a specified stream or all remote streams, call the corresponding
Compared to
Before calling this method, if you have not called
Once a user joins the channel, the user subscribes to the audio and video streams of all the other users in the channel by default, giving rise to usage and billings. To stop subscribing to a specified stream or all remote streams, call the corresponding
Compared to
This method allows a user to join the channel with the user account. After the user successfully joins the channel, the SDK triggers the following callbacks:
Once a user joins the channel, the user subscribes to the audio and video streams of all the other users in the channel by default, giving rise to usage and billing calculation. To stop subscribing to a specified stream or all remote streams, call the corresponding
Before calling this method, if you have not called
Once a user joins the channel, the user subscribes to the audio and video streams of all the other users in the channel by default, giving rise to usage and billings. If you want to stop subscribing to the media stream of other users, you can set the
When the method call succeeds, there is no return value; when fails, the
A successful method call triggers the
Call this method to set an SDK preset audio effect for the local user who sends an audio stream. This audio effect does not change the gender characteristics of the original voice. After setting an audio effect, all users in the channel can hear the effect.
This method can be called either before or after joining the channel.
-In a stereo music file, the left and right channels can store different audio data. According to your needs, you can set the channel mode to original mode, left channel mode, right channel mode, or mixed channel mode. For example, in the KTV scenario, the left channel of the music file stores the musical accompaniment, and the right channel stores the singing voice. If you only need to listen to the accompaniment, call this method to set the channel mode of the music file to left channel mode; if you need to listen to the accompaniment and the singing voice at the same time, call this method to set the channel mode to mixed channel mode.
-In a stereo music file, the left and right channels can store different audio data. According to your needs, you can set the channel mode to original mode, left channel mode, right channel mode, or mixed channel mode.
+For example, in the KTV scenario, the left channel of the music file stores the musical accompaniment, and the right channel stores the original singer's vocals. You can set according to actual needs:
Call this method after
This method only applies to stereo audio files.
+Call this method to set the playback position of the music file to a different starting position (the default plays from the beginning).
-Call this method after
None.
+The SDK disables face autofocus by default. To set face autofocus, call this method.
-The SDK enables face autofocus by default. To set face autofocus, call this method.
-By default, the SDK disables face autofocus on Android and enables face autofocus on iOS. To set face autofocus, call this method.
-The SDK disables face autofocus by default. To enable face autofocus, call this method.
+The SDK enables face autofocus by default. To disable face autofocus, call this method.
+By default, the SDK disables face autofocus on Android and enables face autofocus on iOS. To set face autofocus, call this method.
+None.
+Whether to enable face autofocus:
Call this method before enabling local camera capture, such as before calling
To adjust the camera focal length configuration, It is recommended to call
Due to limitations on some Android devices, even if you set the focal length type according to the results returned in
None.
+Most mobile phones have two audio routes: an earpiece at the top, and a speakerphone at the bottom. The earpiece plays at a lower volume, and the speakerphone at a higher volume. When setting the default audio route, you determine whether audio playback comes through the earpiece or speakerphone when no external audio device is connected.
In different scenarios, the default audio routing of the system is also different. See the following:
You can call this method to change the default audio route. After a successful method call, the SDK triggers the
You can call this method to change the default audio route.
The system audio route changes when an external audio device, such as a headphone or a Bluetooth audio device, is connected. See
After calling this method to set the default audio route, the actual audio route of the system will change with the connection of external audio devices (wired headphones or Bluetooth headphones). See
Call this method before joining a channel. If you need to change the audio route after joining a channel, call
None.
+Call this method after
None.
+If the default audio route of the SDK or the setting in
For the default audio route in different scenarios, see
This method only sets the audio route in the current channel and does not influence the default audio route. If the user leaves the current channel and joins another channel, the default audio route is used.
-For the default audio route in different scenarios, see
If the default audio route of the SDK or the setting in
Call this method after joining a channel.
+After initializing the local video view, you can call this method to update its rendering and mirror modes. It affects only the video view that the local user sees and does not impact the publishing of the local video.
The mirror mode of the local video view. See
The mirror mode of the local video view. See
For the local user:
This method can be called either before or after joining the channel.
+None.
+Formant ratio affects the timbre of voice. The smaller the value, the deeper the sound will be, and the larger, the sharper.
-You can call this method to set the formant ratio of local audio to change the timbre of human voice. After you set the formant ratio, all users in the channel can hear the changed voice. If you want to change the timbre and pitch of voice at the same time, Agora recommends using this method together with
Formant ratio affects the timbre of voice. The smaller the value, the deeper the sound will be, and the larger, the sharper. After you set the formant ratio, all users in the channel can hear the changed voice. If you want to change the timbre and pitch of voice at the same time, Agora recommends using this method together with
You can call this method to set the formant ratio of local audio to change the timbre of human voice.
+This method can be called either before or after joining the channel.
+None.
+This method can be called either before or after joining the channel.
+None.
+Specifies an SDK output log file. The log file records all log data for the SDK’s operation. Ensure that the directory for the log file exists and is writable.
-Ensure that you call
Specifies an SDK output log file. The log file records all log data for the SDK’s operation.
+This method needs to be called immediately after
Ensure that the directory for the log file exists and is writable.
+Choose a level to see the logs preceding that level.
The mirror mode of the remote user view.
The SDK defaults to enabling low-quality video stream adaptive mode (
Depending on the default behavior of the sender and the specific settings when calling
The SDK will dynamically adjust the size of the corresponding video stream based on the size of the video window to save bandwidth and computing resources. The default aspect ratio of the low-quality video stream is the same as that of the high-quality video stream. According to the current aspect ratio of the high-quality video stream, the system will automatically allocate the resolution, frame rate, and bitrate of the low-quality video stream.
This method is used to switch the audio route from Bluetooth headphones to earpiece, wired headphones or speakers in communication audio mode (
This method is used to switch the audio route from Bluetooth headphones to earpiece, wired headphones or speakers in communication audio mode (
This method can be called either before or after joining the channel.
+Using this method and the
This method can be called either before or after joining the channel.
+To achieve better vocal effects, it is recommended that you call the following APIs before calling this method:
To achieve better vocal effects, it is recommended that you call the following APIs before calling this method:
Call this method to set a preset voice changing effect for the local user who publishes an audio stream in a channel. After setting the voice changing effect, all users in the channel can hear the effect. You can set different voice changing effects for the user depending on different scenarios.
This method can be called either before or after joining the channel.
-Call this method after
None.
+In music education, physical education and other scenarios, teachers usually need to use a metronome so that students can practice with the correct beat. The meter is composed of a downbeat and upbeats. The first beat of each measure is called a downbeat, and the rest are called upbeats.
-In this method, you need to set the file path of the upbeat and downbeat, the number of beats per measure, the beat speed, and whether to send the sound of the metronome to remote users.
+This method can be called either before or after joining the channel.
+None.
+You can call this method to dynamically switch cameras based on the actual camera availability during the app's runtime, without having to restart the video stream or reconfigure the video source.
-You can call this method to dynamically switch cameras based on the actual camera availability during the app's runtime, without having to restart the video stream or reconfigure the video source.
+This method and
This method must be called after the camera is successfully enabled, that is, after the SDK triggers the
This method only switches the camera for the video stream captured by the first camera, that is, the video source set to
This method and
This method takes a snapshot of a video stream from the specified user, generates a JPG image, and saves it to the specified path.
-The method is asynchronous, and the SDK has not taken the snapshot when the method call returns. After a successful method call, the SDK triggers the
The SDK has not taken the snapshot when the method call returns. After a successful method call, the SDK triggers the
This method takes a snapshot of a video stream from the specified user, generates a JPG image, and saves it to the specified path.
+Call this method after joining a channel.
+After loading the audio effect file into memory using
You can call this method either before or after joining a channel.
+None.
+You can call this method to adjust the playback volume of a specified remote user. To adjust the playback volume of different remote users, call the method as many times, once for each remote user.
-Call this method after
None.
+Call this method after
This method enables the SDK to regularly report the volume information to the app of the local user who sends a stream and remote users (three users at most) whose instantaneous volumes are the highest. Once you call this method and users send streams in the channel, the SDK triggers the
Call this method after
None.
You can call this method multiple times to join more than one channel.
-You can call this method multiple times to join more than one channel. If you want to join the same channel from different devices, ensure that the user IDs are different for all devices.
+This method can be called in scenarios involving multiple channels.
+Call this method after
In a multi-camera capture scenario, you need to call the
If you are already in a channel, you cannot rejoin the channel with the same user ID.
+Before joining a channel, ensure that the App ID you use to generate a token is the same as that you pass in the
The mirror mode of the remote user view. See
The mirror mode of the remote user view:
The SDK has not taken the snapshot when the method call returns. After a successful method call, the SDK triggers the
Call this method after
This callback notifies the application that a user joins a specified channel.
The SDK triggers this callback when you call
The SDK triggers this callback when you call
The SDK triggers this callback when you call
The SDK triggers this callback when you call
None.
+When a user loses connection with the server because of network problems, the SDK automatically tries to reconnect and triggers this callback upon reconnection.
None.
+The SDK triggers this callback under one of the following circumstances:
None.
The alpha channel data output by using portrait segmentation algorithm. This data matches the size of the video frame, with each pixel value ranging from [0,255], where 0 represents the background and 255 represents the foreground (portrait).
By setting this parameter, you can render the video background into various effects, such as transparent, solid color, image, video, etc.
-The mirror mode of the view. See
Sets the mirror mode of the published local video stream. It only affects the video that the remote user sees. See
Sets the mirror mode of the published local video stream. It only affects the video that the remote user sees.
The alpha channel data output by using portrait segmentation algorithm. This data matches the size of the video frame, with each pixel value ranging from [0,255], where 0 represents the background and 255 represents the foreground (portrait).
By setting this parameter, you can render the video background into various effects, such as transparent, solid color, image, video, etc.
-The stereo setting only takes effect when the SDK uses the media volume.
To learn more about the difference between media volume and call volume,
This group of methods is for Android and iOS only.
-The deprecated APIs are expected to be officially deleted in approximately one year. Agora recommends that you promptly replace them with the recommended APIs to avoid any impact on your online services.
-The APIs have been deleted from the SDK. Use the recommended alternative APIs to implement the related functionality.
+