@tencentcloud/tuiroom-engine-js 3.0.6 → 3.1.0-beta.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/index.d.ts CHANGED
@@ -212,7 +212,10 @@ declare enum TUIChangeReason {
212
212
  declare enum TUIKickedOutOfRoomReason {
213
213
  kKickedByAdmin = 0,
214
214
  kKickedByLoggedOnOtherDevice = 1,
215
- kKickedByServer = 2
215
+ kKickedByServer = 2,
216
+ kNetworkDisconnected = 3,
217
+ kJoinRoomStatusInvalidDuringOffline = 4,
218
+ kCountOfJoinedRoomsExceedLimit = 5
216
219
  }
217
220
  declare enum TUIRequestAction {
218
221
  kInvalidAction = 0,
@@ -262,7 +265,7 @@ type TUISeatInfo = {
262
265
  userName: string;
263
266
  nameCard: string;
264
267
  avatarUrl: string;
265
- locked: boolean;
268
+ isLocked: boolean;
266
269
  isVideoLocked: boolean;
267
270
  isAudioLocked: boolean;
268
271
  };
@@ -1178,7 +1181,7 @@ declare enum TUILiveModifyFlag {
1178
1181
  }
1179
1182
  type TUILiveListResult = {
1180
1183
  cursor: string;
1181
- listInfoList: Array<TUILiveInfo>;
1184
+ liveInfoList: Array<TUILiveInfo>;
1182
1185
  };
1183
1186
  /**
1184
1187
  * @since v2.9.0
@@ -1992,16 +1995,20 @@ declare class TUILiveLayoutManager {
1992
1995
  * "BackgroundColor": "0x1F212C",
1993
1996
  *
1994
1997
  * }
1995
- * ]
1996
- * },
1997
- * // 设置最大画面,只能有一路
1998
- * "MaxUserLayout": {
1999
- * "ZOrder": 0, //层级
2000
- * "StreamType": 0, // 0为摄像头, 1为屏幕共享
2001
- * "Member_Account": "admin001",
2002
- * "BackgroundImageUrl": "ImageUrl", //可以设置看看,可能在最大画面时候没作用
2003
- * "RoomId":"roomId",
2004
- * "BackgroundColor":"0x1F212C"
1998
+ * ],
1999
+ * // 设置最大画面,只能有一路
2000
+ * "MaxUserLayout": {
2001
+ * "LocationX": 0, // 以画面左上角为原点的 x 坐标
2002
+ * "LocationY": 0, // 以画面左上角为原点的 y 坐标
2003
+ * "ImageWidth": 1920, // 调整后的画面宽度
2004
+ * "ImageHeight": 1080, // 调整后的画面高度
2005
+ * "ZOrder": 0, // 层级
2006
+ * "StreamType": 0, // 0为摄像头, 1为屏幕共享
2007
+ * "Member_Account": "admin001",
2008
+ * "BackgroundImageUrl": "ImageUrl", // 可以设置看看,可能在最大画面时候没作用
2009
+ * "RoomId":"roomId",
2010
+ * "BackgroundColor":"0x1F212C"
2011
+ * }
2005
2012
  * }}');
2006
2013
  */
2007
2014
  setLiveStreamLayoutInfo(roomId: string, layoutInfo: string): Promise<void>;
@@ -2301,7 +2308,10 @@ declare class TUIRoomEngine {
2301
2308
  */
2302
2309
  getUserList(options?: {
2303
2310
  nextSequence?: number;
2304
- }): Promise<Array<TUIUserInfo>>;
2311
+ }): Promise<{
2312
+ nextSequence: number;
2313
+ userInfoList: Array<TUIUserInfo>;
2314
+ }>;
2305
2315
  /**
2306
2316
  * 获取用户的详细信息
2307
2317
  * @param {object} options 获取用户信息的参数
@@ -3334,12 +3344,19 @@ declare class TUIRoomEngine {
3334
3344
  * 开始进行麦克风测试
3335
3345
  * @param options
3336
3346
  * @param {number} options.interval 麦克风音量的回调时间
3347
+ *
3348
+ * @example
3349
+ * const roomEngine = new TUIRoomEngine();
3350
+ * await roomEngine.startMicDeviceTest({interval: 200});
3337
3351
  */
3338
3352
  startMicDeviceTest(options: {
3339
3353
  interval: number;
3340
3354
  }): Promise<void>;
3341
3355
  /**
3342
3356
  * 停止进行麦克风测试
3357
+ * @example
3358
+ * const roomEngine = new TUIRoomEngine();
3359
+ * await roomEngine.stopMicDeviceTest();
3343
3360
  */
3344
3361
  stopMicDeviceTest(): Promise<void>;
3345
3362
  /**
@@ -3428,5 +3445,4 @@ declare class TUIRoomEngine {
3428
3445
  private static handleSetFramework;
3429
3446
  }
3430
3447
 
3431
- export { TRTCRole, TUIAudioQuality, TUIAudioRoute, TUICaptureSourceType, TUIChangeReason, TUIConferenceCancelReason, TUIConferenceInvitationManager, TUIConferenceInvitationManagerEvents, TUIConferenceListManager, TUIConferenceListManagerEvents, TUIConferenceStatus, TUIErrorCode, TUIInvitationCode, TUIInvitationRejectedReason, TUIInvitationStatus, TUIKickedOutOfRoomReason, TUILiveLayoutManagerEvents, TUILiveListManagerEvents, TUILiveModifyFlag, TUIMediaDevice, TUIMediaDeviceState, TUIMediaDeviceType, TUINetworkQuality, TUIRequestAction, TUIRequestCallbackType, TUIResolutionMode, TUIRole, TUIRoomDeviceManager, TUIRoomDeviceMangerEvents, TUIRoomDismissedReason, TUIRoomEvents, TUIRoomType, TUISeatMode, TUIVideoQuality, TUIVideoStreamType, TUIRoomEngine as default };
3432
- export type { TUIAutoPlayCallbackInfo, TUIConferenceInfo, TUIConferenceModifyInfo, TUIDeviceInfo, TUIEnterRoomOptions, TUIInvitation, TUILiveInfo, TUILiveListResult, TUILiveModifyInfo, TUILoginUserInfo, TUIMessage, TUINetwork, TUIRequest, TUIRequestCallback, TUIRoomInfo, TUISeatInfo, TUISeatLockParams, TUIUserInfo, TUIVideoEncoderParams };
3448
+ export { TRTCRole, TUIAudioQuality, TUIAudioRoute, type TUIAutoPlayCallbackInfo, TUICaptureSourceType, TUIChangeReason, TUIConferenceCancelReason, type TUIConferenceInfo, TUIConferenceInvitationManager, TUIConferenceInvitationManagerEvents, TUIConferenceListManager, TUIConferenceListManagerEvents, type TUIConferenceModifyInfo, TUIConferenceStatus, type TUIDeviceInfo, type TUIEnterRoomOptions, TUIErrorCode, type TUIInvitation, TUIInvitationCode, TUIInvitationRejectedReason, TUIInvitationStatus, TUIKickedOutOfRoomReason, type TUILiveInfo, TUILiveLayoutManagerEvents, TUILiveListManager, TUILiveListManagerEvents, type TUILiveListResult, TUILiveModifyFlag, type TUILiveModifyInfo, type TUILoginUserInfo, TUIMediaDevice, TUIMediaDeviceState, TUIMediaDeviceType, type TUIMessage, type TUINetwork, TUINetworkQuality, type TUIRequest, TUIRequestAction, type TUIRequestCallback, TUIRequestCallbackType, TUIResolutionMode, TUIRole, TUIRoomDeviceManager, TUIRoomDeviceMangerEvents, TUIRoomDismissedReason, TUIRoomEvents, type TUIRoomInfo, TUIRoomType, type TUISeatInfo, type TUISeatLockParams, TUISeatMode, type TUIUserInfo, type TUIVideoEncoderParams, TUIVideoQuality, TUIVideoStreamType, TUIRoomEngine as default };