diff --git a/en-US/dita/RTC-NG/API/api_channelmediarelayconfiguration_setdestchannelinfo.dita b/en-US/dita/RTC-NG/API/api_channelmediarelayconfiguration_setdestchannelinfo.dita index 4f1d8261d9e..999c77b61fc 100644 --- a/en-US/dita/RTC-NG/API/api_channelmediarelayconfiguration_setdestchannelinfo.dita +++ b/en-US/dita/RTC-NG/API/api_channelmediarelayconfiguration_setdestchannelinfo.dita @@ -36,7 +36,7 @@ The channel name of the target channel. - destInfo + destInfo destinationInfo

The information of the target channel. See . It contains the following members:

-
- Parameters - +
  • After registering the callback, the SDK sends the audio data to the app through the callback. Any delay in processing the audio frames may result in audio jitter.
  • +

    +

    This method is only used for retrieving audio data after remote mixing. If you need to get audio data from different audio processing stages such as capture and playback, you can register the corresponding callbacks by calling .

    +
    +
    + <ph props="android apple cpp unreal bp flutter unity cs">Parameters</ph> + frame Pointers to . @@ -68,5 +71,5 @@
  • The instance, if the method call succeeds.
  • An error code, if the call fails,.
  • - + diff --git a/en-US/dita/RTC-NG/API/api_imediaengine_pushaudioframe0.dita b/en-US/dita/RTC-NG/API/api_imediaengine_pushaudioframe0.dita index fb38fbd5793..31d77462a01 100644 --- a/en-US/dita/RTC-NG/API/api_imediaengine_pushaudioframe0.dita +++ b/en-US/dita/RTC-NG/API/api_imediaengine_pushaudioframe0.dita @@ -23,15 +23,21 @@ Future<void> pushAudioFrame({required AudioFrame frame, int trackId = 0});

    -
    - Details - +
    +

    Call this method to push external audio frames through the audio track.

    +
    +
    + Call timing

    Before calling this method to push external audio data, perform the following steps:

    1. Call to create a custom audio track and get the audio track ID.
    2. Call to join the channel. In , set publishCustomAudioTrackId to the audio track ID that you want to publish, and set publishCustomAudioTrack to .

    -
    -
    +
    +
    + Restrictions +

    None.

    +
    +
    Parameters @@ -46,8 +52,8 @@
    <ph keyref="return-section-title"/>

    When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

    -
      -
    • 0: Success.
    • +
        +
      • 0: Success.
      • < 0: Failure. See for details and resolution suggestions.
    diff --git a/en-US/dita/RTC-NG/API/api_imediaengine_pushencodedvideoimage.dita b/en-US/dita/RTC-NG/API/api_imediaengine_pushencodedvideoimage.dita index 7d13cd6e665..d6bbe7f9bcc 100644 --- a/en-US/dita/RTC-NG/API/api_imediaengine_pushencodedvideoimage.dita +++ b/en-US/dita/RTC-NG/API/api_imediaengine_pushencodedvideoimage.dita @@ -48,7 +48,7 @@ Parameters - data + data imageBuffer The buffer of the external encoded video frame. @@ -57,7 +57,7 @@ Length of the externally encoded video frames.
    - frameInfo + frameInfo videoEncodedFrameInfo Information about externally encoded video frames. See . diff --git a/en-US/dita/RTC-NG/API/api_imediaengine_pushvideoframe.dita b/en-US/dita/RTC-NG/API/api_imediaengine_pushvideoframe.dita index 7af486c9e65..6c307b430ff 100644 --- a/en-US/dita/RTC-NG/API/api_imediaengine_pushvideoframe.dita +++ b/en-US/dita/RTC-NG/API/api_imediaengine_pushvideoframe.dita @@ -32,7 +32,7 @@
    Details -
    +
    Deprecated:
    If you need to push video frames in I422 format, you need to use this method; otherwise, use .
    @@ -46,7 +46,7 @@
  • If you no longer need to capture external video data, you can call to destroy the custom video track.
  • If you only want to use the external video data for local preview and not publish it in the channel, you can call to cancel sending video stream or call to set publishCustomVideoTrack to .
  • -

    You can push the video frame either by calling this method or by calling . The difference is that this method does not support video data in Texture format.

    +

    You can push the video frame either by calling this method or by calling . The difference is that this method does not support video data in Texture format.

    Applicable scenarios diff --git a/en-US/dita/RTC-NG/API/api_imediaengine_registeraudioframeobserver.dita b/en-US/dita/RTC-NG/API/api_imediaengine_registeraudioframeobserver.dita index e0854dc3793..50ba2659373 100644 --- a/en-US/dita/RTC-NG/API/api_imediaengine_registeraudioframeobserver.dita +++ b/en-US/dita/RTC-NG/API/api_imediaengine_registeraudioframeobserver.dita @@ -23,11 +23,18 @@ void registerAudioFrameObserver(AudioFrameObserver observer);

    -
    - Details -

    Call this method to register an audio frame observer object (register a callback). When you need the SDK to trigger , , or callback, you need to use this method to register the callbacks.

    - Ensure that you call this method before joining a channel.
    -
    +
    +

    Call this method to register an audio frame observer object (register a callback). When you need the SDK to trigger the , , , or callback, you need to use this method to register the callbacks.

    +
    +
    + Call timing +

    Call this method before joining a channel.

    +
    +
    + Restrictions +

    None.

    +
    +
    Parameters @@ -35,7 +42,7 @@ delegate audioFrameObserver -

    The observer instance. See . Set the value as to release the instance. Agora recommends calling this method after receiving to release the audio observer object.

    +

    The observer instance. See . Set the value as to release the instance. Agora recommends calling this method after receiving to release the audio observer object.

    @@ -65,5 +72,5 @@
  • : Success.
  • : Failure. See for details and resolution suggestions.
  • - - + + \ No newline at end of file diff --git a/en-US/dita/RTC-NG/API/api_imediaengine_registerfaceinfoobserver.dita b/en-US/dita/RTC-NG/API/api_imediaengine_registerfaceinfoobserver.dita index df29757469b..c716c1f164b 100644 --- a/en-US/dita/RTC-NG/API/api_imediaengine_registerfaceinfoobserver.dita +++ b/en-US/dita/RTC-NG/API/api_imediaengine_registerfaceinfoobserver.dita @@ -34,7 +34,7 @@

    You can call this method to register the callback to receive the facial information processed by Agora speech driven extension. When calling this method to register a facial information observer, you can register callbacks in the class as needed. After successfully registering the facial information observer, the SDK triggers the callback you have registered when it captures the facial information converted by the speech driven extension.

      -
    • Ensure that you call this method before joining a channel.
    • +
    • Call this method before joining a channel.
    • Before calling this method, you need to make sure that the speech driven extension has been enabled by calling .
    diff --git a/en-US/dita/RTC-NG/API/api_imediaengine_registervideoencodedframeobserver.dita b/en-US/dita/RTC-NG/API/api_imediaengine_registervideoencodedframeobserver.dita index 7ab17425210..d173c514261 100644 --- a/en-US/dita/RTC-NG/API/api_imediaengine_registervideoencodedframeobserver.dita +++ b/en-US/dita/RTC-NG/API/api_imediaengine_registervideoencodedframeobserver.dita @@ -49,11 +49,11 @@ delegate - receiver + receiver observer videoEncodedImageReceiver The video frame observer object. See . - The observer instance. See . Set the value as to release the instance. + The observer instance. See . Set the value as to release the instance. mode diff --git a/en-US/dita/RTC-NG/API/api_imediaengine_registervideoframeobserver.dita b/en-US/dita/RTC-NG/API/api_imediaengine_registervideoframeobserver.dita index e36b3f7e5e5..b1d8860bbcb 100644 --- a/en-US/dita/RTC-NG/API/api_imediaengine_registervideoframeobserver.dita +++ b/en-US/dita/RTC-NG/API/api_imediaengine_registervideoframeobserver.dita @@ -23,28 +23,35 @@ void registerVideoFrameObserver(VideoFrameObserver observer);

    -
    - Details +

    If you want to observe raw video frames (such as YUV or RGBA format), Agora recommends that you implement one class with this method.

    When calling this method to register a video observer, you can register callbacks in the class as needed. After you successfully register the video frame observer, the SDK triggers the registered callbacks each time a video frame is received.

    - -

      -
    • Ensure that you call this method before joining a channel.
    • -
    • When handling the video data returned in the callbacks, pay attention to the changes in the width and height parameters, which may be adapted under the following circumstances:
        +
    +
    + Applicable scenarios +

    After registering the raw video observer, you can use the obtained raw video data in various video pre-processing scenarios, such as virtual backgrounds and image enhacement by yourself.

    +

    Agora provides an open source sample project on GitHub for your reference.

    +
    +
    + Call timing +

    Call this method before joining a channel.

    +
    +
    + Restrictions +

    When handling the video data returned in the callbacks, pay attention to the changes in the width and height parameters, which may be adapted under the following circumstances:

    • When network conditions deteriorate, the video resolution decreases incrementally.
    • If the user adjusts the video profile, the resolution of the video returned in the callbacks also changes.
    • -
    - - After registering the raw video observer, you can use the obtained raw video data in various video pre-processing scenarios, such as implementing virtual backgrounds and image enhacement scenarios by yourself, Agora provides an open source sample project on GitHub for your reference.
    -
    +

    +
    +
    Parameters observer delegate videoFrameObserver - The observer instance. See . To release the instance, set the value as . + The observer instance. See . To release the instance, set the value as . mode diff --git a/en-US/dita/RTC-NG/API/api_imediaengine_setexternalaudiosink.dita b/en-US/dita/RTC-NG/API/api_imediaengine_setexternalaudiosink.dita index 673511d33f1..c4f5aa2914f 100644 --- a/en-US/dita/RTC-NG/API/api_imediaengine_setexternalaudiosink.dita +++ b/en-US/dita/RTC-NG/API/api_imediaengine_setexternalaudiosink.dita @@ -34,32 +34,35 @@ {required bool enabled, required int sampleRate, required int channels});

    -
    - Details -

    This method applies to scenarios where you want to use external audio data for playback. After you set the external audio sink, you can call to pull remote audio frames. The app can process the remote audio and play it with the audio effects that you want.

    - -
      -
    • Before using this method, you need to set enableAudioDevice to in .
    • -
    • Ensure that you call this method before joining a channel.
    • -
    • Once you enable the external audio sink, the app will not retrieve any audio data from the callback.
    • -
    -
    +
    +

    After enabling the external audio sink, you can call to pull remote audio frames. The app can process the remote audio and play it with the audio effects that you want.

    +
    +
    + Applicable scenarios +

    This method applies to scenarios where you want to use external audio data for playback.

    +
    +
    + Call timing +

    Call this method before joining a channel.

    +
    +
    + Restrictions +

    Once you enable the external audio sink, the app will not retrieve any audio data from the callback.

    +
    +
    Parameters enabled - -

    Whether to enable or disable the external audio sink:

      + Whether to enable or disable the external audio sink:
      • : Enables the external audio sink.
      • : (Default) Disables the external audio sink.
      • -

      +
    sampleRate - -

    The sample rate (Hz) of the external audio sink, which can be set as 16000, 32000, 44100, or 48000.

    -
    + The sample rate (Hz) of the external audio sink, which can be set as 16000, 32000, 44100, or 48000.
    channels @@ -69,12 +72,12 @@
    -
    +
    <ph keyref="return-section-title"/>

    When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

    • 0: Success.
    • < 0: Failure. See for details and resolution suggestions.
    - + \ No newline at end of file diff --git a/en-US/dita/RTC-NG/API/api_imediaengine_setexternalaudiosource2.dita b/en-US/dita/RTC-NG/API/api_imediaengine_setexternalaudiosource2.dita index 6d57a5ab827..8e3ad4efc56 100644 --- a/en-US/dita/RTC-NG/API/api_imediaengine_setexternalaudiosource2.dita +++ b/en-US/dita/RTC-NG/API/api_imediaengine_setexternalaudiosource2.dita @@ -48,51 +48,55 @@ bool publish = true});

    -
    - Details +
    Deprecated:
    This method is deprecated, use instead.
    - Call this method before joining a channel.
    -
    +
    +
    + Call timing +

    Call this method before joining a channel.

    +
    +
    + Restrictions +

    None.

    +
    +
    Parameters - + enabled - -

    Whether to enable the external audio source:

      + Whether to enable the external audio source:
      • : Enable the external audio source.
      • : (Default) Disable the external audio source.
      • -

      +
    - + sampleRate The sample rate (Hz) of the external audio source which can be set as 8000, 16000, 32000, 44100, or 48000. - + channels The number of channels of the external audio source, which can be set as 1 (Mono) or 2 (Stereo). localPlayback - -

    Whether to play the external audio source:

      + Whether to play the external audio source:
      • : Play the external audio source.
      • : (Default) Do not play the external source.
      • -

      +
    publish - -

    Whether to publish audio to the remote users:

      + Whether to publish audio to the remote users:
      • : (Default) Publish audio to the remote users.
      • : Do not publish audio to the remote users.
      • -

      +
    diff --git a/en-US/dita/RTC-NG/API/api_imediaengine_setexternalvideosource.dita b/en-US/dita/RTC-NG/API/api_imediaengine_setexternalvideosource.dita index b13d2fefe0c..7d1367767d7 100644 --- a/en-US/dita/RTC-NG/API/api_imediaengine_setexternalvideosource.dita +++ b/en-US/dita/RTC-NG/API/api_imediaengine_setexternalvideosource.dita @@ -40,15 +40,23 @@ SenderOptions encodedVideoOption = const SenderOptions()});

    -
    - Details - Call this method before joining a channel.
    -
    +
    +

    After calling this method to enable an external video source, you can call to push external video data to the SDK.

    +
    +
    + Call timing +

    Call this method before joining a channel.

    +
    +
    + Restrictions +

    Dynamic switching of video sources is not supported within the channel. To switch from an external video source to an internal video source, you must first leave the channel, call this method to disable the external video source, and then rejoin the channel.

    +
    +
    Parameters - enable - enabled + enable + enabled Whether to use the external video source:
    • : Use the external video source. The SDK prepares to accept the external video frame.
    • : (Default) Do not use the external video source.
    • @@ -65,18 +73,18 @@ sourceType Whether the external video frame is encoded. See . - + encodedVideoOption Video encoding options. This parameter needs to be set if sourceType is . To set this parameter, contact .
    -
    +
    <ph keyref="return-section-title"/>

    When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

    -
      -
    • 0: Success.
    • +
        +
      • 0: Success.
      • < 0: Failure. See for details and resolution suggestions.
    - + \ No newline at end of file diff --git a/en-US/dita/RTC-NG/API/api_imediaplayer_open.dita b/en-US/dita/RTC-NG/API/api_imediaplayer_open.dita index f58ea95afc4..d9e88ce38a3 100644 --- a/en-US/dita/RTC-NG/API/api_imediaplayer_open.dita +++ b/en-US/dita/RTC-NG/API/api_imediaplayer_open.dita @@ -30,7 +30,7 @@
    Details

    On the Android platform, if you need to open a file in URI format, use .

    -

    This method supports playing URI files starting with content://.

    +

    This method supports playing URI files starting with content://.

    For supported formats of Agora media player, see .

    If you want to choose the CDN route for playing the media resource, you can call the method. Agora changes the CDN route through the self-developed scheduling center to improve the viewing user experience. If you do not need to choose the CDN route for playing the media resource, you can call the method.

    diff --git a/en-US/dita/RTC-NG/API/api_imediaplayer_openwithmediasource.dita b/en-US/dita/RTC-NG/API/api_imediaplayer_openwithmediasource.dita index 9027c7d4d2c..5afe98595db 100644 --- a/en-US/dita/RTC-NG/API/api_imediaplayer_openwithmediasource.dita +++ b/en-US/dita/RTC-NG/API/api_imediaplayer_openwithmediasource.dita @@ -24,13 +24,21 @@ abstract openWithMediaSource(source: MediaSource): number; Future<void> openWithMediaSource(MediaSource source);

    -
    - Details -

    This method supports opening media files of different sources, including a custom media source, and allows you to configure the playback scenarios.

    -

    +

    +

    This method supports opening media files of different sources, including a custom media source, and allows you to configure the playback scenarios.

    +

    This method supports opening different types of media files, including URI files starting with content://, media files in the assets folder, and setting the playback options.

    +

    This method supports opening different types of media files, including files starting with ipod-library://, and setting the playback options.

    For supported formats of Agora media player, see .

    -
    +
    + Call timing +

    You can call this method either before or after joining a channel.

    +
    +
    + Restrictions +

    This method is called asynchronously. If you need to play a media file, make sure you receive the callback reporting before calling the method to play the file.

    +
    +
    Parameters diff --git a/en-US/dita/RTC-NG/API/api_imediaplayer_registeraudioframeobserver2.dita b/en-US/dita/RTC-NG/API/api_imediaplayer_registeraudioframeobserver2.dita index 283947d3eed..2c62fbcddd3 100644 --- a/en-US/dita/RTC-NG/API/api_imediaplayer_registeraudioframeobserver2.dita +++ b/en-US/dita/RTC-NG/API/api_imediaplayer_registeraudioframeobserver2.dita @@ -40,10 +40,10 @@ Parameters - audioFrameObserver + audioFrameObserver observer -

    The audio frame observer, reporting the reception of each audio frame. See .

    +

    The audio frame observer, reporting the reception of each audio frame. See .

    The audio frame observer, reporting the reception of each audio frame. See .

    @@ -51,7 +51,7 @@ mode

    The use mode of the audio frame. See .

    -

    The use mode of the audio frame:

      +

      The use mode of the audio frame:

      • (0): (Default) Read only mode. For example, when users acquire the data with the Agora SDK, then push the RTMP or RTMPS streams.
      • (2): Read and write mode: Users read the data from AudioFrame, modify it, and then play it. For example, when users have their own audio-effect processing module and perform some voice pre-processing, such as a voice change.

      diff --git a/en-US/dita/RTC-NG/API/api_imediaplayer_registerplayersourceobserver.dita b/en-US/dita/RTC-NG/API/api_imediaplayer_registerplayersourceobserver.dita index 6b03cd91190..26e2443c36f 100644 --- a/en-US/dita/RTC-NG/API/api_imediaplayer_registerplayersourceobserver.dita +++ b/en-US/dita/RTC-NG/API/api_imediaplayer_registerplayersourceobserver.dita @@ -34,7 +34,7 @@ Parameters - playerObserver + playerObserver observer The player observer, listening for events during the playback. See . diff --git a/en-US/dita/RTC-NG/API/api_imediaplayer_registervideoframeobserver.dita b/en-US/dita/RTC-NG/API/api_imediaplayer_registervideoframeobserver.dita index 2d58e034850..3995bba98d9 100644 --- a/en-US/dita/RTC-NG/API/api_imediaplayer_registervideoframeobserver.dita +++ b/en-US/dita/RTC-NG/API/api_imediaplayer_registervideoframeobserver.dita @@ -37,7 +37,7 @@ Parameters - videoFrameObserver + videoFrameObserver observer The video observer, reporting the reception of each video frame. See . The video observer, reporting the reception of each video frame. See . diff --git a/en-US/dita/RTC-NG/API/api_imediaplayer_setaudiodualmonomode.dita b/en-US/dita/RTC-NG/API/api_imediaplayer_setaudiodualmonomode.dita index 2129cd2b527..cafb4c78afd 100644 --- a/en-US/dita/RTC-NG/API/api_imediaplayer_setaudiodualmonomode.dita +++ b/en-US/dita/RTC-NG/API/api_imediaplayer_setaudiodualmonomode.dita @@ -38,7 +38,7 @@ mode - The channel mode. See .
        + The channel mode. See .
        • (0): Original mode.
        • (1): Left channel mode. This mode replaces the audio of the right channel with the audio of the left channel, which means the user can only hear the audio of the left channel.
        • (2): Right channel mode. This mode replaces the audio of the left channel with the audio of the right channel, which means the user can only hear the audio of the right channel.
        • diff --git a/en-US/dita/RTC-NG/API/api_imediaplayer_setrendermode.dita b/en-US/dita/RTC-NG/API/api_imediaplayer_setrendermode.dita index bd0cd66ff1b..54477fa0c1e 100644 --- a/en-US/dita/RTC-NG/API/api_imediaplayer_setrendermode.dita +++ b/en-US/dita/RTC-NG/API/api_imediaplayer_setrendermode.dita @@ -35,7 +35,7 @@ mode

          Sets the render mode of the view. See .

          -

          Sets the render mode of the view:

            +

            Sets the render mode of the view:

            diff --git a/en-US/dita/RTC-NG/API/api_imediaplayer_setview.dita b/en-US/dita/RTC-NG/API/api_imediaplayer_setview.dita index 2a4cfcab036..45f7b8bd28e 100644 --- a/en-US/dita/RTC-NG/API/api_imediaplayer_setview.dita +++ b/en-US/dita/RTC-NG/API/api_imediaplayer_setview.dita @@ -27,11 +27,14 @@ Future<void> setView(int view);

    -
    +
    + In Flutter, you don't need to call this method. Use instead to render local and remote views. +
    +
    Parameters - videoView + videoView view The render view. On Windows, this parameter sets the window handle (HWND). diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_addhandler.dita b/en-US/dita/RTC-NG/API/api_irtcengine_addhandler.dita index 1291adecc41..1a2c4ec5871 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_addhandler.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_addhandler.dita @@ -33,7 +33,7 @@ Parameters - handler + handler engineEventHandler eventHandler Callback events to be added. See . diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_create.dita b/en-US/dita/RTC-NG/API/api_irtcengine_create.dita index 9934b9d2059..ebaaf168e32 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_create.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_create.dita @@ -38,13 +38,13 @@
    • Before calling other APIs, you must call this method to create the object.
    • -
    • You can create the instance either by calling this method or by calling . The difference between and this method is that supports more configurations when creating the instance, for example, specifying the region for connection and setting the log files.
    • +
    • You can create the instance either by calling this method or by calling . The difference between and this method is that supports more configurations when creating the instance, for example, specifying the region for connection and setting the log files.
    • The SDK supports creating only one instance for an app.
    Parameters - + context @@ -52,17 +52,17 @@ appId - - handler + + handler delegate The event handler for . See .
    - <ph props="apple">Returns </ph><ph props="android">Returns/Exceptions</ph> + <ph props="apple">Returns </ph><ph props="android hmos">Returns/Exceptions</ph>
    • The instance, if the method call succeeds.
    • -
    • The method call fails and an exception is thrown, you need to catch the exception and handle it. See for details and resolution suggestions.
    • +
    • The method call fails and an exception is thrown, you need to catch the exception and handle it. See for details and resolution suggestions.
    • An error code, if the method call fails.
      • -1: A general error occurs (no specified reason).
      • -2: The parameter is invalid.
      • diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_createdatastream2.dita b/en-US/dita/RTC-NG/API/api_irtcengine_createdatastream2.dita index 87a5e6cbe8c..c8dbef8a922 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_createdatastream2.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_createdatastream2.dita @@ -53,7 +53,7 @@ <ph keyref="return-section-title"/>
        • 0: The data stream is successfully created.
        • -
        • ID of the created data stream, if the method call succeeds.
        • +
        • ID of the created data stream, if the method call succeeds.
        • < 0: Failure. See for details and resolution suggestions.
    diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_createmediaplayer.dita b/en-US/dita/RTC-NG/API/api_irtcengine_createmediaplayer.dita index ba0e6557d45..5ab86e2cd72 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_createmediaplayer.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_createmediaplayer.dita @@ -2,7 +2,7 @@ <ph keyref="createMediaPlayer" /> - Creates a media player instance. Creates one instance. + Creates a media player object. Creates a media player instance. @@ -26,9 +26,20 @@ Future<MediaPlayer> createMediaPlayer();

    -
    - Parameters - +
    +

    Before calling any APIs in the class, you need to call this method to create an instance of the media player.

    +
    +
    + Call timing +

    You can call this method either before or after joining a channel.

    +
    +
    + Restrictions +

    None.

    +
    +
    + <ph props="apple">Parameters</ph> + delegate @@ -37,7 +48,7 @@
    Returns
      -
    • The instance, if the method call succeeds.
    • +
    • An object, if the method call succeeds.
    • An empty pointer, if the method call fails.

    An instance, if the method call succeeds.

    diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_createmediarecorder.dita b/en-US/dita/RTC-NG/API/api_irtcengine_createmediarecorder.dita index fb7fac8ac98..807ac830709 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_createmediarecorder.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_createmediarecorder.dita @@ -47,7 +47,7 @@ Returns
    • The object, if the method call succeeds.
    • -
    • The instance, if the method call succeeds.
    • +
    • The instance, if the method call succeeds.
    • An empty pointer, if the method call fails.
    diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_disablevideo.dita b/en-US/dita/RTC-NG/API/api_irtcengine_disablevideo.dita index 6d9a85351b5..9757f81924b 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_disablevideo.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_disablevideo.dita @@ -39,7 +39,7 @@ Restrictions
    • This method affects the internal engine and can be called after leaving the channel.
    • -
    • Calling this method will reset the entire engine, resulting in a slow response time. Instead of calling this method, you can independently control a specific video module based on your actual needs using the following methods:
        +
      • Calling this method will reset the entire engine, resulting in a slow response time. You can use the following methods to independently control a specific function of the video module based on your actual needs:
        • : Whether to enable the camera to create the local video stream.
        • : Whether to publish the local video stream.
        • : Whether to subscribe to and play the remote video stream.
        • diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_enableaudio.dita b/en-US/dita/RTC-NG/API/api_irtcengine_enableaudio.dita index 6429e2bdd00..5033b5a84f6 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_enableaudio.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_enableaudio.dita @@ -35,7 +35,7 @@
          Restrictions
            -
          • Calling this method will reset the entire engine, resulting in a slow response time. Instead of callling this method, you can independently control a specific audio module based on your actual needs using the following methods:
              +
            • Calling this method will reset the entire engine, resulting in a slow response time. You can use the following methods to independently control a specific function of the audio module based on your actual needs:
              • : Whether to enable the microphone to create the local audio stream.
              • : Whether to publish the local audio stream.
              • : Whether to subscribe and play the remote audio stream.
              • diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_enablecontentinspect.dita b/en-US/dita/RTC-NG/API/api_irtcengine_enablecontentinspect.dita index 1ed96248c97..b817564ea65 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_enablecontentinspect.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_enablecontentinspect.dita @@ -32,24 +32,30 @@ {required bool enabled, required ContentInspectConfig config});

          -
          - Details +

          When video screenshot and upload function is enabled, the SDK takes screenshots and uploads videos sent by local users based on the type and frequency of the module you set in . After video screenshot and upload, the Agora server sends the callback notification to your app server in HTTPS requests and sends all screenshots to the third-party cloud storage service.

          - Before calling this method, ensure that you have contacted to activate the video screenshot upload service.
          -
          +
          + Call timing +

          This method can be called either before or after joining the channel.

          +
          +
          + Restrictions +

          Before calling this method, ensure that you have contacted to activate the video screenshot upload service.

          +
          +
          Parameters enabled - Whether to enable video screenshot and uploadvideo content moderation:
            + Whether to enalbe video screenshot and upload:
            • : Enables video screenshot and upload.
            • : Disables video screenshot and upload.
            config - Configuration of video screenshot and upload. See .When the video moderation module is set to video moderation via Agora self-developed extension(), the video screenshot and upload dynamic library is required. Deleting this library disables the screenshot and upload feature. + Screenshot and upload configuration. See .When the video moderation module is set to video moderation via Agora self-developed extension(), the video screenshot and upload dynamic library is required. Deleting this library disables the screenshot and upload feature.
          diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_enableencryption.dita b/en-US/dita/RTC-NG/API/api_irtcengine_enableencryption.dita index 822cfbab8c4..a4c61a0cc82 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_enableencryption.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_enableencryption.dita @@ -26,12 +26,23 @@ {required bool enabled, required EncryptionConfig config});

          -
          - Details -

          In scenarios requiring high security, Agora recommends calling this method to enable the built-in encryption before joining a channel.

          -

          All users in the same channel must use the same encryption mode and encryption key. After the user leaves the channel, the SDK automatically disables the built-in encryption. To enable the built-in encryption, call this method before the user joins the channel again.

          - If you enable the built-in encryption, you cannot use the Media Push function.
          -
          +
          +

          After the user leaves the channel, the SDK automatically disables the built-in encryption. To enable the built-in encryption, call this method before the user joins the channel again.

          +
          +
          + Applicable scenarios +

          Scenarios with higher security requirements.

          +
          +
          + Call timing +

          Call this method before joining a channel.

          +
          +
          + Restrictions +
          • All users within the same channel must set the same encryption configurations when calling this method.
          • +
          • If you enable the built-in encryption, you cannot use the Media Push function.
          +
          +
          Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_enableextension.dita b/en-US/dita/RTC-NG/API/api_irtcengine_enableextension.dita index 59675aeed85..484cf2177f7 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_enableextension.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_enableextension.dita @@ -59,7 +59,7 @@
          Parameters @@ -84,7 +84,7 @@ type - sourceType + sourceType Source type of the extension. See .
          diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_enablefacedetection.dita b/en-US/dita/RTC-NG/API/api_irtcengine_enablefacedetection.dita index 33b81d76790..ad9f275623c 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_enablefacedetection.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_enablefacedetection.dita @@ -25,18 +25,26 @@ Future<void> enableFaceDetection(bool enabled);

          -
          - Details -

          You can call this method either before or after joining a channel.

          - This method is for Android and iOS only. -

          Once face detection is enabled, the SDK triggers the callback to report the face information of the local user, which includes the following:

            +
            +

            This method is for Android and iOS only.

            +
            +
            + Call timing +

            This method needs to be called after the camera is started (for example, by calling or ).

            +
            +
            + Restrictions +

            None.

            +
            + -
            +
            Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_enableinstantmediarendering.dita b/en-US/dita/RTC-NG/API/api_irtcengine_enableinstantmediarendering.dita index 46d5a2facd1..9c4664803bd 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_enableinstantmediarendering.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_enableinstantmediarendering.dita @@ -24,25 +24,27 @@ abstract enableInstantMediaRendering(): number; Future<void> enableInstantMediaRendering();

            -
            - Details +
            Since
            v4.1.1
            -

            After successfully calling this method, the SDK enables the instant frame rendering mode, which can speed up the first frame rendering speed after the user joins the channel. -

              -
            • Once the instant rendering function is enabled, it can only be canceled by calling the method to destroy the object.
            • -
            • In this mode, the SDK uses Agora's custom encryption algorithm to shorten the time required to establish transmission links, and the security is reduced compared to the standard DTLS (Datagram Transport Layer Security). If the application scenario requires higher security standards, Agora recommends that you do not use this method.
            • -
            -

            +

            After successfully calling this method, the SDK enables the instant frame rendering mode, which can speed up the first frame rendering after the user joins the channel.

            -
            +
            Applicable scenarios

            Agora recommends that you enable this mode for the audience in a live streaming scenario.

            +
            + Call timing +

            Agora recommends that you call this method before joining a channel.

            +
            +
            + Restrictions +

            Once the method is successfully called, you can only cancel instant rendering by calling to destroy the object.

            +
            <ph keyref="return-section-title"/>

            When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

            diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_enablevideo.dita b/en-US/dita/RTC-NG/API/api_irtcengine_enablevideo.dita index 8f4e4423cad..4e44332a21e 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_enablevideo.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_enablevideo.dita @@ -39,7 +39,7 @@ Restrictions
            • This method enables the internal engine and is valid after leaving the channel.
            • -
            • Calling this method will reset the entire engine, resulting in a slow response time. Instead of calling this method, you can independently control a specific video module based on your actual needs using the following methods:
                +
              • Calling this method will reset the entire engine, resulting in a slow response time. You can use the following methods to independently control a specific function of the video module based on your actual needs:
                • : Whether to enable the camera to create the local video stream.
                • : Whether to publish the local video stream.
                • : Whether to subscribe to and play the remote video stream.
                • diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_enablevoiceaituner.dita b/en-US/dita/RTC-NG/API/api_irtcengine_enablevoiceaituner.dita new file mode 100644 index 00000000000..646fd7e580e --- /dev/null +++ b/en-US/dita/RTC-NG/API/api_irtcengine_enablevoiceaituner.dita @@ -0,0 +1,70 @@ + + + + <ph keyref="enableVoiceAITuner"/> + Enables or disables the voice AI tuner. + + + + + + + + +
                  +

                  + public abstract int enableVoiceAITuner(boolean enabled, Constants.VOICE_AI_TUNER_TYPE type); + - (int)enableVoiceAITuner:(bool)enabled type:(AgoraVoiceAITunerType)type NS_SWIFT_NAME(enableVoiceAITuner(_:type:)); + virtual int enableVoiceAITuner(bool enabled, VOICE_AI_TUNER_TYPE type) = 0; + + + + +

                  +
                  +
                  +
                  + +
                  Since
                  +
                  v4.4.0
                  +
                  +
                  +

                  The voice AI tuner supports enhancing sound quality and adjusting tone style.

                  +
                  +
                  + Applicable scenarios +

                  Social entertainment scenes including online KTV, online podcast and live streaming in showrooms, where high sound quality is required.

                  +
                  +
                  + Call timing +

                  This method can be called either before or after joining the channel.

                  +
                  +
                  + Restrictions +

                  None.

                  +
                  +
                  + Parameters + + + enabled + Whether to enable the voice AI tuner:
                    +
                  • : Enables the voice AI tuner.
                  • +
                  • : (Default) Disable the voice AI tuner.
                  • +
                  +
                  +
                  + + type + Voice AI tuner sound types, see . + +
                  +
                  + <ph keyref="return-section-title"/> +

                  When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

                  +
                    +
                  • 0: Success.
                  • +
                  • < 0: Failure. See for details and resolution suggestions.
                  • +
                  +
                  +
                  diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_getcallid.dita b/en-US/dita/RTC-NG/API/api_irtcengine_getcallid.dita index d4913e1a5ec..88b7a052e81 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_getcallid.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_getcallid.dita @@ -25,12 +25,19 @@ Future<String> getCallId();

            -
            - Details +

            When a user joins a channel on a client, a callId is generated to identify the call from the client. You can call this method to get the callId parameter, and pass it in when calling methods such as and .

            - Call this method after joining a channel.
            -
            - Parameters +
            +
            + Call timing +

            Call this method after joining a channel.

            +
            +
            + Restrictions +

            None.

            +
            +
            + Parameters callId diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_initialize.dita b/en-US/dita/RTC-NG/API/api_irtcengine_initialize.dita index 353cdd5fcbc..4b529b1d076 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_initialize.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_initialize.dita @@ -56,12 +56,12 @@
            - <ph keyref="return-section-title" props="apple cpp framework"/><ph props="android">Returns/Exceptions</ph> + <ph keyref="return-section-title" props="apple cpp framework"/><ph props="android hmos">Returns/Exceptions</ph>

            When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

            • The instance, if the method call succeeds.
            • 0: Success.
            • -
            • The method call fails and an exception is thrown, you need to catch the exception and handle it. See for details and resolution suggestions.
            • +
            • The method call fails and an exception is thrown, you need to catch the exception and handle it. See for details and resolution suggestions.
            • < 0: Failure.
              • -1: A general error occurs (no specified reason).
              • -2: The parameter is invalid.
              • diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_isfeatureavailableondevice.dita b/en-US/dita/RTC-NG/API/api_irtcengine_isfeatureavailableondevice.dita index 69ed9a29869..ed80b435f25 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_isfeatureavailableondevice.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_isfeatureavailableondevice.dita @@ -41,7 +41,7 @@ type The type of the advanced feature, see . - +

                The type of the advanced feature.

                • (1): Virutual background.
                • (2): Image enhancement.
                • diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_joinchannel.dita b/en-US/dita/RTC-NG/API/api_irtcengine_joinchannel.dita index cfd145f8e60..70769ca80f6 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_joinchannel.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_joinchannel.dita @@ -63,12 +63,12 @@ info - optionalInfo + optionalInfo (Optional) Reserved for future use. uid - The user ID. This parameter is used to identify the user in the channel for real-time audio and video interaction. You need to set and manage user IDs yourself, and ensure that each user ID in the same channel is unique. This parameter is a 32-bit signed integer. The value range is from -231-1 to 231-1. This parameter is a 32-bit unsigned integer. The value range is 1 to 232-1. If the user ID is not assigned (or set to 0), the SDK assigns a random user ID and returns it in the callback. Your application must record and maintain the returned user ID, because the SDK does not do so. + The user ID. This parameter is used to identify the user in the channel for real-time audio and video interaction. You need to set and manage user IDs yourself, and ensure that each user ID in the same channel is unique. This parameter is a 32-bit signed integer. The value range is from -231-1 to 231-1. This parameter is a 32-bit unsigned integer. The value range is 1 to 232-1. If the user ID is not assigned (or set to 0), the SDK assigns a random user ID and returns it in the callback. Your application must record and maintain the returned user ID, because the SDK does not do so. diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_joinchannel2.dita b/en-US/dita/RTC-NG/API/api_irtcengine_joinchannel2.dita index d22bb3c9b49..f505eeac932 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_joinchannel2.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_joinchannel2.dita @@ -82,7 +82,7 @@ uid - The user ID. This parameter is used to identify the user in the channel for real-time audio and video interaction. You need to set and manage user IDs yourself, and ensure that each user ID in the same channel is unique. This parameter is a 32-bit signed integer. The value range is from -231-1 to 231-1. This parameter is a 32-bit unsigned integer. The value range is 1 to 232-1. If the user ID is not assigned (or set to 0), the SDK assigns a random user ID and returns it in the callback. Your application must record and maintain the returned user ID, because the SDK does not do so. + The user ID. This parameter is used to identify the user in the channel for real-time audio and video interaction. You need to set and manage user IDs yourself, and ensure that each user ID in the same channel is unique. This parameter is a 32-bit signed integer. The value range is from -231-1 to 231-1. This parameter is a 32-bit unsigned integer. The value range is 1 to 232-1. If the user ID is not assigned (or set to 0), the SDK assigns a random user ID and returns it in the callback. Your application must record and maintain the returned user ID, because the SDK does not do so. options @@ -101,11 +101,11 @@
                • 0: Success.
                • < 0: Failure. See for details and resolution suggestions.
                  • -2: The parameter is invalid. For example, the token is invalid, the uid parameter is not set to an integer, or the value of a member in is invalid. You need to pass in a valid parameter and join the channel again.
                  • -
                  • -3: Failes to initialize the object. You need to reinitialize the object.
                  • +
                  • -3: Fails to initialize the object. You need to reinitialize the object.
                  • -7: The object has not been initialized. You need to initialize the object before calling this method.
                  • -
                  • -8: The internal state of the object is wrong. The typical cause is that you call this method to join the channel without calling to stop the test after calling to start a call loop test. You need to call before calling this method.
                  • -
                  • -17: The request to join the channel is rejected. The typical cause is that the user is in the channel. Agora recommends that you use the callback to determine whether the user exists in the channel. Do not call this method to join the channel unless you receive the (1) state.
                  • -
                  • -102: The channel name is invalid. You need to pass in a valid channelname in channelId to rejoin the channel.
                  • +
                  • -8: The internal state of the object is wrong. The typical cause is that you call this method to join the channel without calling to stop the test after calling to start a call loop test. You need to call before calling this method.
                  • +
                  • -17: The request to join the channel is rejected. The typical cause is that the user is already in the channel. Agora recommends that you use the callback to see whether the user is in the channel. Do not call this method to join the channel unless you receive the (1) state.
                  • +
                  • -102: The channel name is invalid. You need to pass in a valid channel name in channelId to rejoin the channel.
                  • -121: The user ID is invalid. You need to pass in a valid user ID in uid to rejoin the channel.
            diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_joinchannelwithuseraccount.dita b/en-US/dita/RTC-NG/API/api_irtcengine_joinchannelwithuseraccount.dita index 9bffe6b5b78..404e286af74 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_joinchannelwithuseraccount.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_joinchannelwithuseraccount.dita @@ -60,7 +60,7 @@ - channelName + channelName channelId

            diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_joinchannelwithuseraccount2.dita b/en-US/dita/RTC-NG/API/api_irtcengine_joinchannelwithuseraccount2.dita index 6eedff83a00..058b9db7d9f 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_joinchannelwithuseraccount2.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_joinchannelwithuseraccount2.dita @@ -64,7 +64,7 @@ - channelName + channelName channelId

            diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_muteallremoteaudiostreams.dita b/en-US/dita/RTC-NG/API/api_irtcengine_muteallremoteaudiostreams.dita index 4ea62c2ca40..1c53097180f 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_muteallremoteaudiostreams.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_muteallremoteaudiostreams.dita @@ -43,7 +43,7 @@ Parameters - muted + muted mute

            Whether to stop subscribing to the audio streams of all remote users:

              diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_muteallremotevideostreams.dita b/en-US/dita/RTC-NG/API/api_irtcengine_muteallremotevideostreams.dita index c6b6a44d6b0..054b298b3ee 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_muteallremotevideostreams.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_muteallremotevideostreams.dita @@ -43,7 +43,7 @@ Parameters - muted + muted mute

              Whether to stop subscribing to the video streams of all remote users.

                diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_mutelocalaudiostream.dita b/en-US/dita/RTC-NG/API/api_irtcengine_mutelocalaudiostream.dita index df0babd0dc2..dbd1d1d6bb2 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_mutelocalaudiostream.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_mutelocalaudiostream.dita @@ -44,7 +44,7 @@ Parameters - muted + muted mute

                Whether to stop publishing the local audio stream:

                  diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_mutelocalvideostream.dita b/en-US/dita/RTC-NG/API/api_irtcengine_mutelocalvideostream.dita index da515edace7..fc438b2321c 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_mutelocalvideostream.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_mutelocalvideostream.dita @@ -45,7 +45,7 @@ Parameters - muted + muted mute

                  Whether to stop publishing the local video stream.

                    diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_muteremoteaudiostream.dita b/en-US/dita/RTC-NG/API/api_irtcengine_muteremoteaudiostream.dita index fa3b6cf2af8..52171bc4a94 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_muteremoteaudiostream.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_muteremoteaudiostream.dita @@ -48,7 +48,7 @@ The user ID of the specified user. - muted + muted mute

                    Whether to subscribe to the specified remote user's audio stream.

                      diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_muteremotevideostream.dita b/en-US/dita/RTC-NG/API/api_irtcengine_muteremotevideostream.dita index 2469e87aacc..1158ee5bab9 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_muteremotevideostream.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_muteremotevideostream.dita @@ -49,7 +49,7 @@ The user ID of the specified user. - muted + muted mute

                      Whether to subscribe to the specified remote user's video stream.

                        diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_pauseallchannelmediarelay.dita b/en-US/dita/RTC-NG/API/api_irtcengine_pauseallchannelmediarelay.dita index 5aa26083845..60705e47274 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_pauseallchannelmediarelay.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_pauseallchannelmediarelay.dita @@ -34,7 +34,8 @@

                        When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

                        • 0: Success.
                        • -
                        • < 0: Failure. See for details and resolution suggestions.
                        • +
                        • < 0: Failure. See for details and resolution suggestions.
                          • -5: The method call was rejected. There is no ongoing channel media relay.
                          +
            \ No newline at end of file diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_pauseaudiomixing.dita b/en-US/dita/RTC-NG/API/api_irtcengine_pauseaudiomixing.dita index c1b578944df..e6fb3037243 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_pauseaudiomixing.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_pauseaudiomixing.dita @@ -25,10 +25,17 @@ Future<void> pauseAudioMixing();

            -
            - Details +
            +

            After calling to play a music file, you can call this method to pause the playing. If you need to stop the playback, call .

            +
            +
            + Call timing

            Call this method after joining a channel.

            +
            + Restrictions +

            None.

            +
            <ph keyref="return-section-title"/>

            When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

            diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_playeffect.dita b/en-US/dita/RTC-NG/API/api_irtcengine_playeffect.dita index b0083bb209c..6e6497f1f93 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_playeffect.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_playeffect.dita @@ -34,23 +34,25 @@

            -
            - Details - -

            +

            +

            -
            +
            +
            +
            +
            + +
            Parameters - - filePath - -

            - + + + diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_playeffect2.dita b/en-US/dita/RTC-NG/API/api_irtcengine_playeffect2.dita index 48592059167..c82980746d2 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_playeffect2.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_playeffect2.dita @@ -37,24 +37,26 @@

            -
            - Details - -

            To play multiple audio effect files at the same time, call this method multiple times with different soundId and filePath. To achieve the optimal user experience, Agora recommends that do not playing more than three audio files at the same time. After the playback of an audio effect file completes, the SDK triggers the callback.Supported audio formats include MP3, AAC, M4A, MP4, WAV, and 3GP. See Supported Audio Formats.

            +
            +

            +

            To play multiple audio effect files at the same time, call this method multiple times with different soundId and filePath. To achieve the optimal user experience, Agora recommends that you do not playing more than three audio files at the same time.

            -
            +
            +
            +
            +
            + +
            Parameters soundId The audio effect ID. The ID of each audio effect file is unique.If you have preloaded an audio effect into memory by calling , ensure that the value of this parameter is the same as that of soundId in . - - filePath - -

            Agora supports URL addresses, absolute paths, or file paths that start with /assets/. For example, .

            -

            The absolute path or URL address (including the suffixes of the filename) of the audio effect file. You might encounter permission issues if you use an absolute path to access a local file, so Agora recommends using a URI address instead. For example, .

            - If you have preloaded an audio effect into memory by calling , ensure that the value of this parameter is the same as that of filePath in .
            + + + loopCount diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_playeffect3.dita b/en-US/dita/RTC-NG/API/api_irtcengine_playeffect3.dita index b5d7096e27c..4e85540ade0 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_playeffect3.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_playeffect3.dita @@ -68,24 +68,36 @@ int startPos = 0});

            -
            - Details - If you use this method to play an online audio effect file, Agora recommends that you cache the online audio effect file to your local device, call to preload the cached audio effect file into memory, and then call this method to play the audio effect. Otherwise, you might encounter playback failures or no sound during playback due to loading timeouts or failures. -

            To play multiple audio effect files at the same time, call this method multiple times with different soundId and filePath. To achieve the optimal user experience, Agora recommends that do not playing more than three audio files at the same time. After the playback of an audio effect file completes, the SDK triggers the callback.

            -

            +
            +

            +

            To play multiple audio effect files at the same time, call this method multiple times with different soundId and filePath. To achieve the optimal user experience, Agora recommends that you do not playing more than three audio files at the same time.

            -
            +
            + Call timing +

            You can call this method either before or after joining a channel.

            +
            +
            + Restrictions +

            If you need to play an online audio effect file, Agora recommends that you cache the online audio effect file to your local device, call to preload the file into memory, and then call this method to play the audio effect. Otherwise, you might encounter playback failures or no sound during playback due to loading timeouts or failures.

            +
            + +
            Parameters soundId The audio effect ID. The ID of each audio effect file is unique.If you have preloaded an audio effect into memory by calling , ensure that the value of this parameter is the same as that of soundId in . - + filePath - -

            The absolute path or URL address (including the suffixes of the filename) of the audio effect file. For example, . Supported audio formats include MP3, AAC, M4A, MP4, WAV, and 3GP. See supported audio formats.

            - If you have preloaded an audio effect into memory by calling , ensure that the value of this parameter is the same as that of filePath in .
            + +

            The file path. The SDK supports URLs and absolute path of local files. The absolute path needs to be accurate to the file name and extension. Supported audio formats include MP3, AAC, M4A, MP4, WAV, and 3GP. See Supported Audio Formats.

            +

            The file path. The SDK supports URI addresses starting with content://, paths starting with /assets/, URLs and absolute paths of local files. The absolute path needs to be accurate to the file name and extension. Supported audio formats include MP3, AAC, M4A, MP4, WAV, and 3GP. See Supported Audio Formats.

            +

            The file path. The SDK supports file paths starting with ipod-library//, URLs and absolute file paths of local files. The absolute path needs to be accurate to the file name and extension. Supported audio formats include MP3, AAC, M4A, MP4, WAV, and 3GP. See Supported Audio Formats.

            + If you have preloaded an audio effect into memory by calling , ensure that the value of this parameter is the same as that of filePath in .
            loopCount diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_preloadchannel.dita b/en-US/dita/RTC-NG/API/api_irtcengine_preloadchannel.dita index ed82acfcf3e..e901e365512 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_preloadchannel.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_preloadchannel.dita @@ -2,7 +2,7 @@ <ph keyref="preloadChannel"/> - Preloads a channel with token, channelIdchannelName, and uidoptionalUid. + Preloads a channel with token, channelIdchannelName, and uidoptionalUid. @@ -67,7 +67,7 @@ channelId - channelName + channelName

            The channel name that you want to preload. This parameter signifies the channel in which users engage in real-time audio and video interaction. Under the premise of the same App ID, users who fill in the same channel ID enter the same channel for audio and video interaction. The string length must be less than 64 bytes. Supported characters (89 characters in total):

            • All lowercase English letters: a to z.
            • All uppercase English letters: A to Z.
            • diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_preloadeffect.dita b/en-US/dita/RTC-NG/API/api_irtcengine_preloadeffect.dita index 2e4ac6a9ab4..85cebac2a6b 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_preloadeffect.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_preloadeffect.dita @@ -37,13 +37,19 @@ {required int soundId, required String filePath, int startPos = 0});

            -
            - Details -

            To ensure smooth communication, It is recommended that you limit the size of the audio effect file. You can call this method to preload the audio effect before calling .

            - +
            +

            Ensure the size of all preloaded files does not exceed the limit.

            For the audio file formats supported by this method, see What formats of audio files does the Agora RTC SDK support.

            -
            -
            +
            +
            + Call timing +

            Agora recommends that you call this method before joining a channel.

            +
            +
            + Restrictions +

            None.

            +
            +
            Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_pushaudioframe2.dita b/en-US/dita/RTC-NG/API/api_irtcengine_pushaudioframe2.dita index f7bfc54b758..3fa847d65f3 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_pushaudioframe2.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_pushaudioframe2.dita @@ -29,15 +29,21 @@

            -
            - Details - +
            +

            Call this method to push external audio frames through the audio track.

            +
            +
            + Call timing

            Before calling this method to push external audio data, perform the following steps:

            1. Call to create a custom audio track and get the audio track ID.
            2. Call to join the channel. In , set publishCustomAudioTrackId to the audio track ID that you want to publish, and set publishCustomAudioTrack to .

            -
            -
            +
            +
            + Restrictions +

            None.

            +
            +
            Parameters @@ -54,22 +60,19 @@ sampleRate - The sample rate (Hz) of the external audio source, which can be set as 8000, 16000, 32000, 44100, or 48000. + The sample rate (Hz) of the external audio source which can be set as 8000, 16000, 32000, 44100, or 48000. channels - The number of audio channels of the external audio sink:
              -
            • 1: Mono.
            • -
            • 2: Stereo.
            • -
            + The number of channels of the external audio source, which can be set as 1 (Mono) or 2 (Stereo).
            - + bytesPerSample The number of bytes per sample. For PCM, this parameter is generally set to 16 bits (2 bytes). trackId - The audio track ID. Set this parameter to the custom audio track ID returned in . + The audio track ID. Set this parameter to the custom audio track ID returned in .
            diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_pushcaptureaudioframe.dita b/en-US/dita/RTC-NG/API/api_irtcengine_pushcaptureaudioframe.dita index 701f91dd216..0fbd9c90ca8 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_pushcaptureaudioframe.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_pushcaptureaudioframe.dita @@ -34,11 +34,11 @@ - + - + diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_pushreverseaudioframe.dita b/en-US/dita/RTC-NG/API/api_irtcengine_pushreverseaudioframe.dita index 085981b5240..8c1bee9e8b6 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_pushreverseaudioframe.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_pushreverseaudioframe.dita @@ -35,11 +35,11 @@ audioFrame The external audio frame. See . - + data The remote audio data to be pulled. The data type is byte[]. - + diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_pushvideoframe2.dita b/en-US/dita/RTC-NG/API/api_irtcengine_pushvideoframe2.dita index 891cb723de8..950a7c7d717 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_pushvideoframe2.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_pushvideoframe2.dita @@ -25,14 +25,14 @@
            Details -
            +
            Deprecated:
            If you need to push video frames in I422 format, you need to use this method; otherwise, use .

            After calling the method and setting the enabled parameter to , and the encodedFrame parameter to , you can use this method to push the raw external video frame to the SDK.

            -

            You can push the video frame either by calling this method or by calling . The difference is that this method does not support video data in Texture format.

            +

            You can push the video frame either by calling this method or by calling . The difference is that this method does not support video data in Texture format.

            Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_registerextension.dita b/en-US/dita/RTC-NG/API/api_irtcengine_registerextension.dita index d15e4e6727a..5fba5e37035 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_registerextension.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_registerextension.dita @@ -54,7 +54,7 @@
            • Agora recommends you call this method after the initialization of and before joining a channel.
            • For video extensions (such as the image enhancement extension), you need to call this method after enabling the video module by calling or .
            • -
            • Before calling this method, you need to call to load the extension first.
            • +
            • Before calling this method, you need to call to load the extension first.
            • Before calling this method, you need to link the extension dynamic library (.xcframework) to your project in Xcode to load the extension.
            • Before calling this method, you need to call to load the extension first.
            diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_removehandler.dita b/en-US/dita/RTC-NG/API/api_irtcengine_removehandler.dita index dfb0b666b57..afbcb61e3f8 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_removehandler.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_removehandler.dita @@ -2,7 +2,7 @@ <ph keyref="removeHandler" /> - Removes the specified IRtcEngineEventHandler instance. Removes the specified callback events. + Removes the specified IRtcEngineEventHandler instance. Removes the specified callback events. @@ -29,13 +29,13 @@
            Details -

            This method removes the specified callback handler. For callback events that you want to listen for only once, call this method to remove the relevant callback handler after you have received them.

            +

            This method removes the specified callback handler. For callback events that you want to listen for only once, call this method to remove the relevant callback handler after you have received them.

            You can call this method too remove all added callback events.

            Parameters - + handler The callback handler to be deleted. See . diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_resumeallchannelmediarelay.dita b/en-US/dita/RTC-NG/API/api_irtcengine_resumeallchannelmediarelay.dita index 46aeb369c31..6998760714a 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_resumeallchannelmediarelay.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_resumeallchannelmediarelay.dita @@ -34,7 +34,8 @@

            When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

            • 0: Success.
            • -
            • < 0: Failure. See for details and resolution suggestions.
            • +
            • < 0: Failure. See for details and resolution suggestions.
              • -5: The method call was rejected. There is no paused channel media relay.
              +
            \ No newline at end of file diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_resumealleffects.dita b/en-US/dita/RTC-NG/API/api_irtcengine_resumealleffects.dita index 286feed69aa..85a743fa286 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_resumealleffects.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_resumealleffects.dita @@ -27,6 +27,17 @@ Future<void> resumeAllEffects();

            +
            +

            After you call to pause the playback, you can call this method to resume the playback.

            +
            +
            + Call timing +

            Call this method after .

            +
            +
            + Restrictions +

            None.

            +
            <ph keyref="return-section-title"/>

            When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

            diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_resumeaudiomixing.dita b/en-US/dita/RTC-NG/API/api_irtcengine_resumeaudiomixing.dita index 46abb7c6564..4b4ee1f37a5 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_resumeaudiomixing.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_resumeaudiomixing.dita @@ -25,9 +25,16 @@ Future<void> resumeAudioMixing();

            -
            - Details -

            This method resumes playing and mixing the music file. Call this method when you are in a channel.

            +
            +

            After calling to pause the playback, you can call this method to resume the playback.

            +
            +
            + Call timing +

            Call this method after joining a channel.

            +
            +
            + Restrictions +

            None.

            <ph keyref="return-section-title"/> diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_selectaudiotrack.dita b/en-US/dita/RTC-NG/API/api_irtcengine_selectaudiotrack.dita index 4aa36922c72..354f8cd59fb 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_selectaudiotrack.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_selectaudiotrack.dita @@ -39,7 +39,7 @@ index audioIndex - The audio track you want to specify. The value range is [0, ()]. + The audio track you want to specify. The value should be greater than 0 and less than that of returned by .
            diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_sendstreammessage.dita b/en-US/dita/RTC-NG/API/api_irtcengine_sendstreammessage.dita index 1ec478c3e6d..14fc4ba2f4e 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_sendstreammessage.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_sendstreammessage.dita @@ -35,12 +35,13 @@
            Details -

            Sends data stream messages to all users in a channel. The SDK has the following restrictions on this method:

              -
            • Up to 30 packets can be sent per second in a channel with each packet having a maximum size of 1 KB.
            • -
            • Each client can send up to 6 KB of data per second.
            • +

              After calling , you can call this method to send data stream messages to all users in the channel.

              +

              The SDK has the following restrictions on this method:

              • Each user can have up to five data streams simultaneously.
              • +
              • Up to 60 packets can be sent per second in a data stream with each packet having a maximum size of 1 KB.
              • +
              • Up to 30 KB of data can be sent per second in a data stream.

              -

              A successful method call triggers the callback on the remote client, from which the remote user gets the stream message. A failed method call triggers the callback on the remote client.

              +

              A successful method call triggers the callback on the remote client, from which the remote user gets the stream message. A failed method call triggers the callback on the remote client.

              • Ensure that you call to create a data channel before calling this method.
              • @@ -54,7 +55,7 @@ The data stream ID. You can get the data stream ID by calling . - message + message data The message to be sent. diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setainsmode.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setainsmode.dita index 4d52ff0ccf7..4a2fd09c47f 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setainsmode.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setainsmode.dita @@ -25,29 +25,35 @@ Future<void> setAINSMode( {required bool enabled, required AudioAinsMode mode});

            -
            - Details +
            - -
            Since
            -
            v4.2.0
            -
            + +
            Since
            +
            v4.2.0
            +

            You can call this method to enable AI noise suppression function. Once enabled, the SDK automatically detects and reduces stationary and non-stationary noise from your audio on the premise of ensuring the quality of human voice. Stationary noise refers to noise signal with constant average statistical properties and negligibly small fluctuations of level within the period of observation. Common sources of stationary noises are:

            • Television;
            • -
            • Air conditioner;
            • -
            • Machinery, etc.
            Non-stationary noise refers to noise signal with huge fluctuations of level within the period of observation; common sources of non-stationary noises are:
            • Thunder;
            • -
            • Explosion;
            • -
            • Cracking, etc.

            - -
            • This method relies on the AI noise suppression dynamic library . If the dynamic library is deleted, the function cannot be enabled.
            • -
            • This method relies on the AI noise suppression dynamic library. If the dynamic library is deleted, the function cannot be enabled. For the name of the AI ​​noise suppression dynamic library, see .
            • -
            • Agora does not recommend enabling this function on devices running Android 6.0 and below.
            +
          • Air conditioner;
          • +
          • Machinery, etc.
          Non-stationary noise refers to noise signal with huge fluctuations of level within the period of observation; common sources of non-stationary noises are:
          • Thunder;
          • +
          • Explosion;
          • +
          • Cracking, etc.
          +

          -
          +
          Applicable scenarios

          In scenarios such as co-streaming, online education and video meeting, this function can detect and reduce background noises to improve experience.

          -
          +
          + Call timing +

          You can call this method either before or after joining a channel.

          +
          +
          + Restrictions +
          • This method relies on the AI noise suppression dynamic library . If the dynamic library is deleted, the function cannot be enabled.
          • +
          • This method relies on the AI noise suppression dynamic library. If the dynamic library is deleted, the function cannot be enabled. For the name of the AI ​​noise suppression dynamic library, see .
          • +
          • Agora does not recommend enabling this function on devices running Android 6.0 and below.
          +
          +
          Parameters @@ -61,7 +67,7 @@ mode

          The AI noise suppression modes. See .

          -

          The AI noise suppression modes:

            +

            The AI noise suppression modes:

            • 0: (Default) Balance mode. This mode allows for a balanced performance on noice suppression and time delay.
            • 1: Aggressive mode. In scenarios where high performance on noise suppression is required, such as live streaming outdoor events, this mode reduces nosies more dramatically, but sometimes may affect the original character of the audio.
            • 2: Aggressive mode with low latency. The noise suppression delay of this mode is about only half of that of the balance and aggressive modes. It is suitable for scenarios that have high requirements on noise suppression with low latency, such as sing together online in real time.
            • diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setaudioeffectparameters.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setaudioeffectparameters.dita index 64bc21e6d47..f0c6249e643 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setaudioeffectparameters.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setaudioeffectparameters.dita @@ -54,6 +54,7 @@
            +
          • This method relies on the voice beautifier dynamic library . If the dynamic library is deleted, the function cannot be enabled normally.
          Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setaudioeffectpreset.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setaudioeffectpreset.dita index 1982d141e87..ac3bad3ff33 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setaudioeffectpreset.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setaudioeffectpreset.dita @@ -51,7 +51,7 @@ preset The options for SDK preset audio effects. See . - Preset audio effects.
            + Preset audio effects.
            • : Turn off audio effects and use the original voice.
            • : The reverberation style typical of a KTV venue.
            • : The reverberation style typical of a concert hall.
            • diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setaudiomixingpitch.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setaudiomixingpitch.dita index da01357220e..b61c8b89800 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setaudiomixingpitch.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setaudiomixingpitch.dita @@ -25,11 +25,18 @@ Future<void> setAudioMixingPitch(int pitch);

          -
          - Details -

          When a local music file is mixed with a local human voice, call this method to set the pitch of the local music file only.

          - You need to call this method after calling and receiving the () callback.
          -
          +
          +

          When a local music file is mixed with a local human voice, call this method to set the pitch of the local music file only.

          +
          +
          + Call timing +

          You need to call this method after calling and receiving the () callback.

          +
          +
          + Restrictions +

          None.

          +
          +
          Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setaudioprofile.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setaudioprofile.dita index 83a47124167..dba42ad6dfe 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setaudioprofile.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setaudioprofile.dita @@ -60,7 +60,7 @@ profile -

          The audio profile, including the sampling rate, bitrate, encoding mode, and the number of channels. See .

            +

            The audio profile, including the sampling rate, bitrate, encoding mode, and the number of channels. See .

            • (0): The default value.
            • diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setaudioprofile2.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setaudioprofile2.dita index 1a2ce0cb610..acde5924550 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setaudioprofile2.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setaudioprofile2.dita @@ -23,7 +23,7 @@

          -

          If you need to set the audio scenario, you can either call , or and set the mAudioScenarioaudioScenario in .

          +

          If you need to set the audio scenario, you can either call , or and set the mAudioScenarioaudioScenario in .

          Applicable scenarios diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setaudioscenario.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setaudioscenario.dita index b614472ca7a..42a66a3042f 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setaudioscenario.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setaudioscenario.dita @@ -35,17 +35,17 @@
          Call timing

          You can call this method either before or after joining a channel.

          -
          +
          Parameters scenario - The audio scenarios. Under different audio scenarios, the device uses different volume types. See .
            + The audio scenarios. Under different audio scenarios, the device uses different volume types. See .
            • (0): (Default) Automatic scenario, where the SDK chooses the appropriate audio quality according to the user role and audio route.
            • (3): High-quality audio scenario, where users mainly play music.
            • -
            • (5): Chatroom scenario, where users need to frequently switch the user role or mute and unmute the microphone. In this scenario, audience members receive a pop-up window to request permission of using microphones.
            • +
            • (5): Chatroom scenario, where users need to frequently switch the user role or mute and unmute the microphone.
            • (7): Real-time chorus scenario, where users have good network conditions and require ultra-low latency.
            • (8): Meeting scenario that mainly involves the human voice.
            diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setbeautyeffectoptions.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setbeautyeffectoptions.dita index 6548aced1b5..353caf72d67 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setbeautyeffectoptions.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setbeautyeffectoptions.dita @@ -36,18 +36,22 @@ MediaSourceType type = MediaSourceType.primaryCameraSource});

          -
          - Details +

          Enables or disables image enhancement, and sets the options.

          - +
          +
          + Call timing +

          Call this method after calling or .

          +
          +
          + Restrictions
            -
          • Call this method after calling or .
          • This method only applies to Android 5.0 or later.
          • This method relies on the image enhancement dynamic library . If the dynamic library is deleted, the function cannot be enabled normally.
          • This feature has high requirements on device performance. When calling this method, the SDK automatically checks the capabilities of the current device.
          -
          -
          +
          +
          Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setbeautyeffectoptions2.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setbeautyeffectoptions2.dita index e561b57a7ed..8ea662047a6 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setbeautyeffectoptions2.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setbeautyeffectoptions2.dita @@ -25,13 +25,16 @@

          -
          - Details +

          Enables or disables image enhancement, and sets the options.

          Both this method and set image enhancement options, but this method allows you to specify the media source to which the image enhancement is applied.

          -
          -
          +
          + Call timing +

          Call this method after calling or .

          +
          +
          +
          Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setcameraautofocusfacemodeenabled.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setcameraautofocusfacemodeenabled.dita index c7d448c5d17..34677a666c5 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setcameraautofocusfacemodeenabled.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setcameraautofocusfacemodeenabled.dita @@ -28,7 +28,7 @@
          Details -

          The SDK disables face autofocus by default. To set face autofocus, call this method.

          +

          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.

          diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setcameraexposurefactor.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setcameraexposurefactor.dita index f3cc8e365a6..98e35900ec7 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setcameraexposurefactor.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setcameraexposurefactor.dita @@ -49,7 +49,7 @@ factor

          The camera exposure value. The default value is 0, which means using the default exposure of the camera. The larger the value, the greater the exposure. When the video image is overexposed, you can reduce the exposure value; when the video image is underexposed and the dark details are lost, you can increase the exposure value. If the exposure value you specified is beyond the range supported by the device, the SDK will automatically adjust it to the actual supported range of the device.

          -

          The value range is [-20, 20].

          +

          The value range is [-20, 20].

          The value range is [-8.0, 8.0].

          On Android, the value range is [-20.0, 20.0]. On iOS, the value range is [-8.0, 8.0].

          diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setchannelprofile.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setchannelprofile.dita index c61cbe7d507..e48e5d25e73 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setchannelprofile.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setchannelprofile.dita @@ -33,7 +33,7 @@
          Call timing -

          Ensure that you call this method before joining a channel.

          +

          Call this method before joining a channel.

          Restrictions @@ -46,7 +46,7 @@ profile

          The channel profile. See .

          -

          The channel profile.

            +

            The channel profile.

            • (0): Communication. Agora recommends using the live streaming profile for a better audio and video experience.
            • (1): (Default) Live streaming.
            • (2): Gaming.
              diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setclientrole.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setclientrole.dita index 50ff6f2a61b..dc71cccedc4 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setclientrole.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setclientrole.dita @@ -51,7 +51,7 @@ role

              The user role. See .

              -

              The user role:

                +

                The user role:

                • (1): Host.
                • (2): Audience.

                diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setclientrole2.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setclientrole2.dita index 68402bf496e..2dfee772e56 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setclientrole2.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setclientrole2.dita @@ -62,7 +62,7 @@ role clientRoleType - The user role. See .
                  + The user role. See .
                  • (1): Host. A host can both send and receive streams.
                  • (2): (Default) Audience. An audience member can only receive streams.
                  diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setcloudproxy.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setcloudproxy.dita index 7c4a9291c12..4c44ebd96a1 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setcloudproxy.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setcloudproxy.dita @@ -44,7 +44,7 @@ proxyType

                  The type of the cloud proxy. See .

                  -

                  The type of the cloud proxy.

                    +

                    The type of the cloud proxy.

                    • (0): The automatic mode. The SDK has this mode enabled by default. In this mode, the SDK attempts a direct connection to SD-RTN™ and automatically switches to TCP/TLS 443 if the attempt fails.
                    • (1): The cloud proxy for the UDP protocol, that is, the Force UDP cloud proxy mode. In this mode, the SDK always transmits data over UDP.
                    • (2): The cloud proxy for the TCP (encryption) protocol, that is, the Force TCP cloud proxy mode. In this mode, the SDK always transmits data over TCP/TLS 443.
                    • diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setdefaultaudioroutetospeakerphone.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setdefaultaudioroutetospeakerphone.dita index e6ad7242fbc..416552cffba 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setdefaultaudioroutetospeakerphone.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setdefaultaudioroutetospeakerphone.dita @@ -32,10 +32,10 @@
          Details - +
          • This method is for Android and iOS only.
          • -
          • Ensure that you call this method before joining a channel. If you need to change the audio route after joining a channel, call .
          • +
          • Call this method before joining a channel. If you need to change the audio route after joining a channel, call .

          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.

          @@ -46,7 +46,7 @@
        • Video broadcast: Speakerphone.

        You can call this method to change the default audio route. After a successful method call, the SDK triggers the callback.

        - +

        The system audio route changes when an external audio device, such as a headphone or a Bluetooth audio device, is connected. See Audio Route for detailed change principles.

    @@ -63,7 +63,7 @@
    <ph keyref="return-section-title"/>

    When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

    -
      +
      • 0: Success.
      • < 0: Failure. See for details and resolution suggestions.
    diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setearmonitoringaudioframeparameters.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setearmonitoringaudioframeparameters.dita index 2e40b52c000..11144fdc6e9 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setearmonitoringaudioframeparameters.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setearmonitoringaudioframeparameters.dita @@ -72,8 +72,8 @@ mode -

    The use mode of the audio frame. See .

    -

    +

    The use mode of the audio frame. See .

    +

    diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setenablespeakerphone.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setenablespeakerphone.dita index c143feb0bb6..3eb6a801d0d 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setenablespeakerphone.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setenablespeakerphone.dita @@ -38,7 +38,7 @@ Parameters - enabled + enabled enableSpeaker speakerOn diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setextensionproperty.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setextensionproperty.dita index 0e3781fcd0c..07e1e44fc40 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setextensionproperty.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setextensionproperty.dita @@ -61,7 +61,7 @@

    Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setlocalaccesspoint.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setlocalaccesspoint.dita index f7cc2f5ff37..626fb6438fe 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setlocalaccesspoint.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setlocalaccesspoint.dita @@ -25,15 +25,18 @@ Future<void> setLocalAccessPoint(LocalAccessPointConfiguration config);

    -
    - Details -

    After successfully deploying the Agora private media server and integrating the RTC SDK on the intranet terminal, you can call this method to specify the Local Access Point and assign the access module to the SDK.

    - -
      -
    • This method takes effect only after the Agora hybrid cloud solution is deployed. You can contact to get to know more about the Agora hybrid cloud solution.
    • -
    • Ensure that you call this method before joining a channel.
    • -
    -
    +
    +

    After successfully deploying the Agora private media server and integrating the RTC 4.x SDK on the intranet terminal, you can call this method to specify the Local Access Point and assign the access module to the SDK.

    +
    +
    + Call timing +

    Call this method before joining a channel.

    +
    +
    + Restrictions +

    This method takes effect only after the Agora hybrid cloud solution is deployed. You can contact to get to know more about the Agora hybrid cloud solution.

    +
    +
    Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setlocalrendermode.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setlocalrendermode.dita index e1cf0558b0c..6f21e6941ea 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setlocalrendermode.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setlocalrendermode.dita @@ -48,7 +48,7 @@ mode

    The local video display mode. See .

    -

    The local video display mode.

      +

      The local video display mode.

      diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setlocalrendermode2.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setlocalrendermode2.dita index bb8eaa4985d..1dd7d04c89b 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setlocalrendermode2.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setlocalrendermode2.dita @@ -35,36 +35,46 @@ VideoMirrorModeType.videoMirrorModeAuto});

    -
    - Details -

    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, not the published local video stream.

    - -
      -
    • Ensure that you have called the method to initialize the local video view before calling this method.
    • -
    • During a call, you can call this method as many times as necessary to update the display mode of the local video view.
    • -
    • This method only takes effect on the primary camera (). In scenarios involving custom video capture or the use of alternative video sources, you need to use instead of this method.
    • -
    -
    - Parameters +
    +

    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.

    +
    +
    + <ph props="native unreal bp electron rn flutter">Call timing</ph> +
    • Ensure that you have called the method to initialize the local video view before calling this method.
    • +
    • During a call, you can call this method as many times as necessary to update the display mode of the local video view.
    +
    +
    + <ph props="native unreal bp electron rn flutter">Restrictions</ph> +

    This method only takes effect on the primary camera (). In scenarios involving custom video capture or the use of alternative video sources, you need to use instead of this method.

    +

    None.

    +
    +
    + Parameters renderMode mode

    The local video display mode. See .

    -

    The local video display mode.

      +

      The local video display mode.

      • (1): Hidden mode. Uniformly scale the video until it fills the visible boundaries (cropped). One dimension of the video may have clipped contents.
      • (2): Fit mode. Uniformly scale the video until one of its dimension fits the boundary (zoomed to fit). Areas that are not filled due to the disparity in the aspect ratio are filled with black.
      • -
      • (3): This mode is deprecated.
      • +
      • (3): Adaptive mode.
        + +
        Deprecated:
        +
        This enumerator is deprecated and not recommended for use.
        +
        +
        +

      - mirrorMode + mirrorMode mirror

      The mirror mode of the local video view. See .This parameter is only effective when rendering custom videos. If you want to mirror the video view, set the scaleX of the GameObject attached to the video view as -1 or +1.

      -

      For the local user:

        +

        For the local user:

        • (0): The SDK determines whether to enable the mirror mode. If you use a front camera, the SDK enables the mirror mode by default; if you use a rear camera, the SDK disables the mirror mode by default.
        • (1): Enable the mirroring mode of the local view.
        • (2): Disable the mirroring mode of the local view.
        • diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setlocalvideomirrormode.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setlocalvideomirrormode.dita index 0d1d8bb84f5..b8942213597 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setlocalvideomirrormode.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setlocalvideomirrormode.dita @@ -44,7 +44,7 @@ mirrorMode

          The local video mirror mode. See .

          -

          +

          diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setlocalvoicereverbpreset.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setlocalvoicereverbpreset.dita index 9002cf702e9..acbb337beab 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setlocalvoicereverbpreset.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setlocalvoicereverbpreset.dita @@ -48,7 +48,7 @@ reverbPreset preset

          The local voice reverberation option. The default value is , which means the original voice. See . To achieve better voice effects, Agora recommends the enumeration whose name begins with AUDIO_REVERB_FX.

          -

          The local voice reverberation option. To achieve better voice effects, Agora recommends the enumeration whose name begins with AUDIO_REVERB_FX.

            +

            The local voice reverberation option. To achieve better voice effects, Agora recommends the enumeration whose name begins with AUDIO_REVERB_FX.

            • : (Default) Turn off local voice reverberation, that is, to use the original voice.
            • : The reverberation style typical of a KTV venue (enhanced).
            • : The reverberation style typical of a concert hall (enhanced).
            • diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setlogfile.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setlogfile.dita index 9aaa23a9db7..c6f042b361c 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setlogfile.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setlogfile.dita @@ -30,7 +30,7 @@
              Deprecated:
              -
              Use the mLogConfig parameter in method instead.
              +
              This method is deprecated. Use the logConfigmLogConfig parameter in to set the log file path.

              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.

              diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setmixedaudioframeparameters.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setmixedaudioframeparameters.dita index dadc6856da1..fccee3cbd84 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setmixedaudioframeparameters.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setmixedaudioframeparameters.dita @@ -2,7 +2,7 @@ <ph keyref="setMixedAudioFrameParameters" /> - Sets the audio data format reported by . + Set the format of the raw audio data after mixing for audio capture and playback. @@ -38,35 +38,33 @@ required int samplesPerCall});

    -
    +
    +

    The SDK triggers the callback according to the sampling interval.

    +
    +
    + Call timing +

    Call this method before joining a channel.

    +
    +
    + Restrictions +

    None.

    +
    +
    Parameters - - sampleRate - -

    The sample rate (Hz) of the audio data, which can be set as 8000, 16000, 32000, 44100, or 48000.

    -
    + + + -
    - - - channel - -

    The number of channels of the audio data, which can be set as 1(Mono) or 2(Stereo).

    -
    + + + -
    - - - samplesPerCall - -

    Sets the number of samples. In Media Push scenarios, set it as 1024.

    -
    + + + -
    - -

    The SDK triggers the callback according to the sample interval. Sampleinterval (sec) = samplePerCall/(sampleRate × channel) Ensure that the value of sample interval more than or equal to 0.01.

    -
    +
    <ph keyref="return-section-title"/>

    When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

    @@ -74,5 +72,5 @@
  • 0: Success.
  • < 0: Failure. See for details and resolution suggestions.
  • - - + + \ No newline at end of file diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setplaybackaudioframebeforemixingparameters.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setplaybackaudioframebeforemixingparameters.dita index 161566e3413..5463a3de9a8 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setplaybackaudioframebeforemixingparameters.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setplaybackaudioframebeforemixingparameters.dita @@ -2,7 +2,7 @@ <ph keyref="setPlaybackAudioFrameBeforeMixingParameters" /> - Sets the audio data format reported by . + Sets the format of the raw audio playback data before mixing. @@ -33,22 +33,27 @@ {required int sampleRate, required int channel});

    -
    +
    +

    The SDK triggers the callback according to the sampling interval.

    +
    +
    + Call timing +

    Call this method before joining a channel.

    +
    +
    + Restrictions +

    None.

    +
    +
    Parameters - - sampleRate - -

    The sample rate (Hz) of the audio data, which can be set as 8000, 16000, 32000, 44100, or 48000.

    -
    + + + -
    - - - channel - -

    The number of channels of the audio data, which can be set as 1(Mono) or 2(Stereo).

    -
    + + +
    @@ -58,5 +63,5 @@
  • 0: Success.
  • < 0: Failure. See for details and resolution suggestions.
  • - - \ No newline at end of file + + diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setplaybackaudioframeparameters.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setplaybackaudioframeparameters.dita index 3a164e7ae80..142e0878f66 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setplaybackaudioframeparameters.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setplaybackaudioframeparameters.dita @@ -2,7 +2,7 @@ <ph keyref="setPlaybackAudioFrameParameters" /> - Sets the audio data format for playback. + Sets the format of the raw audio playback data. @@ -47,40 +47,35 @@ required int samplesPerCall});

    -
    - Details -

    Sets the data format for the callback.

    - -
      -
    • Ensure that you call this method before joining a channel.
    • -
    • The SDK calculates the sampling interval based on the samplesPerCall, sampleRate and channel parameters set in this method.Sample interval (sec) = samplePerCall/(sampleRate × channel). Ensure that the sample interval ≥ 0.01 (s). The SDK triggers the callback according to the sampling interval.
    • -
    -
    +
    +

    The SDK triggers the callback according to the sampling interval.

    +
    +
    + Call timing +

    Call this method before joining a channel.

    +
    +
    + Restrictions +

    None.

    +
    +
    Parameters - - sampleRate - The sample rate returned in the callback, which can be set as 8000, 16000, 32000, 44100, or 48000 Hz. + + + - - channel - -

    The number of channels returned in the callback:

      -
    • 1: Mono.
    • -
    • 2: Stereo.
    • -

    -
    + + + - - mode - -

    The use mode of the audio frame. See .

    -

    - + + + - - samplesPerCall - The number of data samples returned in the callback, such as 1024 for the Media Push. + + +

    @@ -90,5 +85,5 @@
  • 0: Success.
  • < 0: Failure. See for details and resolution suggestions.
  • - - + + \ No newline at end of file diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setrecordingaudioframeparameters.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setrecordingaudioframeparameters.dita index 9e5be88fb46..da73eb5f3ee 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setrecordingaudioframeparameters.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setrecordingaudioframeparameters.dita @@ -46,49 +46,42 @@ required int samplesPerCall});

    -
    - Details -

    Sets the audio format for the callback.

    - -
      -
    • Ensure that you call this method before joining a channel.
    • -
    • The SDK calculates the sampling interval based on the samplesPerCall, sampleRate and channel parameters set in this method.Sample interval (sec) = samplePerCall/(sampleRate × channel). Ensure that the sample interval ≥ 0.01 (s). The SDK triggers the callback according to the sampling interval.
    • -
    -
    +
    +

    The SDK calculates the sampling interval based on the samplesPerCall, sampleRate and channel parameters set in this method.Sample interval (sec) = samplePerCall/(sampleRate × channel). Ensure that the sample interval ≥ 0.01 (s). The SDK triggers the callback according to the sampling interval.

    +
    +
    + Call timing +

    Call this method before joining a channel.

    +
    +
    + Restrictions +

    None.

    +
    +
    Parameters - + sampleRate - The sample rate returned in the callback, which can be set as 8000, 16000, 32000, 44100, or 48000 Hz. - The sample rate returned in the SDK, which can be set as 8000, 16000, 32000, 44100, or 48000 Hz. + The sample rate returned in the callback, which can be set as 8000, 16000, 32000, 44100, or 48000 Hz. - + channel - -

    The number of channels returned in the callback:

      -
    • 1: Mono.
    • -
    • 2: Stereo.
    • -

    -
    - -

    The number of channels returned by the SDK. You can set the value as 1 or 2:

      + The number of audio channels. You can set the value as 1 or 2.
      • 1: Mono.
      • 2: Stereo.
      • -

      +
    - + mode -

    The use mode of the audio frame. See .

    +

    The use mode of the audio frame. See .

    - The use mode of the returned data from the SDK. See . - + samplesPerCall - The number of data samples returned in the callback, such as 1024 for the Media Push. - The number of data samples returned in the SDK, such as 1024 for the Media Push. + The number of data samples, such as 1024 for the Media Push.

    @@ -99,4 +92,4 @@
  • < 0: Failure. See for details and resolution suggestions.
  • - + \ No newline at end of file diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setremotedefaultvideostreamtype.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setremotedefaultvideostreamtype.dita index b29fb6cd95e..139e21a3edd 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setremotedefaultvideostreamtype.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setremotedefaultvideostreamtype.dita @@ -25,23 +25,32 @@ Future<void> setRemoteDefaultVideoStreamType(VideoStreamType streamType);

    -
    - Details +
    +
    + +
    Deprecated:
    +
    This method is deprecated as of v4.4.0. Use instead.
    +
    +

    - -

      -
    • Call this method before joining a channel. The SDK does not support changing the default subscribed video stream type after joining a channel.
    • -
    • If you call both this method and , the setting of takes effect.
    • -
    -
    - Parameters +
    +
    + Call timing +

    Call this method before joining a channel. The SDK does not support changing the default subscribed video stream type after joining a channel.

    +
    +
    + Restrictions +

    If you call both this method and , the setting of takes effect.

    +
    +
    + Parameters streamType

    The default video-stream type. See .

    -

    The default video-stream type:

      +

      The default video-stream type:

      • (0): High-quality stream, that is, a high-resolution and high-bitrate video stream.
      • (1): Low-quality stream, that is, a low-resolution and low-bitrate video stream.

      diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setremotedefaultvideostreamtype2.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setremotedefaultvideostreamtype2.dita new file mode 100644 index 00000000000..1bb407e444d --- /dev/null +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setremotedefaultvideostreamtype2.dita @@ -0,0 +1,45 @@ + + + + <ph keyref="setRemoteDefaultVideoStreamType2" /> + Sets the default video stream type to subscribe to. + + + + + + + + +
      +

      + public abstract int setRemoteDefaultVideoStreamType(Constants.VideoStreamType streamType); +

      +
      +
      + Details +
      + +
      Since
      +
      v4.4.0
      +
      +
      +

      +

      +

      +
      + Parameters + + + + + +
      +
      + <ph keyref="return-section-title"/> +
        +
      • 0: Success.
      • +
      • < 0: Failure. See for details and resolution suggestions.
      • +
      +
      +
      \ No newline at end of file diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setremoterendermode.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setremoterendermode.dita index 252f00b6093..3a5e84acb0a 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setremoterendermode.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setremoterendermode.dita @@ -45,7 +45,7 @@ renderMode

      The rendering mode of the remote user view. For details, see .

      -

      The rendering mode of the remote user view.

        +

        The rendering mode of the remote user view.

        • (1): Hidden mode. Uniformly scale the video until it fills the visible boundaries (cropped). One dimension of the video may have clipped contents.
        • (2): Fit mode. Uniformly scale the video until one of its dimension fits the boundary (zoomed to fit). Areas that are not filled due to the disparity in the aspect ratio are filled with black.

        diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setremoterendermode2.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setremoterendermode2.dita index fe054431ec2..947baa2f84c 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setremoterendermode2.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setremoterendermode2.dita @@ -59,7 +59,7 @@ mode

        The rendering mode of the remote user view. For details, see .

        -

        The rendering mode of the remote user view.

          +

          The rendering mode of the remote user view.

          @@ -69,7 +69,7 @@ mirror

          The mirror mode of the remote user view. See .

          -

          The mirror mode of the remote user view.

            +

            The mirror mode of the remote user view.

            diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setremotesubscribefallbackoption.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setremotesubscribefallbackoption.dita index ffda891b0da..ba518b1a82b 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setremotesubscribefallbackoption.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setremotesubscribefallbackoption.dita @@ -29,14 +29,20 @@
    Details -

    An unstable network affects the audio and video quality in a video call or interactive live video streaming. If option is set as or , the SDK automatically switches the video from a high-quality stream to a low-quality stream or disables the video when the downlink network conditions cannot support both audio and video to guarantee the quality of the audio. Meanwhile, the SDK continuously monitors network quality and resumes subscribing to audio and video streams when the network quality improves.

    -

    When the subscribed video stream falls back to an audio-only stream, or recovers from an audio-only stream to an audio-video stream, the SDK triggers the callback.

    +
    + +
    Deprecated:
    +
    This method is deprecated as of v4.4.0. Use instead.
    +
    +
    +

    An unstable network affects the audio and video quality in a video call or interactive live video streaming. If option is set as or , the SDK automatically switches the video from a high-quality stream to a low-quality stream or disables the video when the downlink network conditions cannot support both audio and video to guarantee the quality of the audio. Meanwhile, the SDK continuously monitors network quality and resumes subscribing to audio and video streams when the network quality improves.

    +

    When the subscribed video stream falls back to an audio-only stream, or recovers from an audio-only stream to an audio-video stream, the SDK triggers the callback.

    Parameters option - Fallback options for the subscribed stream. See .
      + Fallback options for the subscribed stream. See .
      • (0): No fallback processing is performed on audio and video streams, and the quality of the audio and video streams cannot be guaranteed.
      • (1): (Default) Under poor downlink network conditions, the remote video stream, to which you subscribe, falls back to the low-quality (low resolution and low bitrate) video stream.
      • (2): When the network conditions are poor, try to receive the low-quality video stream first. If the video cannot be displayed due to extremely poor network environment, then fall back to receiving audio-only stream.
      • diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setremotesubscribefallbackoption2.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setremotesubscribefallbackoption2.dita new file mode 100644 index 00000000000..c24f3a0a571 --- /dev/null +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setremotesubscribefallbackoption2.dita @@ -0,0 +1,45 @@ + + + + <ph keyref="setRemoteSubscribeFallbackOption2" /> + Sets the fallback option for the subscribed video stream based on the network conditions. + + + + + + + + +
        +

        + public abstract int setRemoteSubscribeFallbackOption(Constants.StreamFallbackOptions option); +

        +
        +
        + Details +
        + +
        Since
        +
        v4.4.0
        +
        +
        +

        +

        +

        +
        + Parameters + + + option + Fallback options for the subscribed stream. See . + +
        +
        + <ph keyref="return-section-title"/> +
          +
        • 0: Success.
        • +
        • < 0: Failure. See for details and resolution suggestions.
        • +
        +
        +
        \ No newline at end of file diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setremoteuserpriority.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setremoteuserpriority.dita index c12d6ccf5c2..54523c60202 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setremoteuserpriority.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setremoteuserpriority.dita @@ -28,7 +28,7 @@
        • The SDK supports setting only one user as high priority.
        • -
        • Ensure that you call this method before joining a channel.
        • +
        • Call this method before joining a channel.
    Parameters @@ -40,7 +40,7 @@ userPriority -

    The priority of the remote user. See .

      +

      The priority of the remote user. See .

      • : The user's priority is high.
      • : (Default) The user's priority is normal.

      diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setremotevideostreamtype.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setremotevideostreamtype.dita index 1b095943dc3..dc580adcf78 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setremotevideostreamtype.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setremotevideostreamtype.dita @@ -35,13 +35,19 @@
    Details +
    + +
    Deprecated:
    +
    This method is deprecated as of v4.4.0. Use instead.
    +
    +

    The SDK defaults to enabling low-quality video stream adaptive mode () on the sending end, which means the sender does not actively send low-quality video stream. The receiver with the role of the host can initiate a low-quality video stream request by calling this method, and upon receiving the request, the sending end automatically starts sending the low-quality video stream.

    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.

    -
      +
      • You can call this method either before or after joining a channel.
      • If the publisher has already called and set mode to (never send low-quality video stream), calling this method will not take effect, you should call again on the sending end and adjust the settings.
      • -
      • Calling this method on the receiving end of the audience role will not take effect.
      • -
      • If you call both and , the settings in take effect.
    +
  • Calling this method on the receiving end of the audience role will not take effect.
  • +
  • If you call both this method and , the setting of this method takes effect.
  • Parameters @@ -53,7 +59,7 @@ streamType

    The video stream type, see .

    -

    The video stream type:

      +

      The video stream type:

      • 0: High-quality video stream.
      • 1: Low-quality video stream.

      diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setremotevideostreamtype2.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setremotevideostreamtype2.dita new file mode 100644 index 00000000000..ed0a30e61a8 --- /dev/null +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setremotevideostreamtype2.dita @@ -0,0 +1,49 @@ + + + + <ph keyref="setRemoteVideoStreamType2" /> + Sets the video stream type to subscribe to. + + + + + + + + +
      +

      + public abstract int setRemoteVideoStreamType(int uid, Constants.VideoStreamType streamType); +

      +
      +
      + Details +
      + +
      Since
      +
      v4.4.0
      +
      +
      +

      +

      +

      +
      + Parameters + + + + + + + streamType + The video stream type, see . + +
      +
      + <ph keyref="return-section-title"/> +
        +
      • 0: Success.
      • +
      • < 0: Failure. See for details and resolution suggestions.
      • +
      +
      +
      \ No newline at end of file diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setrouteincommunicationmode.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setrouteincommunicationmode.dita index 315675ebef8..b0333878f70 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setrouteincommunicationmode.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setrouteincommunicationmode.dita @@ -31,7 +31,7 @@

      This method is used to switch the audio route from Bluetooth headphones to earpiece, wired headphones or speakers in communication audio mode (). After the method is called successfully, the SDK will trigger the callback to report the modified route.

      - Using this method and the method at the same time may cause conflicts. Agora recommends that you use the method alone. + Using this method and the method at the same time may cause conflicts. Agora recommends that you use the method alone.
      • This method is for Android only.
      • Using this method and the method at the same time may cause conflicts. Agora recommends that you use the method alone.
    diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setuplocalvideo.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setuplocalvideo.dita index f100bd66917..e032fe6d364 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setuplocalvideo.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setuplocalvideo.dita @@ -25,23 +25,33 @@ Future<void> setupLocalVideo(VideoCanvas canvas);

    -
    - Details -

    This method initializes the video view of a local stream on the local device. It affects only the video view that the local user sees, not the published local video stream. Call this method to bind the local video stream to a video view (view) and to set the rendering and mirror modes of the video view.

    -

    After initialization, call this method to set the local video and then join the channel. The local video still binds to the view after you leave the channel. To unbind the local video from the view, set the view parameter as .

    -

    In real-time interactive scenarios, if you need to simultaneously view multiple preview frames in the local video preview, and each frame is at a different observation position along the video link, you can repeatedly call this method to set different views and set different observation positions for each view. For example, by setting the video source to the camera and then configuring two views with position setting to and , you can simultaneously preview the raw, unprocessed video frame and the video frame that has undergone preprocessing (image enhancement effects, virtual background, watermark) in the local video preview.

    +
    +

    This method initializes the video view of a local stream on the local device. It only affects the video seen by the local user and does not impact the publishing of the local video. Call this method to bind the local video stream to a video view (view) and to set the rendering and mirror modes of the video view.

    +

    The binding remains valid after leaving the channel. To stop rendering or unbind the local video from the view, set view as .

      +
    • If you need to implement native window rendering, use this method; if you only need to render video images in your Unity project, use the methods in the class instead.
    • -
    • You can call this method either before or after joining a channel.
    • -
    • To update the rendering or mirror mode of the local video view during a call, use the method.
    • -
    • If you want to stop rendering the view, set view to and then call this method again to stop rendering and clear the rendering cache.
    • +
    • To update only the rendering or mirror mode of the local video view during a call, call instead.
    -
    - Parameters +
    + Applicable scenarios +

    After initialization, call this method to set the local video and then join the channel.

    +

    In real-time interactive scenarios, if you need to simultaneously view multiple preview frames in the local video preview, and each frame is at a different observation position along the video link, you can repeatedly call this method to set different views and set different observation positions for each view. For example, by setting the video source to the camera and then configuring two views with position setting to and , you can simultaneously preview the raw, unprocessed video frame and the video frame that has undergone preprocessing (image enhancement effects, virtual background, watermark) in the local video preview.

    +
    +
    + Call timing +

    You can call this method either before or after joining a channel.

    +
    +
    + Restrictions +

    None.

    +
    +
    + Parameters - canvas + canvas local The local video view and settings. See . diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setupremotevideo.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setupremotevideo.dita index 3ac7275550a..13882574a6e 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setupremotevideo.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setupremotevideo.dita @@ -34,10 +34,11 @@

    In the scenarios of custom layout for mixed videos on the mobile end, you can call this method and set a separate view for rendering each sub-video stream of the mixed video stream.

      +
    • In Flutter, you don't need to call this method. Use instead to render local and remote views.
    • If you need to implement native window rendering, use this method; if you only need to render video images in your Unity project, use the methods in the class instead.
    • To update the rendering or mirror mode of the remote video view during a call, use the method.
    • -
    • If you use the Agora recording function, the recording client joins the channel as a placeholder client, triggering the callback. Do not bind the placeholder client to the app view because the placeholder client does not send any video streams. If your app does not recognize the placeholder client, bind the remote user to the view when the SDK triggers the callback.
    • -
    • If you want to stop rendering the view, set view to and then call this method again to stop rendering and clear the rendering cache.
    • +
    • If you use the Agora recording function, the recording client joins the channel as a placeholder client, triggering the callback. Do not bind the placeholder client to the app view because the placeholder client does not send any video streams. If your app does not recognize the placeholder client, bind the remote user to the view when the SDK triggers the callback.
    • +
    • If you want to stop rendering the view, set view to and then call this method again to stop rendering and clear the rendering cache.
    Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setvideoscenario.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setvideoscenario.dita index 060e3880c2a..50eed955787 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setvideoscenario.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setvideoscenario.dita @@ -33,7 +33,7 @@

    After successfully calling this method, the SDK will automatically enable the best practice strategies and adjust key performance metrics based on the specified scenario, to optimize the video experience.

    - Ensure that you call this method before joining a channel. + Call this method before joining a channel.
    Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setvoicebeautifierparameters.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setvoicebeautifierparameters.dita index c357c10610f..67696efe886 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setvoicebeautifierparameters.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setvoicebeautifierparameters.dita @@ -50,6 +50,7 @@
  • +
  • This method relies on the voice beautifier dynamic library . If the dynamic library is deleted, the function cannot be enabled normally.
  • Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setvoicebeautifierpreset.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setvoicebeautifierpreset.dita index 9ea4434bac4..60de4578621 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setvoicebeautifierpreset.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setvoicebeautifierpreset.dita @@ -25,38 +25,44 @@ Future<void> setVoiceBeautifierPreset(VoiceBeautifierPreset preset);

    -
    - Details -

    Call this method to set a preset voice beautifier effect for the local user who sends an audio stream. After setting a voice beautifier effect, all users in the channel can hear the effect. You can set different voice beautifier effects for different scenarios. For the applicable scenarios of each voice beautifier effect, refer to Set the Voice Effect.

    -

    To achieve better vocal effects, it is recommended that you call the following APIs before calling this method:

      -
    • Call to set the audio scenario to high-quality audio scenario, namely (3).
    • -
    • Call to set the profile parameter to (4) or (5).
    • -
    -

    - +
    +

    Call this method to set a preset voice beautifier effect for the local user who sends an audio stream. After setting a voice beautifier effect, all users in the channel can hear the effect. You can set different voice beautifier effects for different scenarios. The applicable scenarios for each voice-changing effect can be referred to .

    +
    +
    + Call timing +

    This method can be called either before or after joining the channel.

    +
    +
    + Restrictions
      -
    • You can call this method either before or after joining a channel.
    • -
    • Do not set the profile parameter in to (1) or (6), or the method does not take effect.
    • -
    • This method has the best effect on human voice processing, and Agora does not recommend calling this method to process audio data containing music.
    • -
    • After calling , Agora does not recommend calling the following methods, otherwise the effect set by will be overwritten:
        -
      • -
      • -
      • -
      • -
      • -
      • -
      • -
    • -
    • This method relies on the voice beautifier dynamic library . If the dynamic library is deleted, the function cannot be enabled normally.
    • -
    -
    +
  • To achieve better vocal effects, it is recommended that you call the following APIs before calling this method:

      +
    • Call to set the audio scenario to high-quality audio scenario, namely (3).
    • +
    • Call to set the profile parameter to (4) or (5).
    • +
    +

    +
  • +
  • Do not set the profile parameter in to (1) or (6), or the method does not take effect.
  • +
  • This method has the best effect on human voice processing, and Agora does not recommend calling this method to process audio data containing music.
  • +
  • After calling , Agora does not recommend calling the following methods, otherwise the effect set by will be overwritten:
      +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
  • +
  • This method relies on the voice beautifier dynamic library . If the dynamic library is deleted, the function cannot be enabled normally.
  • + +
    +
    Parameters preset

    The preset voice beautifier effect options: .

    -

    The preset voice beautifier effect options.

      +

      The preset voice beautifier effect options.

      • : Turn off voice beautifier effects and use the original voice.
      • : A more magnetic voice (Male only).
      • : A fresher voice (Female only).
      • diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_setvoiceconversionpreset.dita b/en-US/dita/RTC-NG/API/api_irtcengine_setvoiceconversionpreset.dita index e226ab454fc..546fa19be07 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_setvoiceconversionpreset.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_setvoiceconversionpreset.dita @@ -54,7 +54,7 @@ preset

        The options for the preset voice beautifier effects: .

        -

        The options for SDK preset voice conversion effects.

          +

          The options for SDK preset voice conversion effects.

          • : Turn off voice conversion effects and use the original voice.
          • : A gender-neutral voice. To avoid audio distortion, ensure that you use this enumerator to process a female-sounding voice.
          • : A sweet voice. To avoid audio distortion, ensure that you use this enumerator to process a female-sounding voice.
          • diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_startaudiomixing.dita b/en-US/dita/RTC-NG/API/api_irtcengine_startaudiomixing.dita index 38fcedc91dd..24c3a9f95ea 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_startaudiomixing.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_startaudiomixing.dita @@ -34,64 +34,39 @@ int startPos = 0});

    -
    - Details -
    - -
    Deprecated:
    -
    Use instead.
    -
    -
    -

    This method mixes the specified local or online audio file with the audio from the microphone, or replaces the microphone's audio with the specified local or remote audio file. A successful method call triggers the () callback. When the audio mixing file playback finishes, the SDK triggers the () callback on the local client.

    -

    This method supports playing URI files starting with content://.

    - -
      -
    • You can call this method either before or after joining a channel. If you need to call multiple times, ensure that the time interval between calling this method is more than 500 ms.
    • -
    • If the local music file does not exist, the SDK does not support the file format, or the the SDK cannot access the music file URL, the SDK reports 701.
    • -
    • On Android, there are following considerations:
        -
      • To use this method, ensure that the Android device is v4.2 or later, and the API version is v16 or later.
      • -
      • If you need to play an online music file, Agora does not recommend using the redirected URL address. Some Android devices may fail to open a redirected URL address.
      • -
      • If you call this method on an emulator, ensure that the music file is in the /sdcard/ directory and the format is MP3.
      • -
    • -
    -
    +
    +
    + +
    Deprecated:
    +
    Use instead.
    +
    +
    +

    For the audio file formats supported by this method, see What formats of audio files does the Agora RTC SDK support. If the local music file does not exist, the SDK does not support the file format, or the the SDK cannot access the music file URL, the SDK reports (701).

    +

    This method supports playing URI files starting with content://. For the audio file formats supported by this method, see What formats of audio files does the Agora RTC SDK support. If the local music file does not exist, the SDK does not support the file format, or the the SDK cannot access the music file URL, the SDK reports (701).

    +
    +
    +
    +
    +
    + +
    Parameters - - - + + + - - filePath - -

    - + + + - - loopback - -

    Whether to only play music files on the local client:

      -
    • : Only play music files on the local client so that only the local user can hear the music.
    • -
    • : Publish music files to remote clients so that both the local user and remote users can hear the music.
    • -

    -
    -
    - - cycle - -

    The number of times the music file plays.

      -
    • ≥ 0: The number of playback times. For example, 0 means that the SDK does not play the music file while 1 means that the SDK plays once.
    • -
    • -1: Play the audio file in an infinite loop.
    • -

    -
    + + +
    -
    - <ph keyref="return-section-title"/> -

    When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

    -
      -
    • 0: Success.
    • -
    • < 0: Failure. See for details and resolution suggestions.
    • -
    +
    +
    diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_startaudiomixing2.dita b/en-US/dita/RTC-NG/API/api_irtcengine_startaudiomixing2.dita index 52a295f493b..986f848d8bd 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_startaudiomixing2.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_startaudiomixing2.dita @@ -39,30 +39,37 @@ int startPos = 0});

    -
    - Details -

    This method mixes the specified local or online audio file with the audio from the microphone, or replaces the microphone's audio with the specified local or remote audio file. A successful method call triggers the () callback. When the audio mixing file playback finishes, the SDK triggers the () callback on the local client.

    -

    This method supports playing URI files starting with content://.

    - -
      -
    • You can call this method either before or after joining a channel. If you need to call multiple times, ensure that the time interval between calling this method is more than 500 ms.
    • -
    • If the local music file does not exist, the SDK does not support the file format, or the the SDK cannot access the music file URL, the SDK reports 701.
    • -
    • For the audio file formats supported by this method, see What formats of audio files does the Agora RTC SDK support.
    • -
    • -
    • On Android, there are following considerations:
        -
      • To use this method, ensure that the Android device is v4.2 or later, and the API version is v16 or later.
      • -
      • If you need to play an online music file, Agora does not recommend using the redirected URL address. Some Android devices may fail to open a redirected URL address.
      • -
      • If you call this method on an emulator, ensure that the music file is in the /sdcard/ directory and the format is MP3.
      • -
    • -
    -
    +
    +

    For the audio file formats supported by this method, see What formats of audio files does the Agora RTC SDK support. If the local music file does not exist, the SDK does not support the file format, or the the SDK cannot access the music file URL, the SDK reports (701).

    +

    This method supports playing URI files starting with content://. For the audio file formats supported by this method, see What formats of audio files does the Agora RTC SDK support. If the local music file does not exist, the SDK does not support the file format, or the the SDK cannot access the music file URL, the SDK reports (701).

    +
    +
    + Call timing +

    You can call this method either before or after joining a channel.

    +
    +
    + Restrictions +
      +
    • If you need to call this method multiple times, ensure that the time interval between calling this method is more than 500 ms.
    • +
    • On Android, there are following considerations:
        +
      • To use this method, ensure that the Android device is v4.2 or later, and the API version is v16 or later.
      • +
      • If you need to play an online music file, Agora does not recommend using the redirected URL address. Some Android devices may fail to open a redirected URL address.
      • +
      • If you call this method on an emulator, ensure that the music file is in the /sdcard/ directory and the format is MP3.
      • +
    • +
    +
    + +
    Parameters - + loopback

    Whether to only play music files on the local client:

      @@ -71,13 +78,13 @@

    - + cycle

    The number of times the music file plays.

      -
    • ≥ 0: The number of playback times. For example, 0 means that the SDK does not play the music file while 1 means that the SDK plays once.
    • -
    • -1: Play the audio file in an infinite loop.
    • -

    +
  • >0: The number of times for playback. For example, 1 represents playing 1 time.
  • +
  • -1: Play the audio file in an infinite loop.
  • +

    diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_startaudiorecording.dita b/en-US/dita/RTC-NG/API/api_irtcengine_startaudiorecording.dita index 8c324cad8f7..c5a8c3e9ef5 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_startaudiorecording.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_startaudiorecording.dita @@ -42,7 +42,7 @@ quality - Audio recording quality. See .
      + Audio recording quality. See .
      • 0: Low quality. The sample rate is 32 kHz, and the file size is around 1.2 MB after 10 minutes of recording.
      • 1: Medium quality. The sample rate is 32 kHz, and the file size is around 2 MB after 10 minutes of recording.
      • 2: High quality. The sample rate is 32 kHz, and the file size is around 3.75 MB after 10 minutes of recording.
      • diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_startaudiorecording2.dita b/en-US/dita/RTC-NG/API/api_irtcengine_startaudiorecording2.dita index ec715a89dc8..aaf4539e0bb 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_startaudiorecording2.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_startaudiorecording2.dita @@ -27,7 +27,7 @@
    Details -

    The Agora SDK allows recording during a call. After successfully calling this method, you can record the audio of all the users in the channel and get an audio recording file. Supported formats of the recording file are as follows:

      +

      The Agora SDK allows recording during a call. After successfully calling this method, you can record the audio of all the users in the channel and get an audio recording file. Supported formats of audio files are as follows:

      • .wav: Large file size with high fidelity.
      • .aac: Small file size with low fidelity.

      diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_startaudiorecording3.dita b/en-US/dita/RTC-NG/API/api_irtcengine_startaudiorecording3.dita index 836d22bba6b..d0fa944d174 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_startaudiorecording3.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_startaudiorecording3.dita @@ -25,15 +25,22 @@ Future<void> startAudioRecording(AudioRecordingConfiguration config);

    -
    - Details -

    The Agora SDK allows recording during a call. After successfully calling this method, you can record the audio of users in the channel and get an audio recording file. Supported formats of the recording file are as follows:

      +
      +

      The Agora SDK allows recording during a call. After successfully calling this method, you can record the audio of users in the channel and get an audio recording file. Supported formats of audio files are as follows:

      • WAV: High-fidelity files with typically larger file sizes. For example, if the sample rate is 32,000 Hz, the file size for 10-minute recording is approximately 73 MB.
      • AAC: Low-fidelity files with typically smaller file sizes. For example, if the sample rate is 32,000 Hz and the recording quality is , the file size for 10-minute recording is approximately 2 MB.

      Once the user leaves the channel, the recording automatically stops.

      - Call this method after joining a channel.
      -
      +
      +
      + Call timing +

      Call this method after joining a channel.

      +
      +
      + Restrictions +

      None.

      +
      +
      Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_startdirectcdnstreaming.dita b/en-US/dita/RTC-NG/API/api_irtcengine_startdirectcdnstreaming.dita index 10607996ff5..3db7a44e1d1 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_startdirectcdnstreaming.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_startdirectcdnstreaming.dita @@ -43,13 +43,13 @@

      Agora does not support setting the value of publishCameraTrack and publishCustomVideoTrack as , or the value of publishMicrophoneTrack and publishCustomAudioTrack as at the same time. When choosing media setting options (), you can refer to the following examples:

      If you want to push audio and video streams captured by the host from a custom source, the media setting options should be set as follows:

        -
      • publishCustomAudioTrack is set as and call the method
      • +
      • publishCustomAudioTrack is set as and call the method
      • publishCustomAudioTrack is set as and call the or method
      • publishCustomVideoTrack is set as and call the method
      • publishCameraTrack is set as (the default value)
      • publishMicrophoneTrack is set as (the default value)
      -

      As of v4.2.0, Agora SDK supports audio-only live streaming. You can set publishCustomAudioTrack or publishMicrophoneTrack in as and call to push audio streams. As of v4.2.0, Agora SDK supports audio-only live streaming. You can set publishCustomAudioTrack or publishMicrophoneTrack in as and call or to push audio streams.Agora only supports pushing one audio and video streams or one audio streams to CDN.

      +

      As of v4.2.0, Agora SDK supports audio-only live streaming. You can set publishCustomAudioTrack or publishMicrophoneTrack in as and call to push audio streams. As of v4.2.0, Agora SDK supports audio-only live streaming. You can set publishCustomAudioTrack or publishMicrophoneTrack in as and call or to push audio streams.Agora only supports pushing one audio and video streams or one audio streams to CDN.

      Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_startechotest3.dita b/en-US/dita/RTC-NG/API/api_irtcengine_startechotest3.dita index e74adcd7f87..65144d84a56 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_startechotest3.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_startechotest3.dita @@ -25,17 +25,24 @@ Future<void> startEchoTest(EchoTestConfiguration config);

      -
      - Details +

      To test whether the user's local sending and receiving streams are normal, you can call this method to perform an audio and video call loop test, which tests whether the audio and video devices and the user's upstream and downstream networks are working properly.

      -

      After starting the test, the user needs to make a sound or face the camera. The audio or video is output after about two seconds. If the audio playback is normal, the audio device and the user's upstream and downstream networks are working properly; if the video playback is normal, the video device and the user's upstream and downstream networks are working properly. -

        -
      • You can call this method either before or after joining a channel. When calling in a channel, make sure that no audio or video stream is being published.
      • -
      • After calling this method, call to end the test; otherwise, the user cannot perform the next audio and video call loop test and cannot join the channel.
      • -
      • In live streaming scenarios, this method only applies to hosts.
      • -

      +

      After starting the test, the user needs to make a sound or face the camera. The audio or video is output after about two seconds. If the audio playback is normal, the audio device and the user's upstream and downstream networks are working properly; if the video playback is normal, the video device and the user's upstream and downstream networks are working properly.

      -
      +
      + Call timing +

      You can call this method either before or after joining a channel.

      +
      +
      + Restrictions +
        +
      • When calling in a channel, make sure that no audio or video stream is being published.
      • +
      • After calling this method, call to end the test; otherwise, the user cannot perform the next audio and video call loop test and cannot join the channel.
      • +
      • In live streaming scenarios, this method only applies to hosts.
      • +
      +

      +

      +
      Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_startlastmileprobetest.dita b/en-US/dita/RTC-NG/API/api_irtcengine_startlastmileprobetest.dita index df8fe831342..8c24b510eb8 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_startlastmileprobetest.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_startlastmileprobetest.dita @@ -25,23 +25,26 @@ Future<void> startLastmileProbeTest(LastmileProbeConfig config);

      -
      - Details +

      This method starts the last-mile network probe test before joining a channel to get the uplink and downlink last mile network statistics, including the bandwidth, packet loss, jitter, and round-trip time (RTT).

      +
      +
      + Call timing +

      Do not call other methods before receiving the and callbacks. Otherwise, the callbacks may be interrupted.

      +
      +
      + Restrictions +

      None.

      +
      + -
      +
      Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_startorupdatechannelmediarelay.dita b/en-US/dita/RTC-NG/API/api_irtcengine_startorupdatechannelmediarelay.dita index f04df835f49..fc8c50418ce 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_startorupdatechannelmediarelay.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_startorupdatechannelmediarelay.dita @@ -54,7 +54,7 @@ Parameters - channelMediaRelayConfiguration + channelMediaRelayConfiguration config configuration The configuration of the media stream relay. See . @@ -68,7 +68,6 @@
    • < 0: Failure. See for details and resolution suggestions.
      • -1: A general error occurs (no specified reason).
      • -2: The parameter is invalid.
      • -
      • -7: The method call was rejected. It may be because the SDK has not been initialized successfully, or the user role is not a host.
      • -8: Internal state error. Probably because the user is not a broadcaster.
    diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_startscreencapture.dita b/en-US/dita/RTC-NG/API/api_irtcengine_startscreencapture.dita index 728a915a275..529e9249c9b 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_startscreencapture.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_startscreencapture.dita @@ -59,11 +59,11 @@
  • Due to performance limitations, screen sharing is not supported on Android TV.
  • Due to system limitations, if you are using Huawei phones, do not adjust the video encoding resolution of the screen sharing stream during the screen sharing, or you could experience crashes.
  • Due to system limitations, some Xiaomi devices do not support capturing system audio during screen sharing.
  • -
  • To avoid system audio capture failure when sharing screen, Agora recommends that you set the audio application scenario to by using the method before joining the channel.
  • +
  • To avoid system audio capture failure when sharing screen, Agora recommends that you set the audio application scenario to by using the method before joining the channel.
  • @@ -71,15 +71,15 @@ parameters - screenCaptureParameters + screenCaptureParameters captureParams - The screen sharing encoding parameters. The default video dimension is 1920 x 1080, that is, 2,073,600 pixels. Agora uses the value of this parameter to calculate the charges. See . + The screen sharing encoding parameters. The default video dimension is 1920 x 1080, that is, 2,073,600 pixels. Agora uses the value of this parameter to calculate the charges. See .
    <ph keyref="return-section-title"/>

    When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

    -
      +
      • 0: Success.
      • < 0: Failure. See for details and resolution suggestions.
        • -2 (iOS platform): Empty parameter.
        • diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_stopalleffects.dita b/en-US/dita/RTC-NG/API/api_irtcengine_stopalleffects.dita index e985ef82c75..c15ee1fb18f 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_stopalleffects.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_stopalleffects.dita @@ -27,6 +27,15 @@ Future<void> stopAllEffects();

    +
    +

    When you no longer need to play the audio effect, you can call this method to stop the playback. If you only need to pause the playback, call .

    +
    +
    +
    +
    + Restrictions +

    None.

    +
    <ph keyref="return-section-title"/>

    When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

    diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_stopaudiomixing.dita b/en-US/dita/RTC-NG/API/api_irtcengine_stopaudiomixing.dita index dc4a53eeec2..b973d5f8947 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_stopaudiomixing.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_stopaudiomixing.dita @@ -2,7 +2,7 @@ <ph keyref="stopAudioMixing" /> - Stops playing and mixing the music file. + Stops playing the music file. @@ -25,9 +25,16 @@ Future<void> stopAudioMixing();

    -
    - Details -

    This method stops the audio mixing. Call this method when you are in a channel.

    +
    +

    After calling to play a music file, you can call this method to stop the playing. If you only need to pause the playback, call .

    +
    +
    + Call timing +

    Call this method after joining a channel.

    +
    +
    + Restrictions +

    None.

    <ph keyref="return-section-title"/> diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_stopaudiorecording.dita b/en-US/dita/RTC-NG/API/api_irtcengine_stopaudiorecording.dita index 81e35e8d69b..1148b955e3b 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_stopaudiorecording.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_stopaudiorecording.dita @@ -25,6 +25,7 @@ Future<void> stopAudioRecording();

    +
    <ph keyref="return-section-title"/>

    When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

    diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_stopchannelmediarelay.dita b/en-US/dita/RTC-NG/API/api_irtcengine_stopchannelmediarelay.dita index 830433f36ff..4824aa5f6d1 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_stopchannelmediarelay.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_stopchannelmediarelay.dita @@ -34,7 +34,8 @@

    When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

    • 0: Success.
    • -
    • < 0: Failure. See for details and resolution suggestions.
    • +
    • < 0: Failure. See for details and resolution suggestions.
      • -5: The method call was rejected. There is no ongoing channel media relay.
      +
    \ No newline at end of file diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_stopechotest.dita b/en-US/dita/RTC-NG/API/api_irtcengine_stopechotest.dita index ed97861b780..d4c8f4ccd73 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_stopechotest.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_stopechotest.dita @@ -25,6 +25,9 @@ Future<void> stopEchoTest();

    +
    +

    After calling , you must call this method to end the test; otherwise, the user cannot perform the next audio and video call loop test and cannot join the channel.

    +
    <ph keyref="return-section-title"/>

    When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

    diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_stopeffect.dita b/en-US/dita/RTC-NG/API/api_irtcengine_stopeffect.dita index 71ea8748faf..5ff113331f3 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_stopeffect.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_stopeffect.dita @@ -27,7 +27,19 @@ Future<void> stopEffect(int soundId);

    -
    +
    +

    When you no longer need to play the audio effect, you can call this method to stop the playback. If you only need to pause the playback, call .

    +
    +
    + Call timing +

    Call this method after .

    +

    Call this method after the , or .

    +
    +
    + Restrictions +

    None.

    +
    +
    Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_switchcamera.dita b/en-US/dita/RTC-NG/API/api_irtcengine_switchcamera.dita index 108da23528b..2ecda369318 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_switchcamera.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_switchcamera.dita @@ -32,7 +32,7 @@
    • This method is for Android and iOS only.
    • This method must be called after the camera is successfully enabled, that is, after the SDK triggers the callback and returns the local video state as (1).
    • This method only switches the camera for the video stream captured by the first camera, that is, the video source set to (0) when calling .
    • -
    • This method and are both used to switch cameras. The difference is that switches to a specific camera by specifying the camera ID, while this method switches the direction of the camera (front or rear).
    • +
    • This method and are both used to switch cameras. The difference is that switches to a specific camera by specifying the camera ID, while this method switches the direction of the camera (front or rear).
    diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_updatechannelmediaoptions.dita b/en-US/dita/RTC-NG/API/api_irtcengine_updatechannelmediaoptions.dita index a1b3f055429..12761850bce 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_updatechannelmediaoptions.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_updatechannelmediaoptions.dita @@ -40,9 +40,9 @@
    • 0: Success.
    • < 0: Failure. See for details and resolution suggestions.
        -
      • -2: The value of a member in the structure is invalid. For example, the token or the user ID is invalid. You need to fill in a valid parameter.
      • +
      • -2: The value of a member in is invalid. For example, the token or the user ID is invalid. You need to fill in a valid parameter.
      • -7: The object has not been initialized. You need to initialize the object before calling this method.
      • -
      • -8: The internal state of the object is wrong. The possible reason is that the user is not in the channel. Agora recommends that you use the callback to determine whether the user exists in the channel. If you receive the (1) or (5) state, the user is not in the channel. You need to call to join a channel before calling this method.
      • +
      • -8: The internal state of the object is wrong. The possible reason is that the user is not in the channel. Agora recommends that you use the callback to see whether the user is in the channel. If you receive the (1) or (5) state, the user is not in the channel. You need to call to join a channel before calling this method.
    diff --git a/en-US/dita/RTC-NG/API/api_irtcengine_updatescreencaptureparameters.dita b/en-US/dita/RTC-NG/API/api_irtcengine_updatescreencaptureparameters.dita index 5adb9837910..230154ded6e 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengine_updatescreencaptureparameters.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengine_updatescreencaptureparameters.dita @@ -43,7 +43,7 @@ Parameters - screenCaptureParameters + screenCaptureParameters captureParams The screen sharing encoding parameters. The default video resolution is 1920 × 1080, that is, 2,073,600 pixels. Agora uses the value of this parameter to calculate the charges. See .The video properties of the screen sharing stream only need to be set through this parameter, and are unrelated to . diff --git a/en-US/dita/RTC-NG/API/api_irtcengineex_enablecontentinspectex.dita b/en-US/dita/RTC-NG/API/api_irtcengineex_enablecontentinspectex.dita index e9f656ea7d0..186a25a4996 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengineex_enablecontentinspectex.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengineex_enablecontentinspectex.dita @@ -29,8 +29,7 @@ required ContentInspectConfig config, required RtcConnection connection});

    -
    - Details +
    Since
    @@ -38,9 +37,16 @@

    This method can take screenshots for multiple video streams and upload them. When video screenshot and upload function is enabled, the SDK takes screenshots and uploads videos sent by local users based on the type and frequency of the module you set in . After video screenshot and upload, the Agora server sends the callback notification to your app server in HTTPS requests and sends all screenshots to the third-party cloud storage service.

    - Before calling this method, ensure that you have contacted to activate the video screenshot upload service.
    -
    +
    + Call timing +

    This method can be called either before or after joining the channel.

    +
    +
    + Restrictions +

    Before calling this method, ensure that you have contacted to activate the video screenshot upload service.

    +
    +
    Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengineex_enableencryptionex.dita b/en-US/dita/RTC-NG/API/api_irtcengineex_enableencryptionex.dita index 1d2fd7d6420..3dcc6bda681 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengineex_enableencryptionex.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengineex_enableencryptionex.dita @@ -35,19 +35,20 @@ required bool enabled, required EncryptionConfig config});

    -
    - Details +
    Since
    v4.3.1
    -

    -

    +

    After the user leaves the channel, the SDK automatically disables the built-in encryption. To enable the built-in encryption, call this method before the user joins the channel again.

    -
    - Parameters +
    +
    +
    +
    + Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengineex_getcallidex.dita b/en-US/dita/RTC-NG/API/api_irtcengineex_getcallidex.dita index 46002ecd455..6681483ab55 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengineex_getcallidex.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengineex_getcallidex.dita @@ -23,8 +23,7 @@ abstract getCallIdEx(connection: RtcConnection): string; Future<String> getCallIdEx(RtcConnection connection);

    -
    - Details +
    Since
    @@ -32,9 +31,14 @@

    -

    -
    +
    +
    +
    + Restrictions +

    None.

    +
    +
    Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengineex_leavechannelex2.dita b/en-US/dita/RTC-NG/API/api_irtcengineex_leavechannelex2.dita index c6873de2789..4db7abd1721 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengineex_leavechannelex2.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengineex_leavechannelex2.dita @@ -46,21 +46,21 @@
    - Applicable scenarios -

    -

    + Applicable scenarios +

    +

    Call timing

    Call this method after .

    - Restrictions -

    -

    + Restrictions +

    +

    + Related callbacks +

    +

    Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengineex_muteallremoteaudiostreamsex.dita b/en-US/dita/RTC-NG/API/api_irtcengineex_muteallremoteaudiostreamsex.dita index ddd3b4aea76..69f8f5d5a82 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengineex_muteallremoteaudiostreamsex.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengineex_muteallremoteaudiostreamsex.dita @@ -46,7 +46,7 @@ Parameters - muted + muted mute

    Whether to stop subscribing to the audio streams of all remote users:

      diff --git a/en-US/dita/RTC-NG/API/api_irtcengineex_mutelocalaudiostreamex.dita b/en-US/dita/RTC-NG/API/api_irtcengineex_mutelocalaudiostreamex.dita index 352b6454acc..fb2f63494ad 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengineex_mutelocalaudiostreamex.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengineex_mutelocalaudiostreamex.dita @@ -40,7 +40,7 @@ Parameters - muted + muted mute

      Whether to stop publishing the local audio stream:

        diff --git a/en-US/dita/RTC-NG/API/api_irtcengineex_muteremoteaudiostreamex.dita b/en-US/dita/RTC-NG/API/api_irtcengineex_muteremoteaudiostreamex.dita index e5f6d9463a0..ec81b512940 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengineex_muteremoteaudiostreamex.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengineex_muteremoteaudiostreamex.dita @@ -49,7 +49,7 @@ mute - muted + muted

        Whether to stop receiving the audio stream of the specified user:

          diff --git a/en-US/dita/RTC-NG/API/api_irtcengineex_muteremotevideostreamex.dita b/en-US/dita/RTC-NG/API/api_irtcengineex_muteremotevideostreamex.dita index 400761b8cbb..5e6cfbcd311 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengineex_muteremotevideostreamex.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengineex_muteremotevideostreamex.dita @@ -53,7 +53,7 @@ mute - muted + muted

          Whether to stop receiving the video stream of the specified user:

          • : Stop receiving the video stream of the specified user.
          • diff --git a/en-US/dita/RTC-NG/API/api_irtcengineex_pauseallchannelmediarelayex.dita b/en-US/dita/RTC-NG/API/api_irtcengineex_pauseallchannelmediarelayex.dita index 49be23bfbcd..8c508d81a4b 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengineex_pauseallchannelmediarelayex.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengineex_pauseallchannelmediarelayex.dita @@ -42,7 +42,8 @@

            When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

            • 0: Success.
            • -
            • < 0: Failure. See for details and resolution suggestions.
            • +
            • < 0: Failure. See for details and resolution suggestions.
              • -5: The method call was rejected. There is no ongoing channel media relay.
              +
    diff --git a/en-US/dita/RTC-NG/API/api_irtcengineex_resumeallchannelmediarelayex.dita b/en-US/dita/RTC-NG/API/api_irtcengineex_resumeallchannelmediarelayex.dita index a52227ac564..8cddb1cfcc5 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengineex_resumeallchannelmediarelayex.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengineex_resumeallchannelmediarelayex.dita @@ -43,7 +43,8 @@

    When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

    • 0: Success.
    • -
    • < 0: Failure. See for details and resolution suggestions.
    • +
    • < 0: Failure. See for details and resolution suggestions.
      • -5: The method call was rejected. There is no paused channel media relay.
      +
    diff --git a/en-US/dita/RTC-NG/API/api_irtcengineex_sendstreammessageex.dita b/en-US/dita/RTC-NG/API/api_irtcengineex_sendstreammessageex.dita index 71560b32a84..eea54589bc1 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengineex_sendstreammessageex.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengineex_sendstreammessageex.dita @@ -37,12 +37,8 @@
    Details

    After calling , you can call this method to send data stream messages to all users in the channel.

    -

    The SDK has the following restrictions on this method:

      -
    • Up to 60 packets can be sent per second in a channel with each packet having a maximum size of 1 KB.
    • -
    • Each client can send up to 30 KB of data per second.
    • -
    • Each user can have up to five data streams simultaneously.
    • -

    -

    A successful method call triggers the callback on the remote client, from which the remote user gets the stream message. A failed method call triggers the callback on the remote client.

    +

    +

    • Ensure that you call to create a data channel before calling this method.
    • @@ -56,7 +52,7 @@ The data stream ID. You can get the data stream ID by calling . - message + message data The message to be sent. diff --git a/en-US/dita/RTC-NG/API/api_irtcengineex_setremoterendermodeex.dita b/en-US/dita/RTC-NG/API/api_irtcengineex_setremoterendermodeex.dita index 5061329f9f6..98c6d837749 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengineex_setremoterendermodeex.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengineex_setremoterendermodeex.dita @@ -63,7 +63,7 @@ renderMode

      The video display mode of the remote user. See .

      -

      The video display mode of the remote user:

        +

        The video display mode of the remote user:

        @@ -72,7 +72,7 @@ mirrorMode

        The mirror mode of the remote user view. See .

        -

        The mirror mode of the remote user view:

          +

          The mirror mode of the remote user view:

          diff --git a/en-US/dita/RTC-NG/API/api_irtcengineex_setremotevideostreamtypeex.dita b/en-US/dita/RTC-NG/API/api_irtcengineex_setremotevideostreamtypeex.dita index f046efa8ff7..e6328e85b1a 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengineex_setremotevideostreamtypeex.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengineex_setremotevideostreamtypeex.dita @@ -40,9 +40,15 @@
    Details +
    + +
    Deprecated:
    +
    This method is deprecated as of v4.4.0. Use instead.
    +
    +

    -

      +
      • If the publisher has already called and set mode to (never send low-quality video stream), calling this method will not take effect, you should call again on the sending end and adjust the settings.
      • Calling this method on the receiving end of the audience role will not take effect.
    diff --git a/en-US/dita/RTC-NG/API/api_irtcengineex_setremotevideostreamtypeex2.dita b/en-US/dita/RTC-NG/API/api_irtcengineex_setremotevideostreamtypeex2.dita new file mode 100644 index 00000000000..3e9a37b7af7 --- /dev/null +++ b/en-US/dita/RTC-NG/API/api_irtcengineex_setremotevideostreamtypeex2.dita @@ -0,0 +1,55 @@ + + + + <ph keyref="setRemoteVideoStreamTypeEx2"/> + Sets the video stream type to subscribe to. + + + + + + + + +
    +

    + public abstract int setRemoteVideoStreamTypeEx( + int uid, Constants.VideoStreamType streamType, RtcConnection connection); +

    +
    +
    + Details +
    + +
    Since
    +
    v4.4.0
    +
    +
    +

    +

    + +

    +
    + Parameters + + + + + + + + + + + + + +
    +
    + <ph keyref="return-section-title"/> +
      +
    • 0: Success.
    • +
    • < 0: Failure. See for details and resolution suggestions.
    • +
    +
    +
    diff --git a/en-US/dita/RTC-NG/API/api_irtcengineex_setupremotevideoex.dita b/en-US/dita/RTC-NG/API/api_irtcengineex_setupremotevideoex.dita index 93bfe783da7..a267989eddc 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengineex_setupremotevideoex.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengineex_setupremotevideoex.dita @@ -41,7 +41,10 @@

    To unbind the remote user from the view, set the view parameter to NULL.

    Once the remote user leaves the channel, the SDK unbinds the remote user.

    -

    To update the rendering or mirror mode of the remote video view during a call, use the method.

    +
      +
    • +
    • To update the rendering or mirror mode of the remote video view during a call, use the method.
    • +
    Parameters diff --git a/en-US/dita/RTC-NG/API/api_irtcengineex_setvideoencoderconfigurationex.dita b/en-US/dita/RTC-NG/API/api_irtcengineex_setvideoencoderconfigurationex.dita index 972881dd33a..0a654de45d0 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengineex_setvideoencoderconfigurationex.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengineex_setvideoencoderconfigurationex.dita @@ -40,7 +40,7 @@
    Call timing -

    Call this method after .

    +

    Call this method after .

    diff --git a/en-US/dita/RTC-NG/API/api_irtcengineex_startorupdatechannelmediarelayex.dita b/en-US/dita/RTC-NG/API/api_irtcengineex_startorupdatechannelmediarelayex.dita index 48adb497a31..876c2cad9fd 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengineex_startorupdatechannelmediarelayex.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengineex_startorupdatechannelmediarelayex.dita @@ -57,7 +57,7 @@ Parameters - channelMediaRelayConfiguration + channelMediaRelayConfiguration config configuration The configuration of the media stream relay. See . @@ -75,7 +75,6 @@
  • < 0: Failure. See for details and resolution suggestions.
    • -1: A general error occurs (no specified reason).
    • -2: The parameter is invalid.
    • -
    • -7: The method call was rejected. It may be because the SDK has not been initialized successfully, or the user role is not a host.
    • -8: Internal state error. Probably because the user is not a broadcaster.
  • diff --git a/en-US/dita/RTC-NG/API/api_irtcengineex_stopchannelmediarelayex.dita b/en-US/dita/RTC-NG/API/api_irtcengineex_stopchannelmediarelayex.dita index 4ccc85cb6e4..70f16d15f40 100644 --- a/en-US/dita/RTC-NG/API/api_irtcengineex_stopchannelmediarelayex.dita +++ b/en-US/dita/RTC-NG/API/api_irtcengineex_stopchannelmediarelayex.dita @@ -47,7 +47,8 @@

    When the method call succeeds, there is no return value; when fails, the exception is thrown. You need to catch the exception and handle it accordingly. See for details and resolution suggestions.

    • 0: Success.
    • -
    • < 0: Failure. See for details and resolution suggestions.
    • +
    • < 0: Failure. See for details and resolution suggestions.
      • -5: The method call was rejected. There is no ongoing channel media relay.
      +
    diff --git a/en-US/dita/RTC-NG/API/callback_iaudioencodedframeobserver_onrecordaudioencodedframe.dita b/en-US/dita/RTC-NG/API/callback_iaudioencodedframeobserver_onrecordaudioencodedframe.dita index 925390abe3e..cd39d66a403 100644 --- a/en-US/dita/RTC-NG/API/callback_iaudioencodedframeobserver_onrecordaudioencodedframe.dita +++ b/en-US/dita/RTC-NG/API/callback_iaudioencodedframeobserver_onrecordaudioencodedframe.dita @@ -47,7 +47,7 @@ Parameters - buffer + buffer frameData frameBuffer frameBufferPtr @@ -62,19 +62,19 @@ info Audio information after encoding. See . - + - + - + - + codecType Audio encoding type:
    • (1): OPUS.
    • diff --git a/en-US/dita/RTC-NG/API/callback_iaudioframeobserver_onplaybackaudioframebeforemixing.dita b/en-US/dita/RTC-NG/API/callback_iaudioframeobserver_onplaybackaudioframebeforemixing.dita index 1de90eee610..054a23acd6f 100644 --- a/en-US/dita/RTC-NG/API/callback_iaudioframeobserver_onplaybackaudioframebeforemixing.dita +++ b/en-US/dita/RTC-NG/API/callback_iaudioframeobserver_onplaybackaudioframebeforemixing.dita @@ -52,7 +52,7 @@ uid - userId + userId The ID of subscribed remote users. @@ -62,7 +62,7 @@ The raw audio data. See . - + diff --git a/en-US/dita/RTC-NG/API/callback_iaudioframeobserverbase_onearmonitoringaudioframe.dita b/en-US/dita/RTC-NG/API/callback_iaudioframeobserverbase_onearmonitoringaudioframe.dita index 9354d1ea813..8a82fe8da0d 100644 --- a/en-US/dita/RTC-NG/API/callback_iaudioframeobserverbase_onearmonitoringaudioframe.dita +++ b/en-US/dita/RTC-NG/API/callback_iaudioframeobserverbase_onearmonitoringaudioframe.dita @@ -50,7 +50,7 @@ The raw audio data. See . - + type The audio frame type. diff --git a/en-US/dita/RTC-NG/API/callback_iaudioframeobserverbase_onmixedaudioframe.dita b/en-US/dita/RTC-NG/API/callback_iaudioframeobserverbase_onmixedaudioframe.dita index 98c614619ec..c33f79b802e 100644 --- a/en-US/dita/RTC-NG/API/callback_iaudioframeobserverbase_onmixedaudioframe.dita +++ b/en-US/dita/RTC-NG/API/callback_iaudioframeobserverbase_onmixedaudioframe.dita @@ -56,7 +56,7 @@ The channel ID. - + type The audio frame type. @@ -90,7 +90,7 @@ renderTimeMs The timestamp (ms) of the external audio frame. You can use this parameter for the following purpose: Synchronize audio and video frames in video or audio related scenarios, including where external video sources are used. - + avsync_type Reserved for future use. diff --git a/en-US/dita/RTC-NG/API/callback_iaudioframeobserverbase_onrecordaudioframe.dita b/en-US/dita/RTC-NG/API/callback_iaudioframeobserverbase_onrecordaudioframe.dita index 1d8b5d03f35..5550d0ea92e 100644 --- a/en-US/dita/RTC-NG/API/callback_iaudioframeobserverbase_onrecordaudioframe.dita +++ b/en-US/dita/RTC-NG/API/callback_iaudioframeobserverbase_onrecordaudioframe.dita @@ -55,7 +55,7 @@ The channel ID. - + channelId The channel ID. diff --git a/en-US/dita/RTC-NG/API/callback_iaudiopcmframesink_onframe.dita b/en-US/dita/RTC-NG/API/callback_iaudiopcmframesink_onframe.dita index 16086925723..6b8c3fad431 100644 --- a/en-US/dita/RTC-NG/API/callback_iaudiopcmframesink_onframe.dita +++ b/en-US/dita/RTC-NG/API/callback_iaudiopcmframesink_onframe.dita @@ -44,10 +44,10 @@ See .
    -
    +
    Returns -

    Passes in the audio data after setting the mode parameter in for handling audio data.

    +

    Passes in the audio data after setting the mode parameter in for handling audio data.

    Without practical meaning.

    diff --git a/en-US/dita/RTC-NG/API/callback_iaudiospectrumobserver_onremoteaudiospectrum.dita b/en-US/dita/RTC-NG/API/callback_iaudiospectrumobserver_onremoteaudiospectrum.dita index fde990050d4..d18fa029d42 100644 --- a/en-US/dita/RTC-NG/API/callback_iaudiospectrumobserver_onremoteaudiospectrum.dita +++ b/en-US/dita/RTC-NG/API/callback_iaudiospectrumobserver_onremoteaudiospectrum.dita @@ -44,7 +44,7 @@ Parameters - userAudioSpectrumInfos + userAudioSpectrumInfos AudioSpectrumInfo spectrums The audio spectrum information of the remote user, see . The number of arrays is the number of remote users monitored by the SDK. If the array is null, it means that no audio spectrum of remote users is detected. diff --git a/en-US/dita/RTC-NG/API/callback_ifaceinfoobserver_onfaceinfo.dita b/en-US/dita/RTC-NG/API/callback_ifaceinfoobserver_onfaceinfo.dita index 26c430b166e..2012ab9a2a3 100644 --- a/en-US/dita/RTC-NG/API/callback_ifaceinfoobserver_onfaceinfo.dita +++ b/en-US/dita/RTC-NG/API/callback_ifaceinfoobserver_onfaceinfo.dita @@ -52,28 +52,7 @@
  • timestamp: String. The timestamp of the output result, in milliseconds.
  • -

    Here is an example of JSON: -

    -{ - "faces":[{ - "blendshapes":{ - "eyeBlinkLeft":0.9, "eyeLookDownLeft":0.0, "eyeLookInLeft":0.0, "eyeLookOutLeft":0.0, "eyeLookUpLeft":0.0, - "eyeSquintLeft":0.0, "eyeWideLeft":0.0, "eyeBlinkRight":0.0, "eyeLookDownRight":0.0, "eyeLookInRight":0.0, - "eyeLookOutRight":0.0, "eyeLookUpRight":0.0, "eyeSquintRight":0.0, "eyeWideRight":0.0, "jawForward":0.0, - "jawLeft":0.0, "jawRight":0.0, "jawOpen":0.0, "mouthClose":0.0, "mouthFunnel":0.0, "mouthPucker":0.0, - "mouthLeft":0.0, "mouthRight":0.0, "mouthSmileLeft":0.0, "mouthSmileRight":0.0, "mouthFrownLeft":0.0, - "mouthFrownRight":0.0, "mouthDimpleLeft":0.0, "mouthDimpleRight":0.0, "mouthStretchLeft":0.0, "mouthStretchRight":0.0, - "mouthRollLower":0.0, "mouthRollUpper":0.0, "mouthShrugLower":0.0, "mouthShrugUpper":0.0, "mouthPressLeft":0.0, - "mouthPressRight":0.0, "mouthLowerDownLeft":0.0, "mouthLowerDownRight":0.0, "mouthUpperUpLeft":0.0, "mouthUpperUpRight":0.0, - "browDownLeft":0.0, "browDownRight":0.0, "browInnerUp":0.0, "browOuterUpLeft":0.0, "browOuterUpRight":0.0, - "cheekPuff":0.0, "cheekSquintLeft":0.0, "cheekSquintRight":0.0, "noseSneerLeft":0.0, "noseSneerRight":0.0, - "tongueOut":0.0 - }, - "rotation":{"pitch":30.0, "yaw":25.5, "roll":-15.5}, - - }], - "timestamp":"654879876546" -}
    +

    Here is an example of JSON:

    { "faces":[{ "blendshapes":{ "eyeBlinkLeft":0.9, "eyeLookDownLeft":0.0, "eyeLookInLeft":0.0, "eyeLookOutLeft":0.0, "eyeLookUpLeft":0.0, "eyeSquintLeft":0.0, "eyeWideLeft":0.0, "eyeBlinkRight":0.0, "eyeLookDownRight":0.0, "eyeLookInRight":0.0, "eyeLookOutRight":0.0, "eyeLookUpRight":0.0, "eyeSquintRight":0.0, "eyeWideRight":0.0, "jawForward":0.0, "jawLeft":0.0, "jawRight":0.0, "jawOpen":0.0, "mouthClose":0.0, "mouthFunnel":0.0, "mouthPucker":0.0, "mouthLeft":0.0, "mouthRight":0.0, "mouthSmileLeft":0.0, "mouthSmileRight":0.0, "mouthFrownLeft":0.0, "mouthFrownRight":0.0, "mouthDimpleLeft":0.0, "mouthDimpleRight":0.0, "mouthStretchLeft":0.0, "mouthStretchRight":0.0, "mouthRollLower":0.0, "mouthRollUpper":0.0, "mouthShrugLower":0.0, "mouthShrugUpper":0.0, "mouthPressLeft":0.0, "mouthPressRight":0.0, "mouthLowerDownLeft":0.0, "mouthLowerDownRight":0.0, "mouthUpperUpLeft":0.0, "mouthUpperUpRight":0.0, "browDownLeft":0.0, "browDownRight":0.0, "browInnerUp":0.0, "browOuterUpLeft":0.0, "browOuterUpRight":0.0, "cheekPuff":0.0, "cheekSquintLeft":0.0, "cheekSquintRight":0.0, "noseSneerLeft":0.0, "noseSneerRight":0.0, "tongueOut":0.0 }, "rotation":{"pitch":30.0, "yaw":25.5, "roll":-15.5}, }], "timestamp":"654879876546" }

    diff --git a/en-US/dita/RTC-NG/API/callback_imediaplayersourceobserver_onmetadata.dita b/en-US/dita/RTC-NG/API/callback_imediaplayersourceobserver_onmetadata.dita index 4848de9d16d..fc77ec51421 100644 --- a/en-US/dita/RTC-NG/API/callback_imediaplayersourceobserver_onmetadata.dita +++ b/en-US/dita/RTC-NG/API/callback_imediaplayersourceobserver_onmetadata.dita @@ -37,7 +37,7 @@ - + type The type of media metadata. See . diff --git a/en-US/dita/RTC-NG/API/callback_imediarecorderobserver_onrecorderstatechanged.dita b/en-US/dita/RTC-NG/API/callback_imediarecorderobserver_onrecorderstatechanged.dita index 4124d5bfa45..e2828c08668 100644 --- a/en-US/dita/RTC-NG/API/callback_imediarecorderobserver_onrecorderstatechanged.dita +++ b/en-US/dita/RTC-NG/API/callback_imediarecorderobserver_onrecorderstatechanged.dita @@ -56,7 +56,7 @@ state The current recording state. See . - The current recording state:
      + The current recording state:
      • (-1): An error occurs during the recording.
      • (2): The audio and video recording starts.
      • (3): The audio and video recording stops.
      • @@ -65,7 +65,7 @@ error The reason for the state change. See . - The reason for the state change.
          + The reason for the state change.
          • (0): No error.
          • (1): The SDK fails to write the recorded data to a file.
          • (2): The SDK does not detect any audio and video streams, or audio and video streams are interrupted for more than five seconds during recording.
          • diff --git a/en-US/dita/RTC-NG/API/callback_imetadataobserver_onmetadatareceived.dita b/en-US/dita/RTC-NG/API/callback_imetadataobserver_onmetadatareceived.dita index 608104650ba..9e3fa3fb5ce 100644 --- a/en-US/dita/RTC-NG/API/callback_imetadataobserver_onmetadatareceived.dita +++ b/en-US/dita/RTC-NG/API/callback_imetadataobserver_onmetadatareceived.dita @@ -30,24 +30,10 @@
            Parameters - - buffer - data - The data received. - - - uid - The user ID. - - - timeStampMs - timestamp - The timestamp. - - + metadata The metadata received. See .
            - \ No newline at end of file + diff --git a/en-US/dita/RTC-NG/API/callback_imetadataobserver_onreadytosendmetadata.dita b/en-US/dita/RTC-NG/API/callback_imetadataobserver_onreadytosendmetadata.dita index a4017ab3105..7fecab0d8c0 100644 --- a/en-US/dita/RTC-NG/API/callback_imetadataobserver_onreadytosendmetadata.dita +++ b/en-US/dita/RTC-NG/API/callback_imetadataobserver_onreadytosendmetadata.dita @@ -35,8 +35,8 @@
            Parameters - - timeStampMs + + timeStampMs timestamp The timestamp. @@ -62,7 +62,7 @@
          • buffer: The metadata data.
          • timeStampMs: The NTP timestamp (ms) when the metadata is sent.

          -

          The metadata that you want to send in the format of byte. Ensure that you set the return value.

          +

          The metadata that you want to send in the format of byte. Ensure that you set the return value.

    diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiomixingstatechanged.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiomixingstatechanged.dita index 633cbd80cd2..b87ee01c0d4 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiomixingstatechanged.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiomixingstatechanged.dita @@ -42,7 +42,7 @@ reasonCode:(AgoraAudioMixingReasonCode)reasonCode; state - The playback state of the music file. See .

    + The playback state of the music file. See .

    • (710): The music file is playing.
    • (711): The music file pauses playing.
    • @@ -56,7 +56,7 @@ reasonCode:(AgoraAudioMixingReasonCode)reasonCode; reasonCode reason - Error code. See .

      + Error code. See .

      • (0): No error.
      • (701): The SDK cannot open the music file.
      • diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiosubscribestatechanged.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiosubscribestatechanged.dita index 2ecec81385c..47cf8ee6239 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiosubscribestatechanged.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiosubscribestatechanged.dita @@ -77,7 +77,7 @@ elapseSinceLastState:(int)elapseSinceLastState; oldState The previous subscribing status. See . - The previous subscription status.
          + The previous subscription status.
          • (0): The initial subscribing state after joining the channel.
          • (1): Fails to subscribe to the remote stream. Possible reasons:
            • The remote user:
                @@ -98,7 +98,7 @@ elapseSinceLastState:(int)elapseSinceLastState; newState The current subscribing status. See . - The current subscribing status.
                  + The current subscribing status.
                  • (0): The initial subscribing state after joining the channel.
                  • (1): Fails to subscribe to the remote stream. Possible reasons:
                    • The remote user:
                        diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onclientrolechanged.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onclientrolechanged.dita index 2d5544b4334..d647e76aa83 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onclientrolechanged.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onclientrolechanged.dita @@ -64,13 +64,13 @@ NS_SWIFT_NAME(rtcEngine(_:didClientRoleChanged:newRole:newRoleOptions:)); oldRole - Role that the user switches from: .
                          + Role that the user switches from: .
                          newRole - Role that the user switches to: .
                            + Role that the user switches to: .
                            diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onclientrolechangefailed.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onclientrolechangefailed.dita index 7848a9b24d0..67ee20c9721 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onclientrolechangefailed.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onclientrolechangefailed.dita @@ -56,17 +56,25 @@ reason The reason for a user role switch failure. See . - The reason for a user role switch failure.
                              + The reason for a user role switch failure.
                              • (1): The number of hosts in the channel is already at the upper limit.This enumerator is reported only when the support for 128 users is enabled. The maximum number of hosts is based on the actual number of hosts configured when you enable the 128-user feature.
                              • (2): The request is rejected by the Agora server. Agora recommends you prompt the user to try to switch their user role again.
                              • -
                              • (3): The request is timed out. Agora recommends you prompt the user to check the network connection and try to switch their user role again.
                              • -
                              • (4): The SDK connection fails. You can use reason reported in the callback to troubleshoot the failure.
                              • +
                              • (3): The request is timed out. Agora recommends you prompt the user to check the network connection and try to switch their user role again.
                                + +
                                Deprecated:
                                +
                                This enumerator is deprecated since v4.4.0 and is not recommended for use.
                                +
                              • +
                              • (4): The SDK connection fails. You can troubleshoot the failure through the reason reported by .
                                + +
                                Deprecated:
                                +
                                This enumerator is deprecated since v4.4.0 and is not recommended for use.
                                +
                              currentRole Current user role. See . - Current user role.
                                + Current user role.
                                • (1): Host. A host can both send and receive streams.
                                • (2): Audience. An audience member can only receive streams.
                                diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onconnectionstatechanged.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onconnectionstatechanged.dita index 586585dd32e..4ccfaf8db73 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onconnectionstatechanged.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onconnectionstatechanged.dita @@ -56,7 +56,7 @@ state

                                The current connection state. See .

                                -
                                  +
                                  • (1): The SDK is disconnected from Agora's edge server.
                                  • (2): The SDK is connecting to Agora's edge server.
                                  • (3): The SDK is connected to Agora's edge server.
                                  • @@ -68,7 +68,7 @@ reason

                                    The reason for a connection state change. See .

                                    -

                                    +

                                    • (0): The SDK is connecting to Agora's edge server.
                                    • (1): The SDK has joined the channel successfully.
                                    • diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_oncontentinspectresult.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_oncontentinspectresult.dita index 647591a4a20..39955419f52 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_oncontentinspectresult.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_oncontentinspectresult.dita @@ -34,7 +34,7 @@ result Content moderation results. See . - +

                                      The results of video content moderation:

                                      • (1): The image does not contain inappropriate elements.
                                      • (2): The image is sexually suggestive.
                                      • diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onencryptionerror.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onencryptionerror.dita index d2c80e254b2..878234fe790 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onencryptionerror.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onencryptionerror.dita @@ -53,7 +53,7 @@ errorType Details about the error type. See . - + errorType Error types.
                                        • (0): Internal reasons.
                                        • diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onerror.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onerror.dita index 1d1d8216734..53cb860d8f0 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onerror.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onerror.dita @@ -49,7 +49,7 @@ msg The error message. - + err Error code. @@ -64,7 +64,7 @@
                                        • The audio module is disabled. The program is not complete.
                                      • (4): does not support the request. Possible reasons include the following:
                                          -
                                        • The method is called on devices running versions earlier than Android 5.0. Check the Android version.
                                        • +
                                        • The method is called on devices running versions earlier than Android 5.0. Check the Android version.
                                        • The built-in encryption mode is incorrect, or the SDK fails to load the external encryption library. Check the encryption mode setting, or reload the external encryption library.
                                      • (5): The request is rejected. Possible reasons include the following:
                                          @@ -78,7 +78,7 @@
                                        • (9): Permission to access is not granted. Check whether your app has access to the audio and video device.
                                        • (10): A timeout occurs. Some API calls require the SDK to return the execution result. This error occurs if the SDK takes too long (more than 10 seconds) to return the result.
                                        • (17): The request to join the channel is rejected. Possible reasons include the following:
                                            -
                                          • The user is already in the channel. Agora recommends that you use the callback to determine whether the user exists in the channel. Do not call this method to join the channel unless you receive the (1) state.
                                          • +
                                          • The user is already in the channel. Agora recommends that you use the callback to see whether the user is in the channel. Do not call this method to join the channel unless you receive the (1) state.
                                          • After calling for the call test, the user tries to join the channel without calling to end the current test. To join a channel, the call test must be ended by calling .
                                        • (18): Fails to leave the channel. Possible reasons include the following:
                                            diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onextensionerrorwithcontext.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onextensionerrorwithcontext.dita new file mode 100644 index 00000000000..2dc7f13c286 --- /dev/null +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onextensionerrorwithcontext.dita @@ -0,0 +1,74 @@ + + + + <ph keyref="onExtensionErrorWithContext" /> + Occurs when the extension runs incorrectly. + + + + + + + + +
                                            +

                                            + void onErrorWithContext(ExtensionContext extContext, int error, String message){}; + onError?:(err:number,message:string) => void + - (void)onExtensionErrorWithContext:(AgoraExtensionContext * __nonnull)context + error:(int)error + message:(NSString * __nullable)message NS_SWIFT_NAME(onExtensionErrorWithContext(_:error:message:)); + virtual void onExtensionErrorWithContext(const ExtensionContext &context, int error, const char* message) { + (void)context; + (void)error; + (void)message; + } + DECLARE_DYNAMIC_MULTICAST_DELEGATE_FourParams(FOnExtensionError, FString, provider, FString, extension, int, error, FString, message); + onExtensionError?( + provider: string, + extension: string, + error: number, + message: string + ): void; + public virtual void OnExtensionError(string provider, string extension, int error, string message) { } + onExtensionError?( + provider: string, + extension: string, + error: number, + message: string + ): void; + final void Function( + String provider, String extension, int error, String message)? + onExtensionError; +

                                            +
                                            +
                                            +

                                            In case of extension enabling failure or runtime errors, the extension triggers this callback and reports the error code along with the reasons.

                                            +
                                            +
                                            + Parameters + + + context + extContext + The context information of the extension, see . + + + + + + + extension + The name of the extension. + + + error + Error code. For details, see the extension documentation provided by the extension provider. + + + message + Reason. For details, see the extension documentation provided by the extension provider. + +
                                            +
                                            +
                                            diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onextensioneventwithcontext.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onextensioneventwithcontext.dita new file mode 100644 index 00000000000..05996359cae --- /dev/null +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onextensioneventwithcontext.dita @@ -0,0 +1,74 @@ + + + + <ph keyref="onExtensionEventWithContext" /> + The event callback of the extension. + + + + + + + + +
                                            +

                                            + void onEventWithContext(ExtensionContext extContext, String key, String value){}; + + - (void)onEventWithContext:(AgoraExtensionContext * __nonnull)context + key:(NSString * __nullable)key + value:(NSString * __nullable)value NS_SWIFT_NAME(onEventWithContext(_:key:value:)); + virtual void onExtensionEventWithContext(const ExtensionContext &context, const char* key, const char* value) { + (void)context; + (void)key; + (void)value; + } + DECLARE_DYNAMIC_MULTICAST_DELEGATE_FourParams(FOnExtensionEvent, FString, provider, FString, extension, FString, key, FString, value); + onExtensionEvent?( + provider: string, + extension: string, + key: string, + value: string + ): void; + public virtual void OnExtensionEvent(string provider, string extension, string key, string value) { } + onExtensionEvent?( + provider: string, + extension: string, + key: string, + value: string + ): void; + final void Function( + String provider, String extName, String key, String value)? + onExtensionEvent; +

                                            +
                                            +
                                            +

                                            To listen for events while the extension is running, you need to register this callback.

                                            +
                                            +
                                            + Parameters + + + + + + + + + + + extension + extName + The name of the extension. + + + + + + + + + +
                                            +
                                            +
                                            diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onextensionstartedwithcontext.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onextensionstartedwithcontext.dita new file mode 100644 index 00000000000..a2af322073b --- /dev/null +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onextensionstartedwithcontext.dita @@ -0,0 +1,50 @@ + + + + <ph keyref="onExtensionStartedWithContext" /> + Occurrs when the extension is enabled. + + + + + + + + +
                                            +

                                            + void onStartedWithContext(ExtensionContext extContext){}; + + - (void)onExtensionStartedWithContext:(AgoraExtensionContext * __nonnull)context NS_SWIFT_NAME(onExtensionStartedWithContext(_:)); + virtual void onExtensionStartedWithContext(const ExtensionContext &context) { + (void)context; + } + DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnExtensionStarted, FString, provider, FString, extension); + onExtensionStarted?(provider: string, extension: string): void; + public virtual void OnExtensionStarted(string provider, string extension) { } + onExtensionStarted?(provider: string, extension: string): void; + final void Function(String provider, String extName)? onExtensionStarted; +

                                            +
                                            +
                                            +

                                            The callback is triggered after the extension is successfully enabled.

                                            +
                                            +
                                            + Parameters + + + + + + + + + + + extension + extName + The name of the extension. + +
                                            +
                                            +
                                            diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onextensionstoppedwithcontext.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onextensionstoppedwithcontext.dita new file mode 100644 index 00000000000..6d68d544ea2 --- /dev/null +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onextensionstoppedwithcontext.dita @@ -0,0 +1,49 @@ + + + + <ph keyref="onExtensionStoppedWithContext" /> + Occurs when the extension is disabled. + + + + + + + + +
                                            +

                                            + void onStoppedWithContext(ExtensionContext extContext){}; + + - (void)onExtensionStoppedWithContext:(AgoraExtensionContext * __nonnull)context NS_SWIFT_NAME(onExtensionStoppedWithContext(_:)); + virtual void onExtensionStoppedWithContext(const ExtensionContext &context) { + (void)context; + } + DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnExtensionStopped, FString, provider, FString, extension); + onExtensionStopped?(provider: string, extension: string): void; + public virtual void OnExtensionStopped(string provider, string extension) { } + onExtensionStopped?(provider: string, extension: string): void; + final void Function(String provider, String extName)? onExtensionStopped; +

                                            +
                                            +
                                            +

                                            The callback is triggered after the extension is successfully disabled.

                                            +
                                            +
                                            + Parameters + + + + + + + + + + + + + +
                                            +
                                            +
                                            \ No newline at end of file diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onfacepositionchanged.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onfacepositionchanged.dita index d489ca7efed..a877e350878 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onfacepositionchanged.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onfacepositionchanged.dita @@ -78,8 +78,8 @@ height The height (px) of the video image captured by the local camera. - - faceRectArr + + faceRectArr faces Information of the detected face. See . The number of array reported in this callback is based on the faces detected. The length of the array can be 0, which means that no human face is detected in front of the camera. diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocalaudiostatechanged.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocalaudiostatechanged.dita index 38567ec3f71..ba9dbe7878f 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocalaudiostatechanged.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocalaudiostatechanged.dita @@ -53,7 +53,7 @@ state The state of the local audio. See . - The state of the local audio.
                                              + The state of the local audio.
                                              • (0): The local video is in the initial state.
                                              • (1): The local video capturing device starts successfully.
                                              • (2): The first video frame is successfully encoded.
                                              • @@ -63,7 +63,7 @@ reason Reasons for local audio state changes. See . - Reasons for local audio state changes.
                                                  + Reasons for local audio state changes.
                                                  • (0): The local video is normal.
                                                  • (1): No specified reason for the local audio failure. Remind your users to try to rejoin the channel.
                                                  • (2): No permission to use the local video capturing device. Remind your users to grant permission.
                                                  • diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocalvideostatechanged.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocalvideostatechanged.dita index 28c835f9157..ade9fb92f52 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocalvideostatechanged.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocalvideostatechanged.dita @@ -75,7 +75,7 @@ state

                                                    The state of the local video, see .

                                                    -

                                                    +

                                                    • (0): The local video is in the initial state.
                                                    • (1): The local video capturing device starts successfully.
                                                    • @@ -88,7 +88,7 @@ reason

                                                      The reasons for changes in local video state. See .

                                                      -

                                                      +

                                                      • (0): The local video is normal.
                                                      • (1): No specified reason for the local video failure.
                                                      • diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocalvideotranscodererror.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocalvideotranscodererror.dita index 937481ae425..5ae34111c3b 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocalvideotranscodererror.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocalvideotranscodererror.dita @@ -57,7 +57,7 @@ error errorCode The reason for local video mixing error. See . - The reason for local video mixing error:
                                                          + The reason for local video mixing error:
                                                          • 1: The selected video source has not started video capture. You need to create a video track for it and start video capture.
                                                          • 2: The video source type is invalid. You need to re-specify the supported video source type.
                                                          • 3: The image path is invalid. You need to re-specify the correct image path.
                                                          • diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onnetworktypechanged.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onnetworktypechanged.dita index ddae96167d2..693781bdca6 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onnetworktypechanged.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onnetworktypechanged.dita @@ -45,7 +45,7 @@ type

                                                            The type of the local network connection. See .

                                                            -

                                                            Network types:

                                                              +

                                                              Network types:

                                                              • (-1): The network type is unknown.
                                                              • (0): The SDK disconnects from the network.
                                                              • (1): The network type is LAN.
                                                              • diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onpermissionerror.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onpermissionerror.dita index 9d2be64773f..b30a223cbfc 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onpermissionerror.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onpermissionerror.dita @@ -37,11 +37,11 @@ - permission + permission type permissionType The type of the device permission. See . - The type of the device permission.
                                                                  + The type of the device permission.
                                                                  • (0): Permission for the audio capture device.
                                                                  • (1): Permission for the camera.
                                                                  • (2): Permission for screen sharing.
                                                                  • diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onproxyconnected.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onproxyconnected.dita index 212158ca414..b0cbc4efc3e 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onproxyconnected.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onproxyconnected.dita @@ -58,10 +58,10 @@ uid The user ID. - + proxyType The proxy type connected. See . - The proxy type connected.
                                                                      + The proxy type connected.
                                                                      • (0): Reserved for future use.
                                                                      • (1): The cloud proxy for the UDP protocol, that is, the Force UDP cloud proxy mode. In this mode, the SDK always transmits data over UDP.
                                                                      • (2): The cloud proxy for the TCP (encryption) protocol, that is, the Force TCP cloud proxy mode. In this mode, the SDK always transmits data over TCP/TLS 443.
                                                                      • diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onremoteaudiostatechanged.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onremoteaudiostatechanged.dita index a0e1520c071..b0b891cc32f 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onremoteaudiostatechanged.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onremoteaudiostatechanged.dita @@ -72,7 +72,7 @@ state The state of the remote audio. See . - Remote audio states.
                                                                          + Remote audio states.
                                                                          • (0): The remote audo is in the initial state. The SDK reports this state in the case of , , or .
                                                                          • (1): The first remote audio packet is received.
                                                                          • (2): The remote audio stream is decoded and plays normally. The SDK reports this state in the case of , or .
                                                                          • @@ -83,7 +83,7 @@ reason The reason of the remote audio state change. See . - Remote audio state reasons.
                                                                              + Remote audio state reasons.
                                                                              • (0): The SDK reports this reason when the audio state changes.
                                                                              • (1): Network congestion.
                                                                              • (2): Network recovery.
                                                                              • diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onremotevideostatechanged.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onremotevideostatechanged.dita index 18626d8e2a2..c52a1f04f5b 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onremotevideostatechanged.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onremotevideostatechanged.dita @@ -72,7 +72,7 @@ state

                                                                                The state of the remote video. See .

                                                                                -

                                                                                The state of the remote video:

                                                                                  +

                                                                                  The state of the remote video:

                                                                                  • (0): The remote video is in the initial state. This state is reported in the case of (3), (5), or (7).
                                                                                  • (1): The first remote video packet is received.
                                                                                  • (2): The remote video stream is decoded and plays normally. This state is reported in the case of (2), (4), (6), or (9).
                                                                                  • @@ -85,7 +85,7 @@ reason

                                                                                    The reason for the remote video state change. See .

                                                                                    -

                                                                                    Remote audio state reasons:

                                                                                      +

                                                                                      Remote audio state reasons:

                                                                                      • (0): Internal reasons.
                                                                                      • (1): Network congestion.
                                                                                      • (2): Network recovery.
                                                                                      • diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onrhythmplayerstatechanged.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onrhythmplayerstatechanged.dita index 162604379ab..256c8930165 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onrhythmplayerstatechanged.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onrhythmplayerstatechanged.dita @@ -45,7 +45,7 @@ state For the current virtual metronome status, see . - + state The current virtual metronome state.
                                                                                        • (810): The virtual metronome is not enabled or is already disabled.
                                                                                        • @@ -58,7 +58,7 @@ errorCode For the error codes and error messages related to virtual metronome errors, see . - Error codes and error messages for virtual metronome errors.
                                                                                            + Error codes and error messages for virtual metronome errors.
                                                                                            • (0): The beat files are played normally without errors.
                                                                                            • (1): General error with no clear cause.
                                                                                            • (801): There is an error when opening the beat files.
                                                                                            • diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onrtcstats.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onrtcstats.dita index 49a0c3c5c30..da54a47aee8 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onrtcstats.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onrtcstats.dita @@ -27,6 +27,9 @@ final void Function(RtcConnection connection, RtcStats stats)? onRtcStats;

    +
    +

    +

    Trigger timing

    The SDK triggers this callback once every two seconds after the user joins the channel.

    diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onrtmpstreamingevent.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onrtmpstreamingevent.dita index cdae10a3902..696fd5667de 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onrtmpstreamingevent.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onrtmpstreamingevent.dita @@ -37,9 +37,9 @@ eventCode - event + event The event code of Media Push. See . - The event code of Media Push.
      + The event code of Media Push.
      • (1): An error occurs when you add a background image or a watermark image in the Media Push.
      • (2): The streaming URL is already being used for Media Push. If you want to start new streaming, use a new streaming URL.
      • (3): The feature is not supported.
      • diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onrtmpstreamingstatechanged.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onrtmpstreamingstatechanged.dita index 2178fb63b46..4bde04081b8 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onrtmpstreamingstatechanged.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onrtmpstreamingstatechanged.dita @@ -59,7 +59,7 @@ state The current state of the Media Push. See . - The current state of the Media Push:
          + The current state of the Media Push:
          • (0): The Media Push has not started or has ended.
          • (1): The streaming server and CDN server are being connected.
          • (2): The Media Push publishes. The SDK successfully publishes the RTMP or RTMPS streaming and returns this state.
          • @@ -74,7 +74,7 @@ reason Reasons for the changes in the Media Push status. See . - Reasons for the changes in the Media Push status:
              + Reasons for the changes in the Media Push status:
              • (0): The Media Push publishes successfully.
              • (1): Invalid argument used. Check the parameter setting.
              • (2): The Media Push is encrypted and cannot be published.
              • diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_ontranscodedstreamlayoutinfo.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_ontranscodedstreamlayoutinfo.dita index 3dabe8183eb..1e87fa116c3 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_ontranscodedstreamlayoutinfo.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_ontranscodedstreamlayoutinfo.dita @@ -81,7 +81,7 @@ The number of layout information in the mixed video stream. - info + info videoLayoutInfo layoutlist Layout information of a specific sub-video stream within the mixed stream. See . diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onuseroffline.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onuseroffline.dita index 06da8963a06..de1fe50fa81 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onuseroffline.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onuseroffline.dita @@ -38,13 +38,21 @@ UserOfflineReasonType reason)? onUserOffline;

    -
    -

    There are two reasons for users to become offline:

      -
    • Leave the channel: When a user/host leaves the channel, the user/host sends a goodbye message. When this message is received, the SDK determines that the user/host leaves the channel.
    • -
    • Drop offline: When no data packet of the user or host is received for a certain period of time (20 seconds for the communication profile, and more for the live broadcast profile), the SDK assumes that the user/host drops offline. A poor network connection may lead to false detections. It's recommended to use the Agora RTM SDK for reliable offline detection.
    • -

    +
    +

    There are generally two reasons for users to become offline:

      +
    • Leave the channel: When a user/host leaves the channel, the user/host sends a goodbye message.
    • +
    • Drop offline: When no data packet of the user or host is received for a certain period of time (20 seconds for the communication profile, and more for the live broadcast profile), the SDK assumes that the user/host drops offline. A poor network connection may lead to false detections. It is recommended to use the Agora RTM SDK for reliable offline detection.
    • +

    -
    +
    + Trigger timing +

    This callback is triggered when a remote user (in the communication profile) or host (in the live streaming profile) leaves a channel.

    +
    +
    + Restrictions +

    None.

    +
    +
    <ph keyref="callback-section-title" /> @@ -63,9 +71,9 @@ reason -

    Reasons why the user goes offline: .

    -

    Reasons why a remote user (COMMUNICATION) or a host (LIVE_BROADCASTING) goes offline:

      -
    • (0): The user has quit the call. When the user leaves the channel, the user sends a goodbye message. When this message is received, the SDK determines that the user leaves the channel.
    • +

      Reasons why a remote user (in the communication profile) or host (in the live streaming profile) goes offline. See .

      +

      Reasons why a remote user (in the communication profile) or host (in the live streaming profile) goes offline:

        +
      • (0): The user has quit the call. When the user leaves the channel, the user sends a goodbye message.
      • (1): The SDK timed out and the user dropped offline because it has not received any data package within a certain period of time. A poor network connection may lead to false detection. It is recommended to use the Agora RTM SDK for reliable offline detection.
      • (2): The user switches the user role from a broadcaster to an audience.

      diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onvideosizechanged.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onvideosizechanged.dita index 1fa4ca05481..a758d536db0 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onvideosizechanged.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onvideosizechanged.dita @@ -58,7 +58,7 @@ sourceType - source + source The type of the video source. See . diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onvideosubscribestatechanged.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onvideosubscribestatechanged.dita index 4efaf96cb10..a603b7e7bb4 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onvideosubscribestatechanged.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onvideosubscribestatechanged.dita @@ -78,7 +78,7 @@ oldState The previous subscribing status. See . - The previous subscription status.
        + The previous subscription status.
        • (0): The initial subscribing state after joining the channel.
        • (1): Fails to subscribe to the remote stream. Possible reasons:
          • The remote user:
              @@ -99,7 +99,7 @@ newState The current subscribing status. See . - The current subscribing status.
                + The current subscribing status.
                • (0): The initial subscribing state after joining the channel.
                • (1): Fails to subscribe to the remote stream. Possible reasons:
                  • The remote user:
                      diff --git a/en-US/dita/RTC-NG/API/callback_ivideoencodedframeobserver_onencodedvideoframereceived.dita b/en-US/dita/RTC-NG/API/callback_ivideoencodedframeobserver_onencodedvideoframereceived.dita index 081a49c89cf..6e4e8412b28 100644 --- a/en-US/dita/RTC-NG/API/callback_ivideoencodedframeobserver_onencodedvideoframereceived.dita +++ b/en-US/dita/RTC-NG/API/callback_ivideoencodedframeobserver_onencodedvideoframereceived.dita @@ -52,7 +52,7 @@ videoData imageBuffer imageBufferPtr - buffer + buffer The encoded video image buffer. The encoded video image data. @@ -61,7 +61,7 @@ The data length of the video image. - info + info videoFrameInfo videoEncodedFrameInfo For the information of the encoded video frame, see . diff --git a/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_getvideoformatpreference.dita b/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_getvideoformatpreference.dita index b9a31fb7798..72d15d17bca 100644 --- a/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_getvideoformatpreference.dita +++ b/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_getvideoformatpreference.dita @@ -44,7 +44,7 @@
                      Returns

                      Sets the raw data format of the SDK output. See .

                      -
                        +
                        • (0): Raw video.
                        • (1): I420.
                        • (2): BGRA.
                        • diff --git a/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_oncapturevideoframe.dita b/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_oncapturevideoframe.dita index 0789b9dc236..15bff4355fb 100644 --- a/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_oncapturevideoframe.dita +++ b/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_oncapturevideoframe.dita @@ -51,6 +51,7 @@
                          • The video data you get here is the raw video data, that is, video data that has not undergone preprocessing such as watermarking, cropping, and rotation.
                          • If the video data type you get is RGBA, the SDK does not support processing the data of the alpha channel.
                          • +
                          • It is recommended that you ensure the modified parameters in videoFrame are consistent with the actual situation of the video frames in the video frame buffer. Otherwise, it may cause unexpected rotation, distortion, and other issues in the local preview and remote video display.
                          • It's recommended that you implement this callback through the C++ API.
                          • Due to framework limitations, this callback does not support sending processed video data back to the SDK.
                          diff --git a/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_onframe.dita b/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_onframe.dita index b53f902bdcb..39895080928 100644 --- a/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_onframe.dita +++ b/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_onframe.dita @@ -34,7 +34,7 @@
                          <ph keyref="callback-section-title"/> - + frame The video frame information. See . diff --git a/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_onpreencodevideoframe.dita b/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_onpreencodevideoframe.dita index 5148e4250e2..826ac95d2fa 100644 --- a/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_onpreencodevideoframe.dita +++ b/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_onpreencodevideoframe.dita @@ -40,6 +40,7 @@
                        • It's recommended that you implement this callback through the C++ API.
                        • Due to framework limitations, this callback does not support sending processed video data back to the SDK.
                        • The video data that this callback gets has been preprocessed, with its content cropped and rotated, and the image enhanced.
                        • +
                      diff --git a/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_onrendervideoframe.dita b/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_onrendervideoframe.dita index 05feb09bd2a..18cd010edd4 100644 --- a/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_onrendervideoframe.dita +++ b/en-US/dita/RTC-NG/API/callback_ivideoframeobserver_onrendervideoframe.dita @@ -42,7 +42,8 @@
                    • If the video data type you get is RGBA, the SDK does not support processing the data of the alpha channel.
                    • It's recommended that you implement this callback through the C++ API.
                    • Due to framework limitations, this callback does not support sending processed video data back to the SDK.
                    • -
                    +
                  • +
                  If you use Unity for development, Agora only supports sending video data in YUV format to SDK. Ensure that you set mode as INTPTR when you call the method to register a video frame observer.
    Parameters diff --git a/en-US/dita/RTC-NG/API/class_Localaccesspointconfiguration.dita b/en-US/dita/RTC-NG/API/class_Localaccesspointconfiguration.dita index 88c7fcfbe3d..2986a78b525 100644 --- a/en-US/dita/RTC-NG/API/class_Localaccesspointconfiguration.dita +++ b/en-US/dita/RTC-NG/API/class_Localaccesspointconfiguration.dita @@ -219,7 +219,7 @@ struct FLocalAccessPointConfiguration mode

    The connection mode. See .

    -

    Select one of the following connection modes:

      +

      Select one of the following connection modes:

      • (0): The SDK firstly tries to connect to the specified Agora private media server; if the connection attempt fails, it will connect to the Agora SD-RTN™ instead.
      • (1) The SDK only tries to connect to the specified Agora private media server.

      diff --git a/en-US/dita/RTC-NG/API/class_advanceoptions.dita b/en-US/dita/RTC-NG/API/class_advanceoptions.dita index ad57c19da68..3cf02ad43c8 100644 --- a/en-US/dita/RTC-NG/API/class_advanceoptions.dita +++ b/en-US/dita/RTC-NG/API/class_advanceoptions.dita @@ -126,6 +126,13 @@ struct FAdvanceOptions { compressionPreference Compression preference for video encoding. See . + + encodeAlpha + Whether to encode and send the Alpha data present in the video frame to the remote end:
        +
      • : Encode and send Alpha data.
      • +
      • : (Default) Do not encode and send Alpha data.
      • +
      +
    diff --git a/en-US/dita/RTC-NG/API/class_audioencodedframeobserverconfig.dita b/en-US/dita/RTC-NG/API/class_audioencodedframeobserverconfig.dita index 253bfa55aa5..94f523b440d 100644 --- a/en-US/dita/RTC-NG/API/class_audioencodedframeobserverconfig.dita +++ b/en-US/dita/RTC-NG/API/class_audioencodedframeobserverconfig.dita @@ -88,7 +88,7 @@ struct FAudioEncodedFrameObserverConfig postionType

    Audio profile. See .

    -

    Audio profile:

      +

      Audio profile:

      • (1): Only encode the audio of the local user.
      • (2): Only encode the audio of all remote users.
      • (3): Records the mixed audio of the local and all remote users.
      • @@ -99,7 +99,7 @@ struct FAudioEncodedFrameObserverConfig encodingType

        Audio encoding type. See .

        -

        Audio encoding type:

          +

          Audio encoding type:

          • : AAC encoding format, 16000 Hz sampling rate, low quality. A file with an audio duration of 10 minutes is approximately 1.2 MB after encoding.
          • : AAC encoding format, 16000 Hz sampling rate, medium quality. A file with an audio duration of 10 minutes is approximately 2 MB after encoding.
          • : AAC encoding format, 32000 Hz sampling rate, low quality. A file with an audio duration of 10 minutes is approximately 1.2 MB after encoding.
          • diff --git a/en-US/dita/RTC-NG/API/class_audioframe.dita b/en-US/dita/RTC-NG/API/class_audioframe.dita index 717232aa448..b4d6cb2a92f 100644 --- a/en-US/dita/RTC-NG/API/class_audioframe.dita +++ b/en-US/dita/RTC-NG/API/class_audioframe.dita @@ -207,7 +207,7 @@ struct FAudioFrame { The number of bytes per sample. For PCM, this parameter is generally set to 16 bits (2 bytes). - channelschannelNums + channelschannelNums

            The number of audio channels (the data are interleaved if it is stereo).

            • 1: Mono.
            • @@ -217,7 +217,7 @@ struct FAudioFrame { samplesPerSec - sampleRataHz + sampleRataHz The number of samples per channel in the audio frame. @@ -239,7 +239,7 @@ struct FAudioFrame { avsyncTypeavsync_type Reserved for future use. - + timestamp The timestamp (ms) of the audio frame. diff --git a/en-US/dita/RTC-NG/API/class_audioparams.dita b/en-US/dita/RTC-NG/API/class_audioparams.dita index 978cb03d86c..2a2610db9aa 100644 --- a/en-US/dita/RTC-NG/API/class_audioparams.dita +++ b/en-US/dita/RTC-NG/API/class_audioparams.dita @@ -149,7 +149,7 @@ mode The use mode of the audio data. See . - The use mode of the audio data, which can be set as either of the following values:
                + The use mode of the audio data, which can be set as either of the following values:
                • (0): Read-only mode, where users only read the original data from without any modification. For example, when users acquire the data with the Agora SDK, then start the media push.
                • (2): Read and write mode, where users read the data from , modify it, and then play it. Users read the data returned by the SDK, modify it, and then play it. For example, when users have their own audio-effect processing module and perform some voice pre-processing, such as a voice change.
                diff --git a/en-US/dita/RTC-NG/API/class_audiorecordingconfiguration.dita b/en-US/dita/RTC-NG/API/class_audiorecordingconfiguration.dita index 93de62b8815..b7e6aef47c0 100644 --- a/en-US/dita/RTC-NG/API/class_audiorecordingconfiguration.dita +++ b/en-US/dita/RTC-NG/API/class_audiorecordingconfiguration.dita @@ -221,9 +221,9 @@ struct FAudioRecordingConfiguration

                Ensure that the directory for the log files exists and is writable.

                - + encode - codec + codec Whether to encode the audio data:
                • : Encode audio data in AAC.
                • : (Default) Do not encode audio data, but save the recorded audio data directly.
                • @@ -246,7 +246,7 @@ struct FAudioRecordingConfiguration fileRecordOption

                  The recording content. See .

                  -

                  Recording content:

                    +

                    Recording content:

                    • (1): Only records the audio of the local user.
                    • (2): Only records the audio of all remote users.
                    • (3): (Default) Records the mixed audio of the local and all remote users.
                    • @@ -257,7 +257,7 @@ struct FAudioRecordingConfiguration quality

                      Recording quality. See .

                      -

                      Recording quality:

                        +

                        Recording quality:

                        • (0): Low quality. For example, the size of an AAC file with a sample rate of 32,000 Hz and a recording duration of 10 minutes is around 1.2 MB.
                        • (1): (Default) Medium quality. For example, the size of an AAC file with a sample rate of 32,000 Hz and a recording duration of 10 minutes is around 2 MB.
                        • (2): High quality. For example, the size of an AAC file with a sample rate of 32,000 Hz and a recording duration of 10 minutes is around 3.5 MB.
                        • diff --git a/en-US/dita/RTC-NG/API/class_beautyoptions.dita b/en-US/dita/RTC-NG/API/class_beautyoptions.dita index 5283f6dbf9e..fcb676ba5d4 100644 --- a/en-US/dita/RTC-NG/API/class_beautyoptions.dita +++ b/en-US/dita/RTC-NG/API/class_beautyoptions.dita @@ -158,7 +158,7 @@ struct FBeautyOptions lighteningContrastLevel -

                          The contrast level, used with the lighteningLevel parameter. The larger the value, the greater the contrast between light and dark. See .

                            +

                            The contrast level, used with the lighteningLevel parameter. The larger the value, the greater the contrast between light and dark. See .

                            • (0): Low contrast level.
                            • (1): Normal contrast level.
                            • (2): High contrast level.
                            • @@ -168,25 +168,25 @@ struct FBeautyOptions lighteningLevel -

                              The brightening level, in the range [0.0,1.0], where 0.0 means the original brightening. The default value is 0.70.60.0. The higher the value, the greater the degree of brightening.

                              +

                              The brightening level, in the range [0.0,1.0], where 0.0 means the original brightening. The default value is 0.70.60.0. The higher the value, the greater the degree of brightening.

                              smoothnessLevel -

                              The smoothness level, in the range [0.0,1.0], where 0.0 means the original smoothness. The default value is 0.50.50.0. The greater the value, the greater the smoothness level.

                              +

                              The smoothness level, in the range [0.0,1.0], where 0.0 means the original smoothness. The default value is 0.50.50.0. The greater the value, the greater the smoothness level.

                              rednessLevel -

                              The redness level, in the range [0.0,1.0], where 0.0 means the original redness. The default value is 0.10.10.0. The larger the value, the greater the redness level.

                              +

                              The redness level, in the range [0.0,1.0], where 0.0 means the original redness. The default value is 0.10.10.0. The larger the value, the greater the redness level.

                              sharpnessLevel -

                              The sharpness level, in the range [0.0,1.0], where 0.0 means the original sharpness. The default value is 0.10.30.0. The larger the value, the greater the sharpness level.

                              +

                              The sharpness level, in the range [0.0,1.0], where 0.0 means the original sharpness. The default value is 0.10.30.0. The larger the value, the greater the sharpness level.

    diff --git a/en-US/dita/RTC-NG/API/class_cameracapturerconfiguration.dita b/en-US/dita/RTC-NG/API/class_cameracapturerconfiguration.dita index b2e0956d238..8aa51b63ed4 100644 --- a/en-US/dita/RTC-NG/API/class_cameracapturerconfiguration.dita +++ b/en-US/dita/RTC-NG/API/class_cameracapturerconfiguration.dita @@ -313,9 +313,9 @@ class CameraCapturerConfiguration { - + format - captureFormat + captureFormat (Optional) The format of the video frame. See . diff --git a/en-US/dita/RTC-NG/API/class_channelmediaoptions.dita b/en-US/dita/RTC-NG/API/class_channelmediaoptions.dita index c9cdec1f203..3bc6d81c316 100644 --- a/en-US/dita/RTC-NG/API/class_channelmediaoptions.dita +++ b/en-US/dita/RTC-NG/API/class_channelmediaoptions.dita @@ -746,7 +746,7 @@ class ChannelMediaOptions { publishLipSyncTrack Whether to publish the video track processed by the speech driven extension:
    • : Publish the video track processed by the speech driven extension.
    • -
    • : Do not publish the video track processed by the speech driven extension.
    • +
    • : (Default) Do not publish the video track processed by the speech driven extension.
    diff --git a/en-US/dita/RTC-NG/API/class_channelmediarelayconfiguration.dita b/en-US/dita/RTC-NG/API/class_channelmediarelayconfiguration.dita index 2d05ee91844..ff82b8928d4 100644 --- a/en-US/dita/RTC-NG/API/class_channelmediarelayconfiguration.dita +++ b/en-US/dita/RTC-NG/API/class_channelmediarelayconfiguration.dita @@ -126,10 +126,10 @@ struct FChannelMediaRelayConfiguration }

    -
    +
    Method - + setSrcChannelInfo Sets the information of the source channel. See . @@ -138,15 +138,15 @@ struct FChannelMediaRelayConfiguration Sets the information of the target channel. See . - removeDestChannelInfo + removeDestChannelInfo removeDestinationInfoForChannelName Deletes the information of target channel. See . - + getSrcChannelMediaInfo Gets the information of the source channel. See . - + getDestChannelMediaInfos Gets the information of the target channel. See . diff --git a/en-US/dita/RTC-NG/API/class_clientroleoptions.dita b/en-US/dita/RTC-NG/API/class_clientroleoptions.dita index 94fd2e11032..e1370d69657 100644 --- a/en-US/dita/RTC-NG/API/class_clientroleoptions.dita +++ b/en-US/dita/RTC-NG/API/class_clientroleoptions.dita @@ -69,7 +69,7 @@ struct FClientRoleOptions audienceLatencyLevel - The latency level of an audience member in interactive live streaming. See .
      + The latency level of an audience member in interactive live streaming. See .
      • (1): Low latency.
      • (2): (Default) Ultra low latency.
      diff --git a/en-US/dita/RTC-NG/API/class_codeccapinfo.dita b/en-US/dita/RTC-NG/API/class_codeccapinfo.dita index 73965882aa1..784120f96f7 100644 --- a/en-US/dita/RTC-NG/API/class_codeccapinfo.dita +++ b/en-US/dita/RTC-NG/API/class_codeccapinfo.dita @@ -101,7 +101,7 @@ class CodecCapInfo { codecType The video codec types. See . - +

      The video codec types:

      • 1: VP8
      • 2: H.264.
      • diff --git a/en-US/dita/RTC-NG/API/class_codeccaplevels.dita b/en-US/dita/RTC-NG/API/class_codeccaplevels.dita index 7351675594c..d598cf83d77 100644 --- a/en-US/dita/RTC-NG/API/class_codeccaplevels.dita +++ b/en-US/dita/RTC-NG/API/class_codeccaplevels.dita @@ -82,7 +82,7 @@ class CodecCapLevels { hwDecodingLevel Hardware decoding capability level, which represents the device's ability to perform hardware decoding on videos of different quality. See . -
          +
          • (-1): Unsupported video type. Currently, only H.264 and H.265 formats are supported. If the video is in another format, this value will be returned.
          • (5): Supports encoding and decoding videos up to 1080p and 30 fps.
          • (10): Supports encoding and decoding videos up to1080p and 30 fps.
          • diff --git a/en-US/dita/RTC-NG/API/class_contentinspectconfig.dita b/en-US/dita/RTC-NG/API/class_contentinspectconfig.dita index 733bc039458..c98f4781d51 100644 --- a/en-US/dita/RTC-NG/API/class_contentinspectconfig.dita +++ b/en-US/dita/RTC-NG/API/class_contentinspectconfig.dita @@ -2,7 +2,7 @@ <ph keyref="ContentInspectConfig"/> - Configuration of video screenshot and upload. + Screenshot and upload configuration.

            @@ -130,7 +130,7 @@ class ContentInspectConfig {

            Parameters - + CONTENT_INSPECT_TYPE_INVALID 0: (Default) No actual function. Do not set type to this value. @@ -138,11 +138,11 @@ class ContentInspectConfig { CONTENT_INSPECT_TYPE_MODERATION 1: Video content moderation. The SDK takes screenshots and inspect videos sent by local users, and uploads the screenshots and moderation results. - + CONTENT_INSPECT_TYPE_SUPERVISE 2: Video screenshot and upload via Agora self-developed extension. The SDK takes screenshots of videos sent by local users and upload them. - + CONTENT_INSPECT_TYPE_IMAGE_MODERATION 3: Video screenshot and upload via extensions from Agora Extensions Marketplace. SDK uses video moderation extensions from Agora Extensions Marketplace to take screenshots of the video stream in the channel and uploads them. diff --git a/en-US/dita/RTC-NG/API/class_contentinspectmodule.dita b/en-US/dita/RTC-NG/API/class_contentinspectmodule.dita index 6c4d30b55ac..233d616c67d 100644 --- a/en-US/dita/RTC-NG/API/class_contentinspectmodule.dita +++ b/en-US/dita/RTC-NG/API/class_contentinspectmodule.dita @@ -2,7 +2,7 @@ <ph keyref="ContentInspectModule"/> - A structure used to configure the frequency of video screenshot and upload. + A structure used to configure the frequency of video screenshot and upload.

            @@ -79,7 +79,7 @@ struct FContentInspectModule { type Types of functional module. See . - +

            Types of functional modules:

            • (0): (Default) This module has no actual function. Do not set to this value.
            • (1): Video content moderation. SDK takes screenshots, inspects video content of the video stream in the channel, and uploads the screenshots and moderation results.
            • diff --git a/en-US/dita/RTC-NG/API/class_encodedvideoframeinfo.dita b/en-US/dita/RTC-NG/API/class_encodedvideoframeinfo.dita index ca9e8b839c7..a55c85d11df 100644 --- a/en-US/dita/RTC-NG/API/class_encodedvideoframeinfo.dita +++ b/en-US/dita/RTC-NG/API/class_encodedvideoframeinfo.dita @@ -340,7 +340,7 @@ struct FEncodedVideoFrameInfo { codecType The codec type of the local video stream. See . The default value is (2). -

              The codec type of the video:

                +

                The codec type of the video:

                • (1): VP8.
                • (2): H.264.
                • (3): (Default) H.265.
                • @@ -365,7 +365,7 @@ struct FEncodedVideoFrameInfo { frameType The video frame type. See . - The video frame type.
                    + The video frame type.
                    • 0: (Default) , a blank frame.
                    • 3: , a key frame.
                    • 4:, a Delta frame.
                    • @@ -376,7 +376,7 @@ struct FEncodedVideoFrameInfo { rotation The rotation information of the video frame. See . - Rotation information of the video frame, as the following:
                        + Rotation information of the video frame, as the following:
                        • 0: (Default) 0 degree.
                        • 90: 90 degrees.
                        • 180: 180 degrees.
                        • @@ -403,7 +403,7 @@ struct FEncodedVideoFrameInfo { streamType The type of video streams. See . - +
                          • (0): High-quality stream, that is, a high-resolution and high-bitrate video stream.
                          • (1): Low-quality stream, that is, a low-resolution and low-bitrate video stream.
                          • diff --git a/en-US/dita/RTC-NG/API/class_extensioncontext.dita b/en-US/dita/RTC-NG/API/class_extensioncontext.dita new file mode 100644 index 00000000000..6e653e4ace3 --- /dev/null +++ b/en-US/dita/RTC-NG/API/class_extensioncontext.dita @@ -0,0 +1,84 @@ + + + + <ph keyref="ExtensionContext"/> + The context information of the extension. + +
                            +

                            + public class ExtensionContext { + public boolean isValid; + public int uid; + public String providerName; + public String extensionName; + + @CalledByNative + public ExtensionContext() { + isValid = false; + uid = 0; + providerName = ""; + extensionName = ""; + } + + @CalledByNative + public ExtensionContext(int uid, String providerName, String extensionName) { + this.isValid = true; + this.uid = uid; + this.providerName = providerName; + this.extensionName = extensionName; + } +} + @interface AgoraExtensionContext : NSObject +@property (assign, nonatomic) BOOL isValid; +@property (assign, nonatomic) NSUInteger uid; +@property (copy, nonatomic) NSString * _Nullable providerName; +@property (copy, nonatomic) NSString * _Nullable extensionName; +@end + struct ExtensionContext { + bool isValid; + uid_t uid; + const char *providerName; + const char *extensionName; + ExtensionContext():isValid(false), uid(0), providerName(NULL), extensionName(NULL) {} +}; + + + + +

                            +
                            +
                            +
                            + +
                            Since
                            +
                            v4.4.0
                            +
                            +
                            +

                            +

                            +
                            + <text conref="../conref/conref_api_metadata.dita#conref_api_metadata/property"/> + + + isValid + Whether the uid in is valid:
                              +
                            • : The uid is valid.
                            • +
                            • : The uid is invalid.
                            • +
                            +
                            +
                            + + uid + The user ID. 0 represents a local user, while greater than 0 represents a remote user. + + + + + + + + + +
                            +
                            +
                            diff --git a/en-US/dita/RTC-NG/API/class_externalvideoframe.dita b/en-US/dita/RTC-NG/API/class_externalvideoframe.dita index 6c15172e256..01d1962015d 100644 --- a/en-US/dita/RTC-NG/API/class_externalvideoframe.dita +++ b/en-US/dita/RTC-NG/API/class_externalvideoframe.dita @@ -278,13 +278,7 @@ class ExternalVideoFrame { }

            -
            -
            - -
            Deprecated:
            -
            This class is deprecated.
            -
            -
            +
            <text @@ -313,7 +307,7 @@ class ExternalVideoFrame { <li>12: iOS texture (CVPixelBufferRef)</li> <li>16: I422</li> </ul> </pd> - <pd props="android">The format of the video data:<ul> + <pd props="android hmos">The format of the video data:<ul> <li>10: TEXTURE_2D</li> <li>11: TEXTURE_OES, usually the data captured by the camera is in this format.</li> <li>1: I420</li> @@ -324,10 +318,10 @@ class ExternalVideoFrame { </plentry> <plentry> <pt props="cpp unreal bp unity electron rn flutter cs">buffer</pt> - <pt props="android">buf</pt> + <pt props="android hmos">buf</pt> <pt props="ios mac">dataBuf</pt> <pd props="cpp unreal bp android unity electron rn flutter cs">Video frame buffer.</pd> - <pd props="android">This parameter only applies to video data in non-Texture format.</pd> + <pd props="android hmos">This parameter only applies to video data in non-Texture format.</pd> <pd props="ios mac">Raw data buffer. This parameter does not apply to iOS textures.</pd> </plentry> <plentry props="ios mac"> @@ -361,26 +355,26 @@ class ExternalVideoFrame { <pt>height</pt> <pd>Height of the incoming video frame.</pd> </plentry> - <plentry props="android"> + <plentry props="android hmos"> <pt>textureID</pt> <pd>Texture ID of the frame. This parameter only applies to video data in Texture format.</pd> </plentry> - <plentry props="android"> + <plentry props="android hmos"> <pt>syncMode</pt> <pd>Set whether to enable the synchronization mode. After enabling, the SDK waits while Texture processing. This parameter only applies to video data in Texture format.<ul id="ul_oxx_wmy_4qb"> <li><codeph><ph keyref="true"/></codeph>: Enable sync mode.</li> <li><codeph><ph keyref="false"/></codeph>: Disable sync mode.</li> </ul></pd> </plentry> - <plentry props="android"> + <plentry props="android hmos"> <pt>transform</pt> <pd>Additional transform of Texture frames. This parameter only applies to video data in Texture format.</pd> </plentry> - <plentry props="android"> + <plentry props="android hmos"> <pt>eglContext11</pt> <pd>EGLContext11. This parameter only applies to video data in Texture format.</pd> </plentry> - <plentry props="android"> + <plentry props="android hmos"> <pt>eglContext14</pt> <pd>EGLContext14. This parameter only applies to video data in Texture format.</pd> </plentry> @@ -413,9 +407,34 @@ class ExternalVideoFrame { <pt props="flutter">metadataSize</pt> <pd>This parameter only applies to video data in Texture format. The MetaData size. The default value is <codeph>0</codeph>.</pd> </plentry> - <plentry props="cpp unity electron"> - <pt>d3d11_texture_2d</pt> - <pd>This parameter only applies to video data in Windows Texture format. It represents a pointer to an object of type <codeph>ID3D11Texture2D</codeph>, which is used by a video frame.</pd> + <plentry conkeyref="VideoFrame/d3d" props="cpp unity electron"> + <pt/> + <pd/> + </plentry> + <plentry id="alphabuffer"> + <pt props="cpp android">alphaBuffer</pt> + <pt props="apple">alphaBuf</pt> + <pd> + <p>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).</p> + <p>By setting this parameter, you can render the video background into various effects, such as transparent, solid color, image, video, etc.</p> + <note type="attention" props="android">In custom video rendering scenarios, ensure that both the video frame and <parmname>alphaBuffer</parmname> are of the Full Range type; other types may cause abnormal alpha data rendering.</note> + </pd> + </plentry> + <plentry> + <pt props="cpp">fillAlphaBuffer</pt> + <pt props="android apple">fillAlphaData</pt> + <pd>This parameter only applies to video data in BGRA or RGBA format. Whether to extract the alpha channel data from the video frame and automatically fill it into <parmname>alphaBuffer</parmname>:<ul> + <li><codeph><ph keyref="true"/>:Extract and fill the alpha channel data.</codeph></li> + <li><codeph><ph keyref="false"/></codeph>: (Default) Do not extract and fill the Alpha channel data.</li> + </ul> + <note>For video data in BGRA or RGBA format, you can set the Alpha channel data in either of the following ways:<ul> + <li>Automatically by setting this parameter to <codeph><ph keyref="true"/></codeph>.</li> + <li>Manually through the <parmname>alphaBuffer</parmname> parameter.</li> + </ul></note></pd> + </plentry> + <plentry conkeyref="VideoFrame/alphastitchmode"> + <pt/> + <pd/> </plentry> <plentry props="cpp unity electron flutter"> <pt props="cpp unity electron">texture_slice_index</pt> @@ -425,25 +444,25 @@ class ExternalVideoFrame { <plentry> <pt>cropLeft</pt> <pd>Raw data related parameter. The number of pixels trimmed from the left. The default value is 0.</pd> - <pd props="android">This parameter only applies to video data in non-Texture format.</pd> + <pd props="android hmos">This parameter only applies to video data in non-Texture format.</pd> <pd props="cpp unreal bp unity rn electron flutter cs">This parameter only applies to raw video data.</pd> </plentry> <plentry> <pt>cropTop</pt> <pd>Raw data related parameter. The number of pixels trimmed from the top. The default value is 0.</pd> - <pd props="android">This parameter only applies to video data in non-Texture format.</pd> + <pd props="android hmos">This parameter only applies to video data in non-Texture format.</pd> <pd props="cpp unreal bp unity electron rn flutter cs">This parameter only applies to raw video data.</pd> </plentry> <plentry> <pt>cropRight</pt> <pd>Raw data related parameter. The number of pixels trimmed from the right. The default value is 0.</pd> - <pd props="android">This parameter only applies to video data in non-Texture format.</pd> + <pd props="android hmos">This parameter only applies to video data in non-Texture format.</pd> <pd props="cpp unreal bp unity electron rn flutter cs">This parameter only applies to raw video data.</pd> </plentry> <plentry> <pt>cropBottom</pt> <pd>Raw data related parameter. The number of pixels trimmed from the bottom. The default value is 0.</pd> - <pd props="android">This parameter only applies to video data in non-Texture format.</pd> + <pd props="android hmos">This parameter only applies to video data in non-Texture format.</pd> <pd props="cpp unreal bp unity electron flutter rn cs">This parameter only applies to raw video data.</pd> </plentry> <plentry> diff --git a/en-US/dita/RTC-NG/API/class_lastmileproberesult.dita b/en-US/dita/RTC-NG/API/class_lastmileproberesult.dita index 93712b431d5..a43cbbaa237 100644 --- a/en-US/dita/RTC-NG/API/class_lastmileproberesult.dita +++ b/en-US/dita/RTC-NG/API/class_lastmileproberesult.dita @@ -125,7 +125,7 @@ struct FLastmileProbeResult { <pt>state</pt> <pd> <p props="ios mac cpp unreal bp unity electron rn flutter cs">The status of the last-mile network tests. See <xref keyref="LASTMILE_PROBE_RESULT_STATE" />.</p> - <p props="android">The status of the last-mile network tests, which includes:<ul> + <p props="android hmos">The status of the last-mile network tests, which includes:<ul> <li><ph keyref="LASTMILE_PROBE_RESULT_COMPLETE" />(1): The last-mile network probe test is complete.</li> <li><ph keyref="LASTMILE_PROBE_RESULT_INCOMPLETE_NO_BWE" />(2): The last-mile network probe test is incomplete because the bandwidth estimation is not available due to limited test resources. Probably due to limited test resources.</li> <li><ph keyref="LASTMILE_PROBE_RESULT_UNAVAILABLE" />(3): The last-mile network probe test is not carried out. Probably due to poor network conditions.</li> diff --git a/en-US/dita/RTC-NG/API/class_livetranscoding.dita b/en-US/dita/RTC-NG/API/class_livetranscoding.dita index 5643a9c51f6..4717003cf3f 100644 --- a/en-US/dita/RTC-NG/API/class_livetranscoding.dita +++ b/en-US/dita/RTC-NG/API/class_livetranscoding.dita @@ -664,7 +664,7 @@ struct FLiveTranscoding <section id="parameters"> <title><text conref="../conref/conref_api_metadata.dita#conref_api_metadata/property"/> - + width

            The width of the video in pixels. The default value is 360.

            @@ -673,7 +673,7 @@ struct FLiveTranscoding
          • When pushing audio streams to the CDN, set width and height as 0.
          - + height

          The height of the video in pixels. The default value is 640.

          @@ -706,7 +706,7 @@ struct FLiveTranscoding

          Frame rate (fps) of the output video stream set for Media Push. The default value is 15. The value range is (0,30].

          The Agora server adjusts any value over 30 to 30.
          - + lowLatency
          @@ -743,7 +743,7 @@ struct FLiveTranscoding transcodingExtraInfo - userConfigExtraInfo + userConfigExtraInfo

          Reserved property. Extra user-defined information to send SEI for the H.264/H.265 video stream to the CDN live client. Maximum length: 4096 bytes. For more information on SEI, see SEI-related questions.

          @@ -761,7 +761,7 @@ struct FLiveTranscoding
          backgroundColor - +
          Deprecated
          @@ -931,7 +931,7 @@ struct FLiveTranscoding getUserCount Gets the number of users transcoded in the CDN live streaming. See . - + getUsers Gets the user list in the CDN live streaming. See . @@ -943,7 +943,7 @@ struct FLiveTranscoding removeBackgroundImage Removes a background image from the background image list. See . - + removeUser Removes a user from video mixing during the CDN live streaming. See . diff --git a/en-US/dita/RTC-NG/API/class_localspatialaudioconfig.dita b/en-US/dita/RTC-NG/API/class_localspatialaudioconfig.dita index d0c939469c8..f4dfbe546bb 100644 --- a/en-US/dita/RTC-NG/API/class_localspatialaudioconfig.dita +++ b/en-US/dita/RTC-NG/API/class_localspatialaudioconfig.dita @@ -52,7 +52,7 @@ struct FLocalSpatialAudioConfig rtcEngine - mRtcEngine + mRtcEngine .
    diff --git a/en-US/dita/RTC-NG/API/class_localtranscoderconfiguration.dita b/en-US/dita/RTC-NG/API/class_localtranscoderconfiguration.dita index 68d1add4d42..c6fdfd105c4 100644 --- a/en-US/dita/RTC-NG/API/class_localtranscoderconfiguration.dita +++ b/en-US/dita/RTC-NG/API/class_localtranscoderconfiguration.dita @@ -110,7 +110,7 @@ class LocalTranscoderConfiguration { videoInputStreams - transcodingVideoStreams + transcodingVideoStreams The video streams for local video mixing. See . diff --git a/en-US/dita/RTC-NG/API/class_localvideostats.dita b/en-US/dita/RTC-NG/API/class_localvideostats.dita index bfea7c33241..06ccde80b9a 100644 --- a/en-US/dita/RTC-NG/API/class_localvideostats.dita +++ b/en-US/dita/RTC-NG/API/class_localvideostats.dita @@ -459,7 +459,7 @@ struct FLocalVideoStats qualityAdaptIndication - The quality adaptation of the local video stream in the reported interval (based on the target frame rate and target bitrate). See .

    + The quality adaptation of the local video stream in the reported interval (based on the target frame rate and target bitrate). See .

    • (0): The local video quality stays the same.
    • (1): The local video quality improves because the network bandwidth increases.
    • @@ -487,7 +487,7 @@ struct FLocalVideoStats codecType - The codec type of the local video. See .

      + The codec type of the local video. See .

      • (1): VP8.
      • (2): H.264.
      • @@ -508,7 +508,7 @@ struct FLocalVideoStats captureBrightnessLevel The brightness level of the video image captured by the local camera. See . - + captureBrightnessLevel The brightness level of the video image captured by the local camera.
        • (-1): The SDK does not detect the brightness level of the video image. Wait a few seconds to get the brightness level from captureBrightnessLevel in the next callback.
        • diff --git a/en-US/dita/RTC-NG/API/class_logconfig.dita b/en-US/dita/RTC-NG/API/class_logconfig.dita index 690c147762d..8e60eb44035 100644 --- a/en-US/dita/RTC-NG/API/class_logconfig.dita +++ b/en-US/dita/RTC-NG/API/class_logconfig.dita @@ -102,7 +102,7 @@ struct FLogConfig {
      • Windows: C:\Users\<user_name>\AppData\Local\Agora\<process_name>\agorasdk.log.

      -

      The default path is /storage/emulated/0/Android/data/<packagename>/files/agorasdk.log.

      +

      The default path is /storage/emulated/0/Android/data/<packagename>/files/agorasdk.log.

      The default path is AppSandbox/Library/caches/agorasdk.log.

      The default path is:

      • If Sandbox is enabled: AppSandbox/Library/Logs/agorasdk.log. For example, /Users/<username>/Library/Containers/<AppBundleIdentifier>/Data/Library/Logs/agorasdk.log.
      • diff --git a/en-US/dita/RTC-NG/API/class_lowlightenhanceoptions.dita b/en-US/dita/RTC-NG/API/class_lowlightenhanceoptions.dita index 0abc7e0279c..ec201b5e13f 100644 --- a/en-US/dita/RTC-NG/API/class_lowlightenhanceoptions.dita +++ b/en-US/dita/RTC-NG/API/class_lowlightenhanceoptions.dita @@ -109,14 +109,14 @@ struct FLowlightEnhanceOptions level - The low-light enhancement level. See .
          + The low-light enhancement level. See .
          • (0): (Default) Promotes video quality during low-light enhancement. It processes the brightness, details, and noise of the video image. The performance consumption is moderate, the processing speed is moderate, and the overall video quality is optimal.
          • (1): Promotes performance during low-light enhancement. It processes the brightness and details of the video image. The processing speed is faster.
          mode - The low-light enhancement mode. See .
            + The low-light enhancement mode. See .
            • (0): (Default) Automatic mode. The SDK automatically enables or disables the low-light enhancement feature according to the ambient light to compensate for the lighting level or prevent overexposure, as necessary.
            • (1): Manual mode. Users need to enable or disable the low-light enhancement feature manually.
            diff --git a/en-US/dita/RTC-NG/API/class_mediarecorderconfiguration.dita b/en-US/dita/RTC-NG/API/class_mediarecorderconfiguration.dita index b70e08e7881..35a777a85f4 100644 --- a/en-US/dita/RTC-NG/API/class_mediarecorderconfiguration.dita +++ b/en-US/dita/RTC-NG/API/class_mediarecorderconfiguration.dita @@ -155,12 +155,12 @@ struct FMediaRecorderConfiguration containerFormat The format of the recording file. See . - The format of the recording file. Only is supported. + The format of the recording file. Only is supported. streamType The recording content. See . - The recording content:
              + The recording content:
              • : Only audio.
              • : Only video.
              • : (Default) Audio and video.
              • diff --git a/en-US/dita/RTC-NG/API/class_metadata.dita b/en-US/dita/RTC-NG/API/class_metadata.dita index 0f68885ef38..37901d6a458 100644 --- a/en-US/dita/RTC-NG/API/class_metadata.dita +++ b/en-US/dita/RTC-NG/API/class_metadata.dita @@ -117,6 +117,10 @@ struct FAgoraMetadata <text conref="../conref/conref_api_metadata.dita#conref_api_metadata/property" /> + channelId + The channel name. + + uid

                The user ID.

                  @@ -125,18 +129,24 @@ struct FAgoraMetadata

                - + size The buffer size of the sent or received . - - buffer - The buffer address of the sent or received . + + buffer + data + The buffer address of the received . - - timeStampMs - The timestamp (ms) of . + + data + The received metadata. + + + timeStampMs + timestamp + The timestamp (ms) of when the is sent.
    - \ No newline at end of file + diff --git a/en-US/dita/RTC-NG/API/class_playerstreaminfo.dita b/en-US/dita/RTC-NG/API/class_playerstreaminfo.dita index c4126723e82..b2245d459f7 100644 --- a/en-US/dita/RTC-NG/API/class_playerstreaminfo.dita +++ b/en-US/dita/RTC-NG/API/class_playerstreaminfo.dita @@ -244,8 +244,8 @@ struct FPlayerStreamInfo streamType - mediaStreamType - The type of the media stream. See .
      + mediaStreamType + The type of the media stream. See .
      • (0): The type is unknown.
      • (1): The video stream.
      • (2): The audio stream.
      • @@ -289,9 +289,9 @@ struct FPlayerStreamInfo audioChannels This parameter only takes effect for audio streams, and indicates the audio channel number. - + audioBitsPerSample - audioBytesPerSample + audioBytesPerSample This parameter only takes effect for audio streams, and indicates the bit number of each audio sample. diff --git a/en-US/dita/RTC-NG/API/class_remotevideostats.dita b/en-US/dita/RTC-NG/API/class_remotevideostats.dita index 3388601d9a4..fa20e097ab8 100644 --- a/en-US/dita/RTC-NG/API/class_remotevideostats.dita +++ b/en-US/dita/RTC-NG/API/class_remotevideostats.dita @@ -369,7 +369,7 @@ class RemoteVideoStats { rxStreamType - The type of the video stream. See .

        + The type of the video stream. See .

        • (0): High-quality stream, that is, a high-resolution and high-bitrate video stream.
        • (1): Low-quality stream, that is, a low-resolution and low-bitrate video stream.
        • diff --git a/en-US/dita/RTC-NG/API/class_rtcengineconfig.dita b/en-US/dita/RTC-NG/API/class_rtcengineconfig.dita index 2c7538ce669..e12681fc5c6 100644 --- a/en-US/dita/RTC-NG/API/class_rtcengineconfig.dita +++ b/en-US/dita/RTC-NG/API/class_rtcengineconfig.dita @@ -189,34 +189,35 @@ class RtcEngineContext {
          <text conref="../conref/conref_api_metadata.dita#conref_api_metadata/property"/> - + eventHandler - mEventHandler + mEventHandler The event handler for . See . appId - mAppId + mAppId The App ID issued by Agora for your project. Only users in apps with the same App ID can join the same channel and communicate with each other. An App ID can only be used to create one instance. To change your App ID, call to destroy the current instance, and then create a new one. - + context - mContext + mContext
          • For Windows, it is the window handle of the app. Once set, this parameter enables you to connect or disconnect the video devices while they are powered.
          • For Android, it is the context of Android Activity.

          The context of Android Activity.

          +

          The context.

          - + mNativeLibPath

          Specifies the storage directory for the .so files. The storage directory must be a valid and private directory of the app, which can be obtained using Context.getDir().

            -
          • If you set this parameter, the SDK automatically loads the .so files in the directory you specify, so that the app dynamically loads the required .so files when it runs, thereby reducing the package size.
          • -
          • If you do not set this parameter or set it to null, the SDK loads the .so files from the default app's native unreal bpLibraryPath when compiling the app, which increases the package size compared to the previous method.
          • +
          • If you set this parameter, the SDK automatically loads the .so files in the directory you specify, so that the app dynamically loads the required .so files when it runs, thereby reducing the package size.
          • +
          • If you do not set this parameter or set it to null, the SDK loads the .so files from the default app's native unreal bpLibraryPath when compiling the app, which increases the package size compared to the previous method.
            @@ -226,23 +227,23 @@ class RtcEngineContext { channelProfile - mChannelProfile + mChannelProfile audioScenario - mAudioScenario + mAudioScenario areaCode - mAreaCode + mAreaCode The region for connection. This is an advanced feature and applies to scenarios that have regional restrictions. For details on supported regions, see . The area codes support bitwise operation. After specifying the region, the app integrated with the Agora SDK connects to the Agora servers within that region. logConfig - mLogConfig + mLogConfig

            Sets the log file size. See .

            By default, the SDK generates five SDK log files and five API call log files with the following rules:

            @@ -250,12 +251,12 @@ class RtcEngineContext {
          - + mExtensionList Extension libraries. - - mExtensionObserver + + mExtensionObserver eventDelegate The instance. @@ -264,7 +265,7 @@ class RtcEngineContext { The instance. - mDomainLimit + mDomainLimit domainLimit

          Whether to enable domain name restriction:

            @@ -274,7 +275,7 @@ class RtcEngineContext { - mAutoRegisterAgoraExtensions + mAutoRegisterAgoraExtensions autoRegisterAgoraExtensions

            Whether to automatically register the Agora extensions when initializing :

              @@ -284,7 +285,7 @@ class RtcEngineContext {
          -
          +
          Method diff --git a/en-US/dita/RTC-NG/API/class_rtcstats.dita b/en-US/dita/RTC-NG/API/class_rtcstats.dita index 704f9eb1a18..e1ebe679d54 100644 --- a/en-US/dita/RTC-NG/API/class_rtcstats.dita +++ b/en-US/dita/RTC-NG/API/class_rtcstats.dita @@ -545,7 +545,7 @@ public: duration - totalDuration + totalDuration Call duration of the local user in seconds, represented by an aggregate value. @@ -610,7 +610,7 @@ public: userCount - users + users The number of users in the channel. diff --git a/en-US/dita/RTC-NG/API/class_screenaudioparameters.dita b/en-US/dita/RTC-NG/API/class_screenaudioparameters.dita index 08ae5199f6f..7c670f07eb0 100644 --- a/en-US/dita/RTC-NG/API/class_screenaudioparameters.dita +++ b/en-US/dita/RTC-NG/API/class_screenaudioparameters.dita @@ -122,7 +122,7 @@ struct FScreenAudioParameters { captureSignalVolume The volume of the captured system audio. The value range is [0, 100]. The default value is 100. - + allowCaptureCurrentApp Whether to capture audio from the current app:
          • : (Default) Caputre audio from the current app.
          • diff --git a/en-US/dita/RTC-NG/API/class_screencaptureconfiguration.dita b/en-US/dita/RTC-NG/API/class_screencaptureconfiguration.dita index fef8e70342e..ce464a74deb 100644 --- a/en-US/dita/RTC-NG/API/class_screencaptureconfiguration.dita +++ b/en-US/dita/RTC-NG/API/class_screencaptureconfiguration.dita @@ -148,7 +148,7 @@ struct FScreenCaptureConfiguration params parameters - (For Windows and macOS only) The screen capture configuration. See . + (For Windows and macOS only) The screen capture configuration. See . regionRect diff --git a/en-US/dita/RTC-NG/API/class_screencaptureparameters2.dita b/en-US/dita/RTC-NG/API/class_screencaptureparameters2.dita index 1be963a6765..362bd69c4e6 100644 --- a/en-US/dita/RTC-NG/API/class_screencaptureparameters2.dita +++ b/en-US/dita/RTC-NG/API/class_screencaptureparameters2.dita @@ -209,7 +209,7 @@ struct FScreenCaptureParameters2 The video configuration for the shared screen stream. See .This parameter only takes effect when captureVideo is .
          -
          +
          Classes diff --git a/en-US/dita/RTC-NG/API/class_screenvideoparameters.dita b/en-US/dita/RTC-NG/API/class_screenvideoparameters.dita index 5c11133c69f..0a8cec005c4 100644 --- a/en-US/dita/RTC-NG/API/class_screenvideoparameters.dita +++ b/en-US/dita/RTC-NG/API/class_screenvideoparameters.dita @@ -133,7 +133,7 @@ struct FScreenVideoParameters {

          -

          Only available for scenarios where captureVideo is .

          +

          Only available for scenarios where captureVideo is .

          <text conref="../conref/conref_api_metadata.dita#conref_api_metadata/property"/> @@ -160,7 +160,7 @@ struct FScreenVideoParameters {
        - + width The width (px) of the video encoding resolution. The default value is 1280. If the aspect ratio of width to height is different from that of the screen, the SDK adjusts the video encoding resolution according to the following rules (take width × height of 1280 × 720 as an example):
        • When the width and height of the screen are both lower than those of dimensions, the SDK uses the resolution of the screen for video encoding. For example, if the screen is 640 × 360, the SDK uses 640 × 360 for video encoding.
        • @@ -181,7 +181,7 @@ struct FScreenVideoParameters {
        - + height The height (px) of the video encoding resolution. The default value is 720. If the aspect ratio of width to height is different from that of the screen, the SDK adjusts the video encoding resolution according to the following rules (take width × height of 1280 × 720 as an example):
        • When the width and height of the screen are both lower than those of dimensions, the SDK uses the resolution of the screen for video encoding. For example, if the screen is 640 × 360, the SDK uses 640 × 360 for video encoding.
        • @@ -203,7 +203,7 @@ struct FScreenVideoParameters { - frameRate + frameRate frameRate The video encoding frame rate (fps). The default value is 15. @@ -213,7 +213,7 @@ struct FScreenVideoParameters { contentHint - The content hint for screen sharing. See .
            + The content hint for screen sharing. See .
            • (0): (Default) No content hint.
            • (1): Motion-intensive content. Choose this option if you prefer smoothness or when you are sharing a video clip, movie, or video game.
            • (2): Motionless content. Choose this option if you prefer sharpness or when you are sharing a picture, PowerPoint slides, or texts.
            • diff --git a/en-US/dita/RTC-NG/API/class_segmentationproperty.dita b/en-US/dita/RTC-NG/API/class_segmentationproperty.dita index c8346188b90..0a1b54dab96 100644 --- a/en-US/dita/RTC-NG/API/class_segmentationproperty.dita +++ b/en-US/dita/RTC-NG/API/class_segmentationproperty.dita @@ -99,7 +99,7 @@ struct FSegmentationProperty modelType - The type of algorithms to user for background processing. See .
                + The type of algorithms to user for background processing. See .
                • (1): (Default) Use the algorithm suitable for all scenarios.
                • (2): Use the algorithm designed specifically for scenarios with a green screen background.
                diff --git a/en-US/dita/RTC-NG/API/class_useraudiospectruminfo.dita b/en-US/dita/RTC-NG/API/class_useraudiospectruminfo.dita index e710b45dd6a..8bbfcfc680e 100644 --- a/en-US/dita/RTC-NG/API/class_useraudiospectruminfo.dita +++ b/en-US/dita/RTC-NG/API/class_useraudiospectruminfo.dita @@ -73,7 +73,7 @@ struct FUserAudioSpectrumInfo { The user ID of the remote user. - AudioSpectrumInfo + AudioSpectrumInfo audioSpectrumData spectrumData diff --git a/en-US/dita/RTC-NG/API/class_videocanvas.dita b/en-US/dita/RTC-NG/API/class_videocanvas.dita index 09f528d4a4b..2f87319f1ed 100644 --- a/en-US/dita/RTC-NG/API/class_videocanvas.dita +++ b/en-US/dita/RTC-NG/API/class_videocanvas.dita @@ -274,20 +274,20 @@ class VideoCanvas { UImage* LocalVideo; videoCanvas.view = LocalVideo; - + surfaceTexture A container that provides video images. When you use this member, you need to implement texture drawing in OPENGL yourself. See .In one , you can only choose to set either view or surfaceTexture. If both are set, only the settings in view take effect. renderMode The rendering mode of the video. See . -
                +
                mirrorMode

                The mirror mode of the view. See .

                -

                +

                @@ -307,18 +307,18 @@ class VideoCanvas { setupMode Setting mode of the view. See . - Setting mode of the view.
                  + Setting mode of the view.
                  • (0): (Default) Replaces a view.
                  • (1): Adds a view.
                  • (2): Deletes a view.
                  - + mediaPlayerId The ID of the media player. You can get the Device ID by calling . This parameter is required when sourceType is . - + rect (Optional) Display area for the video frame. See . width and height represent the video pixel width and height of the area. The default value is null (width or height is 0), which means that the actual resolution of the video frame is displayed. @@ -336,9 +336,9 @@ class VideoCanvas { enableAlphaMask - (Optional) Whether the receiver enables alpha mask rendering:
                    -
                  • : The receiver enables alpha mask rendering.
                  • -
                  • : (Default) The receiver disables alpha mask rendering.
                  • + (Optional) Whether to enable alpha mask rendering:
                      +
                    • : Enable alpha mask rendering.
                    • +
                    • : (Default) Disable alpha mask rendering.

                    Alpha mask rendering can create images with transparent effects and extract portraits from videos. When used in combination with other methods, you can implement effects such as portrait-in-picture and watermarking.

                    diff --git a/en-US/dita/RTC-NG/API/class_videodenoiseroptions.dita b/en-US/dita/RTC-NG/API/class_videodenoiseroptions.dita index ec79131918b..54ec423171d 100644 --- a/en-US/dita/RTC-NG/API/class_videodenoiseroptions.dita +++ b/en-US/dita/RTC-NG/API/class_videodenoiseroptions.dita @@ -109,7 +109,7 @@ struct FVideoDenoiserOptions level - Video noise reduction level. See .
                      + Video noise reduction level. See .
                      • (0): (Default) Promotes video quality during low-light enhancement. It processes the brightness, details, and noise of the video image. The performance consumption is moderate, the processing speed is moderate, and the overall video quality is optimal.
                      • (1): Promotes reducing performance consumption during video noise reduction. It prioritizes reducing performance consumption over video noise reduction quality. The performance consumption is lower, and the video noise reduction speed is faster. To avoid a noticeable shadowing effect (shadows trailing behind moving objects) in the processed video, Agora recommends that you use this setting when the camera is fixed.
                      • (2): Enhanced video noise reduction. It prioritizes video noise reduction quality over reducing performance consumption. The performance consumption is higher, the video noise reduction speed is slower, and the video noise reduction quality is better. If is not enough for your video noise reduction needs, you can use this enumerator.
                      • @@ -118,7 +118,7 @@ struct FVideoDenoiserOptions mode - Video noise reduction mode. See .
                          + Video noise reduction mode. See .
                          • (0): (Default) Automatic mode. The SDK automatically enables or disables the video noise reduction feature according to the ambient light.
                          • (1): Manual mode. Users need to enable or disable the video noise reduction feature manually.
                          diff --git a/en-US/dita/RTC-NG/API/class_videoencoderconfiguration.dita b/en-US/dita/RTC-NG/API/class_videoencoderconfiguration.dita index a9f5d6fc90f..a524f4c8bb7 100644 --- a/en-US/dita/RTC-NG/API/class_videoencoderconfiguration.dita +++ b/en-US/dita/RTC-NG/API/class_videoencoderconfiguration.dita @@ -610,13 +610,13 @@ struct FVideoEncoderConfiguration degradationPreference - Video degradation preference under limited bandwidth. See . + Video degradation preference under limited bandwidth. See .When this parameter is set to (1) or (2), orientationMode needs to be set to (0) at the same time, otherwise the setting will not take effect. mirrorMode

                          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.

                            +

                            Sets the mirror mode of the published local video stream. It only affects the video that the remote user sees.

                            • (0): The SDK determines whether to enable the mirror mode. The SDK disables mirror mode by default.
                            • (1): Enables the mirror mode for remote users.
                            • (2): Disables the mirror mode for remote users.
                            • diff --git a/en-US/dita/RTC-NG/API/class_videoframe.dita b/en-US/dita/RTC-NG/API/class_videoframe.dita index 759f0db91d7..5c74b9394f6 100644 --- a/en-US/dita/RTC-NG/API/class_videoframe.dita +++ b/en-US/dita/RTC-NG/API/class_videoframe.dita @@ -636,7 +636,7 @@ class VideoFrame { TextureBuffer The buffer for Texture video frames, which can be OES or RGB format. - + buffer This parameter cannot be empty; otherwise, an error can occur.Buffer data. The methods associated with this parameter are as follows: @@ -658,7 +658,7 @@ class VideoFrame { renderTimeMs The Unix timestamp (ms) when the video frame is rendered. This timestamp can be used to guide the rendering of the video frame. This parameter is required. - + timestampNs The timestamp (ns) of a video frame. @@ -685,6 +685,10 @@ class VideoFrame { textureId This parameter only applies to video data in Texture format. Texture ID. + + d3d11Texture2d + This parameter only applies to video data in Windows Texture format. It represents a pointer to an object of type ID3D11Texture2D, which is used by a video frame. + matrix This parameter only applies to video data in Texture format. Incoming 4 × 4 transformational matrix. The typical value is a unit matrix. @@ -693,11 +697,11 @@ class VideoFrame { pixelBuffer Fills the data to CVPixelBuffer. - + colorSpace The color space of a video frame. See . - + sourceType When using the SDK to capture video, this indicates the type of the video source.
                              • kFrontCamera: The front camera.
                              • @@ -705,21 +709,33 @@ class VideoFrame {
                              • kUnspecified: (Default) The video source type is unknown.
                              - + sampleAspectRatio The aspect ratio of a single pixel, which is the ratio of the width to the height of each pixel. - - alphaBuffer + + alphaBuffer + alphaBuf -

                              Indicates the alpha channel data output by the portrait segmentation algorithm, which is consistent with the size of the video frame. The value range of each pixel is [0,255], where 0 represents the background; 255 represents the foreground (portrait).

                              -

                              In the costom video renderer scenario, you can use this parameter to render the video background into various effects, such as: transparent, solid color, picture, video and so on.To use this parameter, contact .

                              +

                              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.

                              + In custom video rendering scenarios, ensure that both the video frame and alphaBuffer are of the Full Range type; other types may cause abnormal alpha data rendering.
                              - + + alphaStitchMode + When the video frame contains alpha channel data, it represents the relative position of alphaBuffer and the video frame. See .
                                +
                              • 0: (Default) Only video frame, that is, alphaBuffer is not stitched with the video frame.
                              • +
                              • (1): alphaBuffer is above the video frame.
                              • +
                              • (2): alphaBuffer is below the video frame.
                              • +
                              • (3): alphaBuffer is to the left of the video frame.
                              • +
                              • (4): alphaBuffer is to the right of the video frame.
                              • +
                              +
                              + metaInfo -

                              The meta information in the video frame. To use this parameter, please .

                              +

                              The meta information in the video frame. To use this parameter, please contact .

    diff --git a/en-US/dita/RTC-NG/API/class_videosubscriptionoptions.dita b/en-US/dita/RTC-NG/API/class_videosubscriptionoptions.dita index 1f718118ff7..257387fb0e2 100644 --- a/en-US/dita/RTC-NG/API/class_videosubscriptionoptions.dita +++ b/en-US/dita/RTC-NG/API/class_videosubscriptionoptions.dita @@ -103,10 +103,10 @@ struct FVideoSubscriptionOptions <text conref="../conref/conref_api_metadata.dita#conref_api_metadata/property"/> - streamType + streamType type The video stream type that you want to subscribe to. The default value is , indicating that the high-quality video streams are subscribed. See . - The video stream type that you want to subscribe to:
      + The video stream type that you want to subscribe to:
      • (0): (Default) High-quality video stream, that is, a high-resolution, high-bit-rate video stream.
      • (1): Low-quality stream, that is, a low-resolution, low-bitrate video stream.
      diff --git a/en-US/dita/RTC-NG/API/class_virtualbackgroundsource.dita b/en-US/dita/RTC-NG/API/class_virtualbackgroundsource.dita index 95bc609d800..4c7f7fead0f 100644 --- a/en-US/dita/RTC-NG/API/class_virtualbackgroundsource.dita +++ b/en-US/dita/RTC-NG/API/class_virtualbackgroundsource.dita @@ -142,7 +142,7 @@ struct FVirtualBackgroundSource backgroundSourceType background_source_type - The custom background. See .
        + The custom background. See .
        • (0): Process the background as alpha information without replacement, only separating the portrait and the background. After setting this value, you can call to implement the picture-in-picture effect.
        • (1): (Default) The background image is a solid color.
        • (2): The background image is a file in PNG or JPG format.
        • @@ -165,7 +165,7 @@ struct FVirtualBackgroundSource blurDegree blur_degree - The degree of blurring applied to the custom background image. See .
            + The degree of blurring applied to the custom background image. See .
            • (1): The degree of blurring applied to the custom background image is low. The user can almost see the background clearly.
            • (2): The degree of blurring applied to the custom background image is medium. It is difficult for the user to recognize details in the background.
            • (3): The degree of blurring applied to the custom background image is high. The user can barely see any distinguishing features in the background.
            • diff --git a/en-US/dita/RTC-NG/API/class_watermarkoptions.dita b/en-US/dita/RTC-NG/API/class_watermarkoptions.dita index 86978415919..ef787a3e3c7 100644 --- a/en-US/dita/RTC-NG/API/class_watermarkoptions.dita +++ b/en-US/dita/RTC-NG/API/class_watermarkoptions.dita @@ -163,7 +163,7 @@ class WatermarkOptions { positionInLandscapeMode - The area to display the watermark image in landscape mode. See . + The area to display the watermark image in landscape mode. See . When the adaptation mode of the watermark is , it is used to set the area of the watermark image in landscape mode. See . The area to display the watermark image in landscape mode. This parameter contains the following members:
              • x: The horizontal position of the watermark relative to the upper left corner.
              • @@ -174,7 +174,7 @@ class WatermarkOptions { positionInPortraitMode - The area to display the watermark image in portrait mode. See . + The area to display the watermark image in portrait mode. See . When the adaptation mode of the watermark is , it is used to set the area of the watermark image in portrait mode. See . The area to display the watermark image in portrait mode. This parameter contains the following members:
                • x: The horizontal position of the watermark relative to the upper left corner.
                • diff --git a/en-US/dita/RTC-NG/API/enum_audioscenariotype.dita b/en-US/dita/RTC-NG/API/enum_audioscenariotype.dita index 036f87bce36..068b5dbd7fc 100644 --- a/en-US/dita/RTC-NG/API/enum_audioscenariotype.dita +++ b/en-US/dita/RTC-NG/API/enum_audioscenariotype.dita @@ -17,11 +17,11 @@ - 5: Chatroom scenario, where users need to frequently switch the user role or mute and unmute the microphone. For example, education scenarios. In this scenario, audience members receive a pop-up window to request permission of using microphones. + 5: Chatroom scenario, where users need to frequently switch the user role or mute and unmute the microphone. For example, education scenarios. - 7: Real-time chorus scenario, where users have good network conditions and require ultra-low latency.Before using this enumeration, you need to call to see whether the audio device supports ultra-low-latency capture and playback. To experience ultra-low latency, you need to ensure that your audio device supports ultra-low latency (isLowLatencyAudioSupported = ). + 7: Real-time chorus scenario, where users have good network conditions and require ultra-low latency.Before using this enumeration, you need to call to see whether the audio device supports ultra-low-latency capture and playback. To experience ultra-low latency, you need to ensure that your audio device supports ultra-low latency (isLowLatencyAudioSupported = ). diff --git a/en-US/dita/RTC-NG/API/enum_cameradirection.dita b/en-US/dita/RTC-NG/API/enum_cameradirection.dita index 82af60e3cbd..480cb93ddb1 100644 --- a/en-US/dita/RTC-NG/API/enum_cameradirection.dita +++ b/en-US/dita/RTC-NG/API/enum_cameradirection.dita @@ -15,7 +15,7 @@ 1: (Default) The front camera. - + 2: The external camera. diff --git a/en-US/dita/RTC-NG/API/enum_clientrolechangefailedreason.dita b/en-US/dita/RTC-NG/API/enum_clientrolechangefailedreason.dita index fc31584cc56..43a1afaac2a 100644 --- a/en-US/dita/RTC-NG/API/enum_clientrolechangefailedreason.dita +++ b/en-US/dita/RTC-NG/API/enum_clientrolechangefailedreason.dita @@ -9,7 +9,7 @@ -

                  1: The number of hosts in the channel is already at the upper limit.

                  +

                  1: The number of hosts in the channel exceeds the limit.

                  This enumerator is reported only when the support for 128 users is enabled. The maximum number of hosts is based on the actual number of hosts configured when you enable the 128-user feature.
                  @@ -18,12 +18,22 @@ -

                  3: The request is timed out. Agora recommends you prompt the user to check the network connection and try to switch their user role again.

                  -
                  +

                  3: The request is timed out. Agora recommends you prompt the user to check the network connection and try to switch their user role again.

                  +
                  + +
                  Deprecated:
                  +
                  This enumerator is deprecated since v4.4.0 and is not recommended for use.
                  +
                  +
                  -

                  4: The SDK connection fails. You can use reason reported in the callback to troubleshoot the failure.

                  -
                  +

                  4: The SDK is disconnected from the Agora edge server. You can troubleshoot the failure through the reason reported by .

                  +
                  + +
                  Deprecated:
                  +
                  This enumerator is deprecated since v4.4.0 and is not recommended for use.
                  +
                  +
    diff --git a/en-US/dita/RTC-NG/API/enum_errorcodetype.dita b/en-US/dita/RTC-NG/API/enum_errorcodetype.dita index b14fb721e14..6c137d0b747 100644 --- a/en-US/dita/RTC-NG/API/enum_errorcodetype.dita +++ b/en-US/dita/RTC-NG/API/enum_errorcodetype.dita @@ -35,7 +35,7 @@ 4: The does not support the request. Possible reasons include the following:
      -
    • The method is called on devices running versions earlier than Android 5.0. Check the Android version.
    • +
    • The method is called on devices running versions earlier than Android 5.0. Check the Android version.
    • The built-in encryption mode is incorrect, or the SDK fails to load the external encryption library. Check the encryption mode setting, or reload the external encryption library.
    @@ -70,7 +70,7 @@ 17: The request to join the channel is rejected. Possible reasons include the following:
      -
    • The user is already in the channel. Agora recommends that you use the callback to determine whether the user exists in the channel. Do not call this method to join the channel unless you receive the (1) state.
    • +
    • The user is already in the channel. Agora recommends that you use the callback to see whether the user is in the channel. Do not call this method to join the channel unless you receive the (1) state.
    • After calling for the call test, the user tries to join the channel without calling to end the current test. To join a channel, the call test must be ended by calling .
    diff --git a/en-US/dita/RTC-NG/API/enum_localvideostreamreason.dita b/en-US/dita/RTC-NG/API/enum_localvideostreamreason.dita index 17485e73429..5d309cc643e 100644 --- a/en-US/dita/RTC-NG/API/enum_localvideostreamreason.dita +++ b/en-US/dita/RTC-NG/API/enum_localvideostreamreason.dita @@ -126,6 +126,10 @@ 29: (Windows only) Screen capture has resumed from paused state. + + + 30: (Windows and macOS only)The displayer used for screen capture is disconnected. + 101: The current video capture device is unavailable due to excessive system pressure. diff --git a/en-US/dita/RTC-NG/API/enum_mediaplayerstate.dita b/en-US/dita/RTC-NG/API/enum_mediaplayerstate.dita index 5ef8b12cf16..ba9f852ad4c 100644 --- a/en-US/dita/RTC-NG/API/enum_mediaplayerstate.dita +++ b/en-US/dita/RTC-NG/API/enum_mediaplayerstate.dita @@ -7,7 +7,7 @@
    Enumerator - + -1: The player state is unknown. diff --git a/en-US/dita/RTC-NG/API/enum_qualitytype.dita b/en-US/dita/RTC-NG/API/enum_qualitytype.dita index 3a4bfc2cd95..07f4b5d6da2 100644 --- a/en-US/dita/RTC-NG/API/enum_qualitytype.dita +++ b/en-US/dita/RTC-NG/API/enum_qualitytype.dita @@ -39,7 +39,7 @@ 7: Users cannot detect the network quality (not in use). - + 8: Detecting the network quality. diff --git a/en-US/dita/RTC-NG/API/enum_rendermodetype.dita b/en-US/dita/RTC-NG/API/enum_rendermodetype.dita index 1cebd5f0742..7145a3cd845 100644 --- a/en-US/dita/RTC-NG/API/enum_rendermodetype.dita +++ b/en-US/dita/RTC-NG/API/enum_rendermodetype.dita @@ -21,11 +21,10 @@ - -
    + 3: Adaptive mode.
    Deprecated:
    -
    3: This mode is deprecated.
    +
    This enumerator is deprecated and not recommended for use.
    diff --git a/en-US/dita/RTC-NG/API/enum_videocodectype.dita b/en-US/dita/RTC-NG/API/enum_videocodectype.dita index 722c01dcffe..236ec8a46b1 100644 --- a/en-US/dita/RTC-NG/API/enum_videocodectype.dita +++ b/en-US/dita/RTC-NG/API/enum_videocodectype.dita @@ -7,11 +7,11 @@
    Enumerator - + 0: (Default) Unspecified codec format. The SDK automatically matches the appropriate codec format based on the current video stream's resolution and device performance. - + 1: Standard VP8. @@ -23,7 +23,7 @@ 3: Standard H.265. - +

    6: Generic.

    @@ -34,7 +34,7 @@ 12:AV1.
    - + 20: Generic JPEG.

    This type consumes minimum computing resources and applies to IoT devices.

    diff --git a/en-US/dita/RTC-NG/API/enum_voiceaitunertype.dita b/en-US/dita/RTC-NG/API/enum_voiceaitunertype.dita new file mode 100644 index 00000000000..0b9726ec196 --- /dev/null +++ b/en-US/dita/RTC-NG/API/enum_voiceaitunertype.dita @@ -0,0 +1,60 @@ + + + + <ph keyref="VOICE_AI_TUNER_TYPE"/> + Voice AI tuner sound types. + +
    +
    + +
    Since
    +
    v4.4.0
    +
    +
    +
    +
    + Enumerator + + + + 0: Mature male voice. A deep and magnetic male voice. + + + + 1: Fresh male voice. A fresh and slightly sweet male voice. + + + + 2: Elegant female voice. A deep and charming female voice. + + + + 3: Sweet female voice. A high-pitched and cute female voice. + + + + 4: Warm male singing. A warm and melodious male voice. + + + + 5: Gentle female singing. A soft and delicate female voice. + + + + 6: Husky male singing. A unique husky male voice. + + + + 7: Warm elegant female singing. A warm and mature female voice. + + + + 8: Powerful male singing. A strong and powerful male voice. + + + + 9: Dreamy female singing. A dreamy and soft female voice. + + +
    +
    diff --git a/en-US/dita/RTC-NG/API/rtc_api_data_type.dita b/en-US/dita/RTC-NG/API/rtc_api_data_type.dita index 951ac801f6e..f38aafe0934 100644 --- a/en-US/dita/RTC-NG/API/rtc_api_data_type.dita +++ b/en-US/dita/RTC-NG/API/rtc_api_data_type.dita @@ -40,6 +40,7 @@
  • +
  • @@ -170,6 +171,7 @@
  • +
  • @@ -213,6 +215,7 @@
  • +
  • @@ -253,28 +256,108 @@
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • +
      +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
        +
      • +
      • +
      • +
      • +
      • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • @@ -308,6 +391,7 @@
    • +
    • @@ -332,6 +416,7 @@
    • +
    • @@ -408,6 +493,7 @@
    • +
    • @@ -433,6 +519,7 @@
    • +
    • @@ -582,100 +669,100 @@
      -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
    • @@ -1123,6 +1210,7 @@
    • +
    • @@ -1177,6 +1265,7 @@
    • +
    • @@ -1214,18 +1303,66 @@
    • +
    • +
    • +
    • +
    -
      +
        +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      +
      • @@ -1303,6 +1440,7 @@
      • +
      • @@ -1352,6 +1490,7 @@
      • +
      @@ -1477,6 +1616,7 @@
    • +
    @@ -1625,142 +1765,142 @@
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    • -
    +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
    • @@ -2134,7 +2274,6 @@
    • -
    • @@ -2167,6 +2306,7 @@
    • +
    • diff --git a/en-US/dita/RTC-NG/API/rtc_api_overview.dita b/en-US/dita/RTC-NG/API/rtc_api_overview.dita index f916ee17416..1007afe5cc6 100644 --- a/en-US/dita/RTC-NG/API/rtc_api_overview.dita +++ b/en-US/dita/RTC-NG/API/rtc_api_overview.dita @@ -4,7 +4,6 @@ API Overview Agora provides ensured quality of experience (QoE) for worldwide Internet-based voice and video communications through SD-RTN™. -

      This page introduces the Unreal C++ API references. If you use Unreal Blueprint SDK, refer to the open source sample project provided by Agora on github, or contact to get the tutorial video.

      Initialization related @@ -16,11 +15,11 @@ - + - + Creates and initializes . Initializes . @@ -57,7 +56,7 @@ - + @@ -73,15 +72,15 @@ - + - + - + @@ -93,15 +92,15 @@ - + - + - + @@ -109,7 +108,7 @@ - + @@ -145,11 +144,11 @@ - + - + @@ -161,11 +160,11 @@ - + - + @@ -186,7 +185,7 @@ - + @@ -194,7 +193,7 @@ - + @@ -202,7 +201,7 @@ - + @@ -210,7 +209,7 @@ - + @@ -218,7 +217,7 @@ - + @@ -226,59 +225,59 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -291,11 +290,11 @@ Method / Callback Description - + - + @@ -315,7 +314,7 @@ - + @@ -339,7 +338,7 @@ - + @@ -347,15 +346,15 @@ - + - + - + @@ -426,13 +425,17 @@
      -
      +
      Audio pre-processing and post-processing Method / Callback Description + + + + @@ -497,7 +500,7 @@ - + @@ -509,7 +512,7 @@ - + @@ -562,7 +565,7 @@ - + @@ -624,7 +627,7 @@
      -
      +
      Encoded audio data @@ -668,11 +671,11 @@ - + - + @@ -696,15 +699,15 @@ - + - + - + @@ -726,7 +729,7 @@
      -
      +
      Audio spectrum @@ -774,7 +777,7 @@ - + @@ -786,11 +789,11 @@ - + - + @@ -810,11 +813,11 @@ - + - + @@ -830,23 +833,23 @@ - + - + - + - + - + @@ -908,7 +911,7 @@ (For Android and iOS only) - + (For Android and iOS only) @@ -962,30 +965,30 @@ Description - - + + - + - + - + - + - + @@ -993,7 +996,7 @@ - + @@ -1001,7 +1004,7 @@ - + @@ -1009,7 +1012,7 @@ - + @@ -1017,7 +1020,7 @@ - + @@ -1025,7 +1028,7 @@ - + @@ -1041,23 +1044,23 @@ - + - + - + - + - + @@ -1082,27 +1085,39 @@ Method / Callback Description - + - + + + + + - + + + + + - + + + + + - + - + @@ -1118,7 +1133,7 @@ - + @@ -1139,7 +1154,7 @@ - + @@ -1155,7 +1170,7 @@ - + @@ -1175,15 +1190,15 @@ - + - + - + @@ -1195,13 +1210,13 @@ - +
      -
      +
      Raw video data @@ -1254,7 +1269,7 @@
      -
      +
      Encoded video data @@ -1306,7 +1321,7 @@ - + @@ -1323,7 +1338,7 @@ Method / Callback Description - + @@ -1351,19 +1366,19 @@ - + - + - + - + @@ -1375,27 +1390,27 @@ - + - + - + - + - + - + @@ -1409,14 +1424,14 @@
      -
      +
      Audio effect file playback Method / Callback Description - + @@ -1444,7 +1459,7 @@ - + @@ -1543,11 +1558,11 @@ Method / Callback Description - + - + @@ -1581,7 +1596,7 @@
      -
      +
      Media player cache @@ -1654,23 +1669,23 @@ - + - - - - + + + + - + @@ -1682,7 +1697,7 @@ - + @@ -1690,7 +1705,7 @@ - + @@ -1722,7 +1737,7 @@ - + @@ -1730,7 +1745,11 @@ - + + + + + @@ -1742,15 +1761,15 @@ - + - + - + @@ -1758,7 +1777,7 @@ - + @@ -1778,7 +1797,7 @@ - + @@ -1864,7 +1883,7 @@ - + @@ -1872,27 +1891,27 @@ - + - + - + - + - + - + @@ -1905,11 +1924,11 @@ Method / Callback Description - + - + @@ -1917,7 +1936,7 @@ - + @@ -1925,7 +1944,7 @@ - + @@ -1933,7 +1952,7 @@ - + @@ -1959,7 +1978,7 @@
      -
      +
      Pushing streams to a CDN directly @@ -2003,7 +2022,7 @@ Method / Callback Description - + @@ -2044,7 +2063,7 @@ - + @@ -2072,7 +2091,7 @@ - + @@ -2090,7 +2109,7 @@
      -
      +
      Audio route

      This group of method is for Android and iOS only.

      @@ -2110,11 +2129,11 @@ - + - + @@ -2196,7 +2215,7 @@
      -
      +
      Video Device Management @@ -2207,7 +2226,7 @@ (For iOS only) - + (For Android and iOS only) @@ -2215,7 +2234,7 @@ - + (For Android and iOS only) @@ -2223,11 +2242,11 @@ (For Android and iOS only) - + (For Android and iOS only) - + (For Android and iOS only) @@ -2235,7 +2254,7 @@ (For Android and iOS only) - + (For Android and iOS only) @@ -2243,7 +2262,7 @@ (For Android and iOS only) - + (For Android and iOS only) @@ -2251,7 +2270,7 @@ (For Android and iOS only) - + (For Android and iOS only) @@ -2259,15 +2278,15 @@ (For Android and iOS only) - + (For Android and iOS only) - + (For Android and iOS only) - + (For Android and iOS only) @@ -2275,7 +2294,7 @@ (For iOS only) - + (For Android and iOS only) @@ -2283,11 +2302,11 @@ (For iOS only) - + (For Android and iOS only) - + (For Android and iOS only) @@ -2295,7 +2314,7 @@ (For Android and iOS only) - + @@ -2368,19 +2387,19 @@ Method / Callback Description - + - + - + - + @@ -2560,7 +2579,7 @@ (For Windows and macOS only) - + (For Android only) @@ -2580,7 +2599,7 @@ - + @@ -2592,27 +2611,27 @@ - + - + - + - + - + - + @@ -2629,19 +2648,11 @@ Method / Callback Description - - - - - - - - - + - + @@ -2665,21 +2676,21 @@ - + - - + + - + - - + + @@ -2697,35 +2708,35 @@ - + - + - + - + - + - + - + - + @@ -2745,11 +2756,11 @@ - + - + @@ -2757,7 +2768,7 @@ - + @@ -2765,18 +2776,22 @@ - + - + - + + + + + @@ -2785,7 +2800,7 @@ - + diff --git a/en-US/dita/RTC-NG/API/rtc_api_sunset.dita b/en-US/dita/RTC-NG/API/rtc_api_sunset.dita new file mode 100644 index 00000000000..1edd5b3319e --- /dev/null +++ b/en-US/dita/RTC-NG/API/rtc_api_sunset.dita @@ -0,0 +1,293 @@ + + + API Sunset Notice + This page introduces the deprecated and deleted APIs in the SDK. + +
      + Deprecated APIs +

      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.

      + + + + + + + + + API + Description + Alternative API + Deprecated version + + + + + + + + v4.4.0 + + + + + + v4.4.0 + + + + + + v4.4.0 + + + + + + v4.4.0 + + + + + + v4.3.1 + + + + + + v4.2.0 + + + + + + v4.2.0 + + + + + + v4.2.0 + + + + + - + v4.0.0 + + + + + Use the logConfig parameter in + v4.0.0 + + + + + + v4.0.0 + + + + + + v4.0.0 + + + + + + v4.0.0 + + + + + or + v4.0.0 + + + + + + v4.0.0 + + + + + + v4.0.0 + + + + + Use the logConfig parameter in + v4.0.0 + + + + + or + v4.0.0 + + + + + + v4.0.0 + + + + + + v4.0.0 + + + + + - + v4.0.0 + + + + + - + v4.0.0 + + + + + - + v4.0.0 + + + + + - + v4.0.0 + + + + + - + v4.0.0 + + + + + - + v4.0.0 + + + +
      +
      +
      + Deleted APIs +

      + + + + + + + + + API + Description + Alternative API + Deleted version + + + + + setVideoProfilesetVideoProfile:profile:swapWidthAndHeight: + Sets the video encoder configuration. + + v4.4.0 + + + setRemoteRenderMode(userId, renderMode)setRemoteRenderMode:uid:mode: + Sets the video display mode of a specified remote user. + + v4.4.0 + + + CreateRendererView + Creates a RendererView. + The Android native method . + v4.4.0 + + + CreateTextureView + + Creates a TextureView. + The Android native method . + v4.4.0 + + + openWithCustomSourceopenWithCustomSourceAtStartPos + Opens the custom media resource file. + + v4.4.0 + + + setVideoQualityParameters + + Sets the preferences for high-quality video. (LIVE_BROADCASTING only). + Use the degradationPreference parameter in + v4.4.0 + + + startEchoTest()startEchoTest + Starts an audio call test. + + v4.4.0 + + + startEchoTest(intervalInSeconds)startEchoTestWithInterval + Starts an audio call test. + + v4.4.0 + + + setEncryptionMode + Sets the built-in encryption mode. + + v4.4.0 + + + setEncryptionSecret + Enables built-in encryption with an encryption password before users join a channel. + + v4.4.0 + + + onExtensionEventonEvent + The event callback of the extension. + + v4.4.0 + + + onExtensionStartedonStarted + Occurs when the extension is enabled. + + v4.4.0 + + + onExtensionStoppedonStopped + Occurs when the extension is disabled. + + v4.4.0 + + + onExtensionErroronError + Occurs when the extension runs incorrectly. + + v4.4.0 + + + +
      +

      + +
      diff --git a/en-US/dita/RTC-NG/API/rtc_interface_class.dita b/en-US/dita/RTC-NG/API/rtc_interface_class.dita index e464635e980..3328dabf765 100644 --- a/en-US/dita/RTC-NG/API/rtc_interface_class.dita +++ b/en-US/dita/RTC-NG/API/rtc_interface_class.dita @@ -1,8 +1,8 @@ -Interface Class -This page lists all interface classes for . +<ph keyref="full-api-title"></ph> +This page lists all interface classes on the platform and the APIs they contain. diff --git a/en-US/dita/RTC-NG/API/rtc_lite_api.dita b/en-US/dita/RTC-NG/API/rtc_lite_api.dita new file mode 100644 index 00000000000..4413bd8ba4e --- /dev/null +++ b/en-US/dita/RTC-NG/API/rtc_lite_api.dita @@ -0,0 +1,587 @@ + + + +Lite SDK API List +This page lists the APIs supported by Lite SDK. + +
      If you cannot find the API you are looking for on this page, it means the Lite SDK does not support this API, and calling it returns error code -2.
      +
      + <ph keyref="IRtcEngine"/> +
        +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • In , the following screen capture-related parameter settings are invalid:
          +
        • publishScreenCaptureVideo
        • +
        • publishScreenCaptureAudio
        • +
      • +
      • +
      • In , the following screen capture-related parameter settings are invalid:
          +
        • publishScreenCaptureVideo
        • +
        • publishScreenCaptureAudio
        • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • 中,config 中的 encodingType 仅支持 OPUS 编码格式。
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • In , the following screen capture-related parameter settings are invalid:
          +
        • publishScreenCaptureVideo
        • +
        • publishScreenCaptureAudio
        • +
      • +
      • +
      • +
      • +
      • +
      • +
      +
      +
      + <ph keyref="IRtcEngineEx"/> +
        +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • In , the following screen capture-related parameter settings are invalid:
          +
        • publishScreenCaptureVideo
        • +
        • publishScreenCaptureAudio
        • +
      • +
      • +
      • +
      • +
      +
      +
      + <ph keyref="IRtcEngineEventHandler"/> +
        +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      +
      +
      + <ph keyref="IMediaExtensionObserver"/> +
        +
      • +
      • +
      • +
      • +
      +
      +
      + <ph keyref="IMediaPlayer"/> + The APIs in this group only support processing audio media files and di not support processing video media files. +
        +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      +
      +
      + <ph keyref="IVideoEncodedFrameObserver"/> +
        +
      • +
      +
      +
      + <ph keyref="IVideoFrameObserver"/> +
        +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      • +
      +
      +
      + <ph keyref="IMediaExtensionObserver"/> +
        +
      • +
      • +
      • +
      • +
      +
      +
      + <ph keyref="IMusicPlayer"/> +
        +
      • +
      • +
      • +
      • +
      • +
      • +
      +
      +
      +