From f27a1a61e5220570045925d39d01c490f2d478f8 Mon Sep 17 00:00:00 2001 From: Cilla-luodan <85477033+Cilla-luodan@users.noreply.github.com> Date: Tue, 24 Sep 2024 10:14:46 +0800 Subject: [PATCH 01/11] 1 --- .../API/callback_ivideoframeobserver_oncapturevideoframe.dita | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 539ef332f39a2a1f940e295c426d2e525e84267b Mon Sep 17 00:00:00 2001 From: Cilla-luodan <85477033+Cilla-luodan@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:53:59 +0800 Subject: [PATCH 02/11] 1 --- dita/RTC-NG/config/keys-rtc-ng-api-ios.ditamap | 8 +------- dita/RTC-NG/config/keys-rtc-ng-api-macos.ditamap | 10 ++-------- 2 files changed, 3 insertions(+), 15 deletions(-) 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 ad057d880da..1bdc38893e8 100644 --- a/dita/RTC-NG/config/keys-rtc-ng-api-ios.ditamap +++ b/dita/RTC-NG/config/keys-rtc-ng-api-ios.ditamap @@ -601,13 +601,7 @@ - - - - open [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 19227d12a0a..1b4ef97a989 100644 --- a/dita/RTC-NG/config/keys-rtc-ng-api-macos.ditamap +++ b/dita/RTC-NG/config/keys-rtc-ng-api-macos.ditamap @@ -558,13 +558,7 @@ - - - - open [2/2] - - - + @@ -1546,7 +1540,7 @@ - stopScreenCapture [1/2] + stopScreenCapture From 8ad3b660bda509b6c1136afbc0cbb8f28e45d314 Mon Sep 17 00:00:00 2001 From: Cilla-luodan <85477033+Cilla-luodan@users.noreply.github.com> Date: Thu, 26 Sep 2024 17:27:23 +0800 Subject: [PATCH 03/11] =?UTF-8?q?=E6=8A=93=E6=8D=95sunset=E6=BC=8F?= =?UTF-8?q?=E7=BD=91=E4=B9=8B=E9=B1=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dita/RTC-NG/API/rtc_api_sunset.dita | 154 +++++++++++++++++- ..._irtcengine_setlocalvoicereverbpreset.dita | 0 ...eventhandler_onchannelmediarelayevent.dita | 0 ...neeventhandler_onfirstlocalaudioframe.dita | 0 ...cengineeventhandler_onstreampublished.dita | 0 ...ngineeventhandler_onstreamunpublished.dita | 0 6 files changed, 152 insertions(+), 2 deletions(-) rename dita/RTC-NG/{API => archive}/api_irtcengine_setlocalvoicereverbpreset.dita (100%) rename dita/RTC-NG/{API => archive}/callback_irtcengineeventhandler_onchannelmediarelayevent.dita (100%) rename dita/RTC-NG/{API => archive}/callback_irtcengineeventhandler_onfirstlocalaudioframe.dita (100%) rename dita/RTC-NG/{API => archive}/callback_irtcengineeventhandler_onstreampublished.dita (100%) rename dita/RTC-NG/{API => archive}/callback_irtcengineeventhandler_onstreamunpublished.dita (100%) 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/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 From 359bb4de0fe75b2d916412183c1eaa90a8b2a0c4 Mon Sep 17 00:00:00 2001 From: Cilla-luodan <85477033+Cilla-luodan@users.noreply.github.com> Date: Thu, 26 Sep 2024 17:29:25 +0800 Subject: [PATCH 04/11] wording --- dita/RTC-NG/API/api_irtcengineex_leavechannelex.dita | 2 +- dita/RTC-NG/API/api_irtcengineex_leavechannelex2.dita | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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/api_irtcengineex_leavechannelex2.dita b/dita/RTC-NG/API/api_irtcengineex_leavechannelex2.dita index 500df0f3a37..133380648df 100644 --- a/dita/RTC-NG/API/api_irtcengineex_leavechannelex2.dita +++ b/dita/RTC-NG/API/api_irtcengineex_leavechannelex2.dita @@ -41,8 +41,8 @@
  • 该方法是异步操作,调用返回时并没有真正退出频道。
  • -
  • 如果你调用了 后,会同时离开 加入的频道。
  • -
  • 如果你调用了 后,会同时离开 加入的频道。
  • +
  • 如果你调用了 ,会同时离开 加入的频道。
  • +
  • 如果你调用了 ,会同时离开 加入的频道。
From d704d6e530313f7ee685a42867e925f831a9c7df Mon Sep 17 00:00:00 2001 From: Suri539 Date: Fri, 27 Sep 2024 11:07:55 +0800 Subject: [PATCH 05/11] bugfix --- dita/RTC-NG/API/api_imusiccontentcenter_getcaches.dita | 2 +- .../API/api_imusiccontentcenter_getinternalsongcode.dita | 4 ++-- dita/RTC-NG/API/api_imusicontentcenter_preload.dita | 2 +- dita/RTC-NG/API/api_irtcengine_renewtoken.dita | 7 ------- ...allback_irtcengineeventhandler_onclientrolechanged.dita | 2 ++ ...back_irtcengineeventhandler_onrejoinchannelsuccess.dita | 2 ++ dita/RTC-NG/RTC_NG_API_Android.ditamap | 2 +- dita/RTC-NG/RTC_NG_API_Harmony.ditamap | 2 +- dita/RTC-NG/config/keys-rtc-ng-api-java.ditamap | 4 ++-- 9 files changed, 12 insertions(+), 15 deletions(-) diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_getcaches.dita b/dita/RTC-NG/API/api_imusiccontentcenter_getcaches.dita index 29e218037a5..350f0452d35 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
-

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

+

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

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

diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_getinternalsongcode.dita b/dita/RTC-NG/API/api_imusiccontentcenter_getinternalsongcode.dita index eccbf636d0d..44f5f1cde96 100644 --- a/dita/RTC-NG/API/api_imusiccontentcenter_getinternalsongcode.dita +++ b/dita/RTC-NG/API/api_imusiccontentcenter_getinternalsongcode.dita @@ -23,10 +23,10 @@ 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_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/callback_irtcengineeventhandler_onclientrolechanged.dita b/dita/RTC-NG/API/callback_irtcengineeventhandler_onclientrolechanged.dita index 2d73b39e573..79c74cfbb74 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_onrejoinchannelsuccess.dita b/dita/RTC-NG/API/callback_irtcengineeventhandler_onrejoinchannelsuccess.dita index 1509afcddb4..49acf37b7db 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/RTC_NG_API_Android.ditamap b/dita/RTC-NG/RTC_NG_API_Android.ditamap index e9a29d7770e..5a823f671f4 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 89121d8e9b9..8e919efbb33 100644 --- a/dita/RTC-NG/RTC_NG_API_Harmony.ditamap +++ b/dita/RTC-NG/RTC_NG_API_Harmony.ditamap @@ -481,7 +481,6 @@ - @@ -550,6 +549,7 @@ + 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] From 8a4d014f9b7e15aeb64edd9694940bd719398358 Mon Sep 17 00:00:00 2001 From: Nero-Hu Date: Fri, 27 Sep 2024 11:31:54 +0800 Subject: [PATCH 06/11] update destroymediarecorder --- dita/RTC-NG/API/api_irtcengine_destroymediarecorder.dita | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dita/RTC-NG/API/api_irtcengine_destroymediarecorder.dita b/dita/RTC-NG/API/api_irtcengine_destroymediarecorder.dita index e0928158e78..58ba7dbba2f 100644 --- a/dita/RTC-NG/API/api_irtcengine_destroymediarecorder.dita +++ b/dita/RTC-NG/API/api_irtcengine_destroymediarecorder.dita @@ -39,7 +39,7 @@ mediaRecorder - 待销毁的音视频录制对象。 + 待销毁的 对象。
From 0a11bb32a3ce409fadfa471696f1c67c7aed1f72 Mon Sep 17 00:00:00 2001 From: Nero-Hu Date: Fri, 27 Sep 2024 11:35:44 +0800 Subject: [PATCH 07/11] unify last mile --- dita/RTC-NG/API/class_lastmileproberesult.dita | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 质量探测。一个可能的原因是网络连接中断。

From f0dba9019d35ac2d4b31e086392a34045d8cbbb9 Mon Sep 17 00:00:00 2001 From: Suri539 Date: Fri, 27 Sep 2024 14:16:40 +0800 Subject: [PATCH 08/11] Update callback_imusiccontentcentereventhandler_onpreloadevent.dita --- ...lback_imusiccontentcentereventhandler_onpreloadevent.dita | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onpreloadevent.dita b/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onpreloadevent.dita index d589422cc0c..8d580877d09 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 会触发该回调。

参数 - + From f917d7b2ed8de10ddf23588d00be4b618f3a657c Mon Sep 17 00:00:00 2001 From: Cilla-luodan <85477033+Cilla-luodan@users.noreply.github.com> Date: Fri, 27 Sep 2024 14:48:43 +0800 Subject: [PATCH 09/11] 1 --- ...llback_imusiccontentcentereventhandler_onpreloadevent.dita | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onpreloadevent.dita b/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onpreloadevent.dita index 8d580877d09..e022dcafdf2 100644 --- a/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onpreloadevent.dita +++ b/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onpreloadevent.dita @@ -51,8 +51,8 @@
v4.1.0
-

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

-

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

+

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

+

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

参数 From e44f94d3eebb9b2df389a7c534221d14214b7f43 Mon Sep 17 00:00:00 2001 From: Suri539 Date: Fri, 27 Sep 2024 15:11:03 +0800 Subject: [PATCH 10/11] Update api_imusiccontentcenter_getinternalsongcode.dita --- .../API/api_imusiccontentcenter_getinternalsongcode.dita | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_getinternalsongcode.dita b/dita/RTC-NG/API/api_imusiccontentcenter_getinternalsongcode.dita index 44f5f1cde96..b6628c469e4 100644 --- a/dita/RTC-NG/API/api_imusiccontentcenter_getinternalsongcode.dita +++ b/dita/RTC-NG/API/api_imusiccontentcenter_getinternalsongcode.dita @@ -23,9 +23,8 @@ Future<int> getInternalSongCode( {required int songCode, required String jsonOption});

-
- 详情 -
+
+
自从
v4.2.2
From 3cbb212142dcf5d7504a2c970dd1f07bb6c12655 Mon Sep 17 00:00:00 2001 From: Suri539 Date: Fri, 27 Sep 2024 15:17:55 +0800 Subject: [PATCH 11/11] Update api_imusiccontentcenter_getcaches.dita --- dita/RTC-NG/API/api_imusiccontentcenter_getcaches.dita | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_getcaches.dita b/dita/RTC-NG/API/api_imusiccontentcenter_getcaches.dita index 350f0452d35..4abb151a5cf 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 来设置。

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