@tencentcloud/tuiroom-engine-js 3.1.0-beta.1 → 3.1.0-beta.2

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,10 +212,7 @@ declare enum TUIChangeReason {
212
212
  declare enum TUIKickedOutOfRoomReason {
213
213
  kKickedByAdmin = 0,
214
214
  kKickedByLoggedOnOtherDevice = 1,
215
- kKickedByServer = 2,
216
- kNetworkDisconnected = 3,
217
- kJoinRoomStatusInvalidDuringOffline = 4,
218
- kCountOfJoinedRoomsExceedLimit = 5
215
+ kKickedByServer = 2
219
216
  }
220
217
  declare enum TUIRequestAction {
221
218
  kInvalidAction = 0,
@@ -265,7 +262,7 @@ type TUISeatInfo = {
265
262
  userName: string;
266
263
  nameCard: string;
267
264
  avatarUrl: string;
268
- isLocked: boolean;
265
+ locked: boolean;
269
266
  isVideoLocked: boolean;
270
267
  isAudioLocked: boolean;
271
268
  };
@@ -1181,7 +1178,7 @@ declare enum TUILiveModifyFlag {
1181
1178
  }
1182
1179
  type TUILiveListResult = {
1183
1180
  cursor: string;
1184
- liveInfoList: Array<TUILiveInfo>;
1181
+ listInfoList: Array<TUILiveInfo>;
1185
1182
  };
1186
1183
  /**
1187
1184
  * @since v2.9.0
@@ -1995,20 +1992,16 @@ declare class TUILiveLayoutManager {
1995
1992
  * "BackgroundColor": "0x1F212C",
1996
1993
  *
1997
1994
  * }
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
- * }
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"
2012
2005
  * }}');
2013
2006
  */
2014
2007
  setLiveStreamLayoutInfo(roomId: string, layoutInfo: string): Promise<void>;
@@ -2308,10 +2301,7 @@ declare class TUIRoomEngine {
2308
2301
  */
2309
2302
  getUserList(options?: {
2310
2303
  nextSequence?: number;
2311
- }): Promise<{
2312
- nextSequence: number;
2313
- userInfoList: Array<TUIUserInfo>;
2314
- }>;
2304
+ }): Promise<Array<TUIUserInfo>>;
2315
2305
  /**
2316
2306
  * 获取用户的详细信息
2317
2307
  * @param {object} options 获取用户信息的参数
@@ -3344,19 +3334,12 @@ declare class TUIRoomEngine {
3344
3334
  * 开始进行麦克风测试
3345
3335
  * @param options
3346
3336
  * @param {number} options.interval 麦克风音量的回调时间
3347
- *
3348
- * @example
3349
- * const roomEngine = new TUIRoomEngine();
3350
- * await roomEngine.startMicDeviceTest({interval: 200});
3351
3337
  */
3352
3338
  startMicDeviceTest(options: {
3353
3339
  interval: number;
3354
3340
  }): Promise<void>;
3355
3341
  /**
3356
3342
  * 停止进行麦克风测试
3357
- * @example
3358
- * const roomEngine = new TUIRoomEngine();
3359
- * await roomEngine.stopMicDeviceTest();
3360
3343
  */
3361
3344
  stopMicDeviceTest(): Promise<void>;
3362
3345
  /**
@@ -3445,4 +3428,5 @@ declare class TUIRoomEngine {
3445
3428
  private static handleSetFramework;
3446
3429
  }
3447
3430
 
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 };
3431
+ export { TRTCRole, TUIAudioQuality, TUIAudioRoute, TUICaptureSourceType, TUIChangeReason, TUIConferenceCancelReason, TUIConferenceInvitationManager, TUIConferenceInvitationManagerEvents, TUIConferenceListManager, TUIConferenceListManagerEvents, TUIConferenceStatus, TUIErrorCode, TUIInvitationCode, TUIInvitationRejectedReason, TUIInvitationStatus, TUIKickedOutOfRoomReason, TUILiveLayoutManager, TUILiveLayoutManagerEvents, TUILiveListManager, 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 };