diff --git a/dita/RTC-NG/API/api_ibasespatialaudioengine_setzones.dita b/dita/RTC-NG/API/api_ibasespatialaudioengine_setzones.dita index 4c04777f28c..8efdd6bddce 100644 --- a/dita/RTC-NG/API/api_ibasespatialaudioengine_setzones.dita +++ b/dita/RTC-NG/API/api_ibasespatialaudioengine_setzones.dita @@ -46,7 +46,7 @@ zones - 隔声区域的设置。详见 。当你将该参数设置为 时,表示清除所有隔声区域。 + 隔声区域的设置。详见 。当你将该参数设置为 时,表示清除所有隔声区域。 在 Windows 平台上,需确保 zones 数组中的成员个数与 zoneCount 的值相等,否则会导致崩溃。 diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_getcaches.dita b/dita/RTC-NG/API/api_imusiccontentcenter_getcaches.dita index 776ec443c01..0d217b65f0a 100644 --- a/dita/RTC-NG/API/api_imusiccontentcenter_getcaches.dita +++ b/dita/RTC-NG/API/api_imusiccontentcenter_getcaches.dita @@ -30,7 +30,7 @@
v4.2.0
-

调用该方法前,你需要预先分配一定大小的内存空间用来存储缓存音乐资源的信息。

+

调用该方法前,你需要预先分配一定大小的内存空间用来存储缓存音乐资源的信息。如果你需要设置可缓存的音乐资源数量,可通过 configurationconfig 来设置。

当你不再需要使用已缓存的音乐资源时,你需要及时释放内存以防止内存泄漏。

diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_getinternalsongcode.dita b/dita/RTC-NG/API/api_imusiccontentcenter_getinternalsongcode.dita index e7191a93e47..a8501eb994a 100644 --- a/dita/RTC-NG/API/api_imusiccontentcenter_getinternalsongcode.dita +++ b/dita/RTC-NG/API/api_imusiccontentcenter_getinternalsongcode.dita @@ -23,10 +23,9 @@ Future<int> getInternalSongCode( {required int songCode, required String jsonOption});

-
- 详情 -
- +
+
+
自从
v4.2.2
diff --git a/dita/RTC-NG/API/api_imusicontentcenter_preload.dita b/dita/RTC-NG/API/api_imusicontentcenter_preload.dita index 3faf1b751c0..22c384814f6 100644 --- a/dita/RTC-NG/API/api_imusicontentcenter_preload.dita +++ b/dita/RTC-NG/API/api_imusicontentcenter_preload.dita @@ -33,7 +33,7 @@

你可以调用该方法预先加载需要播放的音乐资源。成功调用该方法后,SDK 会触发 回调报告预加载音乐资源的事件。

在调用该方法来预加载音乐资源之前,你需要调用 方法来获取你需要播放的音乐资源,并通过由此触发的 回调获取音乐资源的编号(songCode)。

- 如需销毁 对象,请在收到 回调后,再调用 方法。 + 如需销毁 对象,请在收到 回调后,再调用 方法。
参数 diff --git a/dita/RTC-NG/API/api_irtcengine_destroymediarecorder.dita b/dita/RTC-NG/API/api_irtcengine_destroymediarecorder.dita index 96cf774e356..312ab68269e 100644 --- a/dita/RTC-NG/API/api_irtcengine_destroymediarecorder.dita +++ b/dita/RTC-NG/API/api_irtcengine_destroymediarecorder.dita @@ -40,7 +40,7 @@ mediaRecorder recorder - 待销毁的音视频录制对象。 + 待销毁的 对象。
diff --git a/dita/RTC-NG/API/api_irtcengine_enablecontentinspect.dita b/dita/RTC-NG/API/api_irtcengine_enablecontentinspect.dita index d0dab8fcd82..77cb547f8bf 100644 --- a/dita/RTC-NG/API/api_irtcengine_enablecontentinspect.dita +++ b/dita/RTC-NG/API/api_irtcengine_enablecontentinspect.dita @@ -41,7 +41,10 @@
调用限制 -

调用该方法前,请确保已开通本地截图上传服务。

+
    +
  • 调用该方法前,请确保已开通本地截图上传服务。
  • +
  • 视频审核模块选择声网自研插件截图上传()时需集成本地截图上传动态库 ,如果删除该动态库会导致无法正常开启本地截图上传功能。
  • +
参数 @@ -56,9 +59,7 @@ config - 本地截图上传配置。详见 - 视频审核模块选择声网自研插件截图上传()时需集成本地截图上传动态库 ,如果删除该动态库会导致无法正常开启本地截图上传功能。 - + 本地截图上传配置。详见
diff --git a/dita/RTC-NG/API/api_irtcengine_renewtoken.dita b/dita/RTC-NG/API/api_irtcengine_renewtoken.dita index 14d2b0a561e..d73d36817ce 100644 --- a/dita/RTC-NG/API/api_irtcengine_renewtoken.dita +++ b/dita/RTC-NG/API/api_irtcengine_renewtoken.dita @@ -40,13 +40,6 @@ 调用限制

无。

-
参数 diff --git a/dita/RTC-NG/API/api_irtcengine_statechanged.dita b/dita/RTC-NG/API/api_irtcengine_statechanged.dita index 1d2ee65ac53..a0dc38a11ad 100644 --- a/dita/RTC-NG/API/api_irtcengine_statechanged.dita +++ b/dita/RTC-NG/API/api_irtcengine_statechanged.dita @@ -50,7 +50,6 @@

设备状态:

  • 0:设备就绪。
  • -
  • 1:设备正在使用。
  • 3:设备已插入。
  • 8:设备被拔出。

diff --git a/dita/RTC-NG/API/api_irtcengineex_leavechannelex.dita b/dita/RTC-NG/API/api_irtcengineex_leavechannelex.dita index f5a0bdeb767..f59e06629fa 100644 --- a/dita/RTC-NG/API/api_irtcengineex_leavechannelex.dita +++ b/dita/RTC-NG/API/api_irtcengineex_leavechannelex.dita @@ -33,7 +33,7 @@
  • 该方法是异步操作,调用返回时并没有真正退出频道。
  • -
  • 如果你调用了 后,会同时离开 加入的频道。
  • +
  • 如果你调用了 ,会同时离开 加入的频道。
diff --git a/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onpreloadevent.dita b/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onpreloadevent.dita index 0cc4f197b29..eea1b955ced 100644 --- a/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onpreloadevent.dita +++ b/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onpreloadevent.dita @@ -51,12 +51,13 @@
v4.1.0
-

当你调用 方法预加载音乐资源后,SDK 会触发该回调。

+

当你调用 方法预加载音乐资源后,SDK 会触发该回调。

+

当你调用 方法预加载音乐资源后,SDK 会触发该回调。

参数 - + diff --git a/dita/RTC-NG/API/callback_irtcengineeventhandler_onclientrolechanged.dita b/dita/RTC-NG/API/callback_irtcengineeventhandler_onclientrolechanged.dita index 1d8e321e3ed..470b4aea6b9 100644 --- a/dita/RTC-NG/API/callback_irtcengineeventhandler_onclientrolechanged.dita +++ b/dita/RTC-NG/API/callback_irtcengineeventhandler_onclientrolechanged.dita @@ -39,6 +39,8 @@ NS_SWIFT_NAME(rtcEngine(_:didClientRoleChanged:newRole:newRoleOptions:));

+
+
触发时机

在以下任意一种情况时,会触发此回调:

    diff --git a/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocaluserregistered.dita b/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocaluserregistered.dita index 0c379b37bcf..81cca87cbaa 100644 --- a/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocaluserregistered.dita +++ b/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocaluserregistered.dita @@ -25,8 +25,7 @@ onLocalUserRegistered?(uid: number, userAccount: string): void; public virtual void OnLocalUserRegistered(uint uid, string userAccount) {} onLocalUserRegistered?(uid: number, userAccount: string): void; - final void Function(bool isFallbackOrRecover)? - onLocalPublishFallbackToAudioOnly; + final void Function(int uid, String userAccount)? onLocalUserRegistered;

diff --git a/dita/RTC-NG/API/callback_irtcengineeventhandler_onrejoinchannelsuccess.dita b/dita/RTC-NG/API/callback_irtcengineeventhandler_onrejoinchannelsuccess.dita index 0f36e832506..0f23329be95 100644 --- a/dita/RTC-NG/API/callback_irtcengineeventhandler_onrejoinchannelsuccess.dita +++ b/dita/RTC-NG/API/callback_irtcengineeventhandler_onrejoinchannelsuccess.dita @@ -31,6 +31,8 @@ onRejoinChannelSuccess;

+
+
触发时机

有时候由于网络原因,客户端可能会和服务器失去连接,SDK 会进行自动重连,自动重连成功后触发此回调方法。

diff --git a/dita/RTC-NG/API/callback_ivideoframeobserver_oncapturevideoframe.dita b/dita/RTC-NG/API/callback_ivideoframeobserver_oncapturevideoframe.dita index 6fef85a9863..66729309792 100644 --- a/dita/RTC-NG/API/callback_ivideoframeobserver_oncapturevideoframe.dita +++ b/dita/RTC-NG/API/callback_ivideoframeobserver_oncapturevideoframe.dita @@ -61,7 +61,7 @@ sourceType - 视频源类型,可能的视频源包括:摄像头、屏幕或媒体播放器。详见 + 视频源类型,可能的视频源包括:摄像头、屏幕或媒体播放器。详见 videoFrame diff --git a/dita/RTC-NG/API/class_lastmileproberesult.dita b/dita/RTC-NG/API/class_lastmileproberesult.dita index df0eb83b0d9..6859df0f4b3 100644 --- a/dita/RTC-NG/API/class_lastmileproberesult.dita +++ b/dita/RTC-NG/API/class_lastmileproberesult.dita @@ -144,13 +144,13 @@ public: state

Last mile 质量探测结果的状态。详见:

-

Last-mile 质量探测结果的状态,有如下几种: +

Last mile 质量探测结果的状态,有如下几种:

    -
  • (1):表示本次 Last-mile 质量探测是完整的。
  • -
  • (2):表示本次 Last-mile 质量探测未进行带宽预测,因此结果不完整。一个可能的原因是测试资源暂时受限。
  • -
  • (3):未进行 Last-mile 质量探测。一个可能的原因是网络连接中断。
  • +
  • (1):表示本次 Last mile 质量探测是完整的。
  • +
  • (2):表示本次 Last mile 质量探测未进行带宽预测,因此结果不完整。一个可能的原因是测试资源暂时受限。
  • +
  • (3):未进行 Last mile 质量探测。一个可能的原因是网络连接中断。

diff --git a/dita/RTC-NG/API/class_videosubscriptionoptions.dita b/dita/RTC-NG/API/class_videosubscriptionoptions.dita index 02a8b7d2217..8ba4d7a54f4 100644 --- a/dita/RTC-NG/API/class_videosubscriptionoptions.dita +++ b/dita/RTC-NG/API/class_videosubscriptionoptions.dita @@ -119,13 +119,7 @@ public: streamType type - 订阅的视频流类型,默认值为 ,即订阅视频大流。详见 - 订阅的视频流类型: -
    -
  • (0): (默认)视频大流,即高分辨率、高码率视频流。
  • -
  • (1): 视频小流,即低分辨率、低码率视频流。
  • -
-
+ 订阅的视频流类型,默认值为 ,即订阅视频大流。详见
encodedFrameOnly diff --git a/dita/RTC-NG/API/enum_videocodectype.dita b/dita/RTC-NG/API/enum_videocodectype.dita index b49a248a3e8..3896a62be3b 100644 --- a/dita/RTC-NG/API/enum_videocodectype.dita +++ b/dita/RTC-NG/API/enum_videocodectype.dita @@ -25,10 +25,7 @@ - -

6:Generic。

-

本类型主要用于传输视频裸数据(比如用户已加密的视频帧),该类型视频帧以回调的形式返回给用户,需要用户自行解码与渲染。

-
+ 6:Generic。本类型主要用于传输视频裸数据(比如用户已加密的视频帧),该类型视频帧以回调的形式返回给用户,需要用户自行解码与渲染。
@@ -36,9 +33,7 @@ - 20:Generic JPEG。 -

本类型所需的算力较小,可用于算力有限的 IoT 设备。

-
+ 20:Generic JPEG。本类型所需的算力较小,可用于算力有限的 IoT 设备。
diff --git a/dita/RTC-NG/API/rtc_api_sunset.dita b/dita/RTC-NG/API/rtc_api_sunset.dita index 26d4d660c81..109ae3350f7 100644 --- a/dita/RTC-NG/API/rtc_api_sunset.dita +++ b/dita/RTC-NG/API/rtc_api_sunset.dita @@ -7,7 +7,7 @@ 已废弃 API

废弃后的 API 预计会在 1 年左右正式下架。声网建议你尽快使用推荐的 API 进行替换,以免影响线上业务。

-
+
@@ -103,6 +103,18 @@ v4.0.0 + + + + + v4.0.0 + + + + + + v4.0.0 + @@ -127,6 +139,12 @@ 使用 中的 contextconfig 参数 v4.0.0 + + + + 使用 中的 contextconfig 参数 + v4.0.0 + @@ -151,6 +169,12 @@ v4.0.0 + + + + + v4.0.0 + @@ -199,6 +223,48 @@ - v4.0.0 + + + + + v4.0.0 + + + + + + v4.0.0 + + + + + + v4.0.0 + + + + + + v4.0.0 + + + + + + v4.0.0 + + + + + + v4.0.0 + + + + + + v4.0.0 + @@ -211,6 +277,12 @@ v4.0.0 + + + + + v4.0.0 +
@@ -305,6 +377,18 @@ v4.0.0 + + + + + v4.0.0 + + + + + + v4.0.0 + @@ -329,6 +413,12 @@ 使用 中的 contextconfig 参数 v4.0.0 + + + + 使用 中的 contextconfig 参数 + v4.0.0 + @@ -353,6 +443,18 @@ v4.0.0 + + + + + v4.0.0 + + + + + + v4.0.0 + @@ -395,18 +497,66 @@ - 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 - + v4.0.0 + + + + + v4.0.0 + diff --git a/dita/RTC-NG/RTC_NG_API_Android.ditamap b/dita/RTC-NG/RTC_NG_API_Android.ditamap index d4ec4d99a54..61623f7a9c1 100644 --- a/dita/RTC-NG/RTC_NG_API_Android.ditamap +++ b/dita/RTC-NG/RTC_NG_API_Android.ditamap @@ -481,7 +481,6 @@ - @@ -553,6 +552,7 @@ + diff --git a/dita/RTC-NG/RTC_NG_API_Harmony.ditamap b/dita/RTC-NG/RTC_NG_API_Harmony.ditamap index db9d21b3e4f..32d4d892ba4 100644 --- a/dita/RTC-NG/RTC_NG_API_Harmony.ditamap +++ b/dita/RTC-NG/RTC_NG_API_Harmony.ditamap @@ -476,7 +476,6 @@ - @@ -545,6 +544,7 @@ + diff --git a/dita/RTC-NG/RTC_NG_API_Unity.ditamap b/dita/RTC-NG/RTC_NG_API_Unity.ditamap index 319cac84589..1ef6abcd172 100644 --- a/dita/RTC-NG/RTC_NG_API_Unity.ditamap +++ b/dita/RTC-NG/RTC_NG_API_Unity.ditamap @@ -287,7 +287,6 @@ - @@ -350,6 +349,7 @@ + diff --git a/dita/RTC-NG/API/api_irtcengine_setlocalvoicereverbpreset.dita b/dita/RTC-NG/archive/api_irtcengine_setlocalvoicereverbpreset.dita similarity index 100% rename from dita/RTC-NG/API/api_irtcengine_setlocalvoicereverbpreset.dita rename to dita/RTC-NG/archive/api_irtcengine_setlocalvoicereverbpreset.dita diff --git a/dita/RTC-NG/API/callback_irtcengineeventhandler_onchannelmediarelayevent.dita b/dita/RTC-NG/archive/callback_irtcengineeventhandler_onchannelmediarelayevent.dita similarity index 100% rename from dita/RTC-NG/API/callback_irtcengineeventhandler_onchannelmediarelayevent.dita rename to dita/RTC-NG/archive/callback_irtcengineeventhandler_onchannelmediarelayevent.dita diff --git a/dita/RTC-NG/API/callback_irtcengineeventhandler_onfirstlocalaudioframe.dita b/dita/RTC-NG/archive/callback_irtcengineeventhandler_onfirstlocalaudioframe.dita similarity index 100% rename from dita/RTC-NG/API/callback_irtcengineeventhandler_onfirstlocalaudioframe.dita rename to dita/RTC-NG/archive/callback_irtcengineeventhandler_onfirstlocalaudioframe.dita diff --git a/dita/RTC-NG/API/callback_irtcengineeventhandler_onstreampublished.dita b/dita/RTC-NG/archive/callback_irtcengineeventhandler_onstreampublished.dita similarity index 100% rename from dita/RTC-NG/API/callback_irtcengineeventhandler_onstreampublished.dita rename to dita/RTC-NG/archive/callback_irtcengineeventhandler_onstreampublished.dita diff --git a/dita/RTC-NG/API/callback_irtcengineeventhandler_onstreamunpublished.dita b/dita/RTC-NG/archive/callback_irtcengineeventhandler_onstreamunpublished.dita similarity index 100% rename from dita/RTC-NG/API/callback_irtcengineeventhandler_onstreamunpublished.dita rename to dita/RTC-NG/archive/callback_irtcengineeventhandler_onstreamunpublished.dita diff --git a/dita/RTC-NG/config/keys-rtc-ng-api-ios.ditamap b/dita/RTC-NG/config/keys-rtc-ng-api-ios.ditamap index 6abda2d0f86..1bdc38893e8 100644 --- a/dita/RTC-NG/config/keys-rtc-ng-api-ios.ditamap +++ b/dita/RTC-NG/config/keys-rtc-ng-api-ios.ditamap @@ -450,7 +450,7 @@ - createMediaPlayerWithDelegate: + createMediaPlayerWithDelegate: @@ -601,13 +601,7 @@ - - - - open [2/2] - - - + @@ -3524,7 +3518,7 @@ - getErrorDescription: + getErrorDescription: diff --git a/dita/RTC-NG/config/keys-rtc-ng-api-java.ditamap b/dita/RTC-NG/config/keys-rtc-ng-api-java.ditamap index be3fcc2ed72..dd3da6e473e 100644 --- a/dita/RTC-NG/config/keys-rtc-ng-api-java.ditamap +++ b/dita/RTC-NG/config/keys-rtc-ng-api-java.ditamap @@ -763,7 +763,7 @@ - stop + stop [1/2] @@ -3434,7 +3434,7 @@ - stop + stop [2/2] diff --git a/dita/RTC-NG/config/keys-rtc-ng-api-macos.ditamap b/dita/RTC-NG/config/keys-rtc-ng-api-macos.ditamap index 170af666800..1b4ef97a989 100644 --- a/dita/RTC-NG/config/keys-rtc-ng-api-macos.ditamap +++ b/dita/RTC-NG/config/keys-rtc-ng-api-macos.ditamap @@ -407,7 +407,7 @@ - createMediaPlayerWithDelegate: + createMediaPlayerWithDelegate: @@ -558,13 +558,7 @@ - - - - open [2/2] - - - + @@ -1546,7 +1540,7 @@ - stopScreenCapture [1/2] + stopScreenCapture @@ -3263,7 +3257,7 @@ - getErrorDescription: + getErrorDescription: diff --git a/dita/RTC-NG/config/keys-rtc-ng-links.ditamap b/dita/RTC-NG/config/keys-rtc-ng-links.ditamap index 81cd7944327..5611004f6b7 100644 --- a/dita/RTC-NG/config/keys-rtc-ng-links.ditamap +++ b/dita/RTC-NG/config/keys-rtc-ng-links.ditamap @@ -19,21 +19,21 @@ - + 获取曲库所有歌曲列表 - + 获取增量歌曲列表 - + 在线 K 歌房文档 diff --git a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocaluserregistered.dita b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocaluserregistered.dita index 0586275c488..6d25a781a0f 100644 --- a/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocaluserregistered.dita +++ b/en-US/dita/RTC-NG/API/callback_irtcengineeventhandler_onlocaluserregistered.dita @@ -25,8 +25,7 @@ onLocalUserRegistered?(uid: number, userAccount: string): void; public virtual void OnLocalUserRegistered(uint uid, string userAccount) {} onLocalUserRegistered?(uid: number, userAccount: string): void; - final void Function(bool isFallbackOrRecover)? - onLocalPublishFallbackToAudioOnly; + final void Function(int uid, String userAccount)? onLocalUserRegistered;

diff --git a/en-US/dita/RTC-NG/config/keys-rtc-ng-api-ios.ditamap b/en-US/dita/RTC-NG/config/keys-rtc-ng-api-ios.ditamap index 6abda2d0f86..1bdc38893e8 100644 --- a/en-US/dita/RTC-NG/config/keys-rtc-ng-api-ios.ditamap +++ b/en-US/dita/RTC-NG/config/keys-rtc-ng-api-ios.ditamap @@ -450,7 +450,7 @@ - createMediaPlayerWithDelegate: + createMediaPlayerWithDelegate: @@ -601,13 +601,7 @@ - - - - open [2/2] - - - + @@ -3524,7 +3518,7 @@ - getErrorDescription: + getErrorDescription: diff --git a/en-US/dita/RTC-NG/config/keys-rtc-ng-api-java.ditamap b/en-US/dita/RTC-NG/config/keys-rtc-ng-api-java.ditamap index be3fcc2ed72..dd3da6e473e 100644 --- a/en-US/dita/RTC-NG/config/keys-rtc-ng-api-java.ditamap +++ b/en-US/dita/RTC-NG/config/keys-rtc-ng-api-java.ditamap @@ -763,7 +763,7 @@ - stop + stop [1/2] @@ -3434,7 +3434,7 @@ - stop + stop [2/2] diff --git a/en-US/dita/RTC-NG/config/keys-rtc-ng-api-macos.ditamap b/en-US/dita/RTC-NG/config/keys-rtc-ng-api-macos.ditamap index 170af666800..1b4ef97a989 100644 --- a/en-US/dita/RTC-NG/config/keys-rtc-ng-api-macos.ditamap +++ b/en-US/dita/RTC-NG/config/keys-rtc-ng-api-macos.ditamap @@ -407,7 +407,7 @@ - createMediaPlayerWithDelegate: + createMediaPlayerWithDelegate: @@ -558,13 +558,7 @@ - - - - open [2/2] - - - + @@ -1546,7 +1540,7 @@ - stopScreenCapture [1/2] + stopScreenCapture @@ -3263,7 +3257,7 @@ - getErrorDescription: + getErrorDescription: