@rongcloud/plugin-rtc 5.3.7-alpha.1 → 5.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
- * RCRTC - v5.3.7-alpha.1
3
- * CommitId - aca944e2fa79b4f5e894c21aaaec789528e8f3fc
4
- * Fri Apr 15 2022 18:00:48 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.3.7
3
+ * CommitId - 9e19165cf1ecfebf6d1f6b6caa947acfa558b0b3
4
+ * Sat Apr 16 2022 18:34:55 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  import { EventEmitter, LogLevel, RTCMode, IRuntime, RTCPluginContext, IServerRTCRoomEntry, IReceivedMessage, ErrorCode, IJoinRTCRoomData, KVString, RTCJoinType, IRTCUserData, IRTCJoinedInfo, IPluginGenerator } from '@rongcloud/engine';
@@ -1608,7 +1608,7 @@ interface IMCUConfig {
1608
1608
  */
1609
1609
  waterMark?: IMCUWaterMarkConfig;
1610
1610
  /**
1611
- * 设置合流混入音频、视频的模式
1611
+ * MCU 拉流配置,决定 MCU 从 MediaServer 拉流的方式
1612
1612
  */
1613
1613
  inputFilterMode?: RCMixInputFilterMode;
1614
1614
  /**
@@ -2852,20 +2852,28 @@ declare class RCMCUConfigBuilder {
2852
2852
  */
2853
2853
  clearCustomizeLayoutVideo(): RCMCUConfigBuilder;
2854
2854
  /**
2855
- * 设置要合入 MCU 的音频
2856
- * @param trackIds 一组音频 trackId
2855
+ * 覆盖设置合流媒体中的音频流
2856
+ * @param trackIds 音频流 trackId 数组,当数组长度为 0 时,则合流媒体中将无音频输出
2857
+ * @returns
2858
+ */
2859
+ setCustomizeInputAudio(trackIds: string[]): RCMCUConfigBuilder;
2860
+ /**
2861
+ * 向既有的音频流合流配置中增加一道音频流
2862
+ * @param trackId 音频 trackId
2863
+ * @since v5.3.7
2857
2864
  */
2858
- setCustomInputAudio(trackIds: string[]): RCMCUConfigBuilder;
2865
+ addCustomizeInputAudio(trackId: string): RCMCUConfigBuilder;
2859
2866
  /**
2860
- * 清除某个已设置合入 MCU 的音频
2867
+ * 从既有的音频流合流配置中删除一道音频流
2861
2868
  * @param trackId 音频对应的 trackId
2869
+ * @since v5.3.7
2862
2870
  */
2863
- removeCustomInputAudio(trackId: string): RCMCUConfigBuilder;
2871
+ removeCustomizeInputAudio(trackId: string): RCMCUConfigBuilder;
2864
2872
  /**
2865
- * 清除所有已设置合入 MCU 的音频
2873
+ * 清除音频流合流配置,恢复房间内的全音频流合流输出
2874
+ * @since v5.3.7
2866
2875
  */
2867
- clearCustomInputAudio(): RCMCUConfigBuilder;
2868
- private _validateInputVideoParams;
2876
+ clearCustomizeInputAudio(): RCMCUConfigBuilder;
2869
2877
  /**
2870
2878
  * 设置 MCU 混流配置
2871
2879
  * @param videoList 视频输入混流列表,为 null 代表视频全混流,为空集合代表视频全不混流,否则按照输入列表进行混流
@@ -2879,10 +2887,18 @@ declare class RCMCUConfigBuilder {
2879
2887
  * * true 为增量混流
2880
2888
  * * false 为全量覆盖混流
2881
2889
  */
2890
+ /**
2891
+ * 重置所有合流配置
2892
+ * @since v5.3.7
2893
+ * @returns
2894
+ */
2895
+ reset(): RCMCUConfigBuilder;
2882
2896
  /**
2883
2897
  * 使已修改的配置生效,在调用该方法前,所有数据只会对本地配置进行修改,不会产生实际效果
2898
+ * @param reset 调用完成后清空当前配置记录,默认为 `true`(v5.3.7 版本开始启用)
2899
+ * @returns
2884
2900
  */
2885
- flush(): Promise<{
2901
+ flush(reset?: boolean): Promise<{
2886
2902
  code: RCRTCCode;
2887
2903
  }>;
2888
2904
  }