@rongcloud/plugin-rtc 5.3.1 → 5.3.2-alpha.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.3.1
3
- * CommitId - e1af0f5ccb06a0084c94e1219d8af54c9793c06b
4
- * Fri Jan 28 2022 10:45:10 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.3.2-alpha.1
3
+ * CommitId - db999e233480c8537357ef17495b0bbb67c692fe
4
+ * Mon Feb 14 2022 20:24:02 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, IRTCJoinedInfo, IPluginGenerator } from '@rongcloud/engine';
@@ -912,6 +912,19 @@ interface IAudioLevelChangeHandler {
912
912
  declare type RoomData = {
913
913
  [userId: string]: IPublishedResource[];
914
914
  };
915
+ /**
916
+ * pkInfo 接口
917
+ */
918
+ interface IPKInfo {
919
+ [roomId: string]: {
920
+ inviteSessionId: string;
921
+ inviterRoomId: string;
922
+ inviterUserId: string;
923
+ inviterUserAutoMix?: boolean;
924
+ inviteeRoomId: string;
925
+ inviteeUserAutoMix?: boolean;
926
+ };
927
+ }
915
928
  /**
916
929
  * 业务层发起连麦、响应连麦可选参数定义
917
930
  */
@@ -2111,6 +2124,7 @@ interface IRoomPKEventListener {
2111
2124
  onFinishOtherRoom: (info: IPKEndInfo) => {};
2112
2125
  }
2113
2126
  declare class RCLivingPKHandler {
2127
+ private _PKInfo;
2114
2128
  private readonly _context;
2115
2129
  private readonly _runtime;
2116
2130
  private readonly _service;
@@ -2135,14 +2149,13 @@ declare class RCLivingPKHandler {
2135
2149
  /**
2136
2150
  * PK 房间信息
2137
2151
  */
2138
- private _PKInfo;
2139
2152
  private _appListener;
2140
2153
  private _mainRoomId;
2141
2154
  /**
2142
2155
  * 跨房间连麦加入的 PK 房间
2143
2156
  */
2144
2157
  private _joinedPKRooms;
2145
- constructor(_context: RTCPluginContext, _runtime: IRuntime, _service: RCMediaService, _initOptions: IRCRTCInitOptions,
2158
+ constructor(_PKInfo: IPKInfo, _context: RTCPluginContext, _runtime: IRuntime, _service: RCMediaService, _initOptions: IRCRTCInitOptions,
2146
2159
  /**
2147
2160
  * 主直播房间
2148
2161
  */
@@ -2248,6 +2261,10 @@ declare class RCLivingPKHandler {
2248
2261
  inviteeRoomId: string;
2249
2262
  inviteeUserAutoMix?: boolean | undefined;
2250
2263
  };
2264
+ /**
2265
+ * 获取所有连麦信息
2266
+ */
2267
+ getAllPKInfo(): IPKInfo;
2251
2268
  /**
2252
2269
  * 获取已加入的副房间
2253
2270
  */
@@ -3005,6 +3022,7 @@ declare class RCRTCClient {
3005
3022
  * 获取加入的连麦房间
3006
3023
  */
3007
3024
  private _getJoinedPKRoomList;
3025
+ private _getPKRoomIds;
3008
3026
  /**
3009
3027
  * 获取当前用户 Id,若 IM 未连接,这返回 `''`
3010
3028
  * @returns