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

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.1
3
+ * CommitId - d026964c6715be7805a3e5c8addd64d4008d17bd
4
+ * Thu May 12 2022 18:57:27 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 信令名
@@ -2717,8 +2717,12 @@ declare class RCRTCClient {
2717
2717
  /**
2718
2718
  * 加入普通音视频房间
2719
2719
  * @param roomId
2720
+ * @param joinType 多端处理方式
2721
+ * @param outerUserDatas 业务层设置人员属性
2722
+ * @param useMutilPeerC
2723
+ * @param roomType 加入房间的类型 默认参数 RTCMode.RTC
2720
2724
  */
2721
- joinRTCRoom(roomId: string, joinType?: RTCJoinType): Promise<{
2725
+ joinRTCRoom(roomId: string, joinType?: RTCJoinType, outerUserDatas?: unknown, useMutilPeerC?: boolean, roomType?: RTCMode): Promise<{
2722
2726
  room?: RCRTCRoom;
2723
2727
  code: RCRTCCode;
2724
2728
  userIds?: string[];