@rongcloud/plugin-rtc 5.2.3 → 5.2.4-beem.3

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.2.3
3
- * CommitId - 57253d26ef6bbe89a514bbfc302e62c92d54886c
4
- * Thu Dec 30 2021 17:49:48 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.2.4-beem.3
3
+ * CommitId - b51c6e49188dcadaf70257fc1d274d978d8db68e
4
+ * Fri May 20 2022 15:05:00 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  import { EventEmitter, LogLevel, RTCMode, IRuntime, RTCPluginContext, IServerRTCRoomEntry, IJoinRTCRoomData, IReceivedMessage, KVString, RTCJoinType, IRTCJoinedInfo, IPluginGenerator } from '@rongcloud/engine';
@@ -770,7 +770,7 @@ interface IRoomEventListener extends IRCRTCTrackEventListener {
770
770
  * 另一种可能是己方 rtcPing 失败次数超出上限
771
771
  * @param byServer 当值为 `false` 时,说明本端 rtcPing 超时;当值为 `true` 时,说明本端收到被踢出房间通知
772
772
  */
773
- onKickOff?(byServer: boolean, state?: RCKickReason): void;
773
+ onKickOff?(byServer: boolean, state?: RCKickReason, kickExtra?: any): void;
774
774
  /**
775
775
  * 接收到房间信令时回调,用户可通过房间实例的 sendMessage 接口发送信令
776
776
  * @param name 信令名
@@ -2226,6 +2226,11 @@ declare abstract class RCAbstractRoom {
2226
2226
  * 退出并销毁当前房间实例,退出后该房间的所有方法将不可用
2227
2227
  */
2228
2228
  __destroy(quitRoom: boolean): Promise<void>;
2229
+ /**
2230
+ * 退出房间之前禁用所有远端资源,避免退出动作耗时过长,
2231
+ * 导致在未完全退出的过程中仍能听到房间内的声音问题
2232
+ */
2233
+ private _muteRemoteTracksBeforeQuit;
2229
2234
  private _leaveHandle;
2230
2235
  private _onLocalTrackDestroied;
2231
2236
  /**
@@ -2717,8 +2722,12 @@ declare class RCRTCClient {
2717
2722
  /**
2718
2723
  * 加入普通音视频房间
2719
2724
  * @param roomId
2725
+ * @param joinType 多端处理方式
2726
+ * @param outerUserDatas 业务层设置人员属性
2727
+ * @param useMutilPeerC
2728
+ * @param roomType 加入房间的类型 默认参数 RTCMode.RTC
2720
2729
  */
2721
- joinRTCRoom(roomId: string, joinType?: RTCJoinType): Promise<{
2730
+ joinRTCRoom(roomId: string, joinType?: RTCJoinType, outerUserDatas?: unknown, useMutilPeerC?: boolean, roomType?: RTCMode): Promise<{
2722
2731
  room?: RCRTCRoom;
2723
2732
  code: RCRTCCode;
2724
2733
  userIds?: string[];