@tencentcloud/tuiroom-engine-js 3.3.3-beta.1 → 3.4.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
@@ -1236,6 +1236,18 @@ type TUILiveConnectionUser = {
1236
1236
  avatarUrl: string;
1237
1237
  joinConnectionTime: number;
1238
1238
  };
1239
+ /**
1240
+ * 发起连线请求的结果状态码
1241
+ */
1242
+ declare enum TUIConnectionCode {
1243
+ TUIConnectionCodeUnknown = -1,
1244
+ TUIConnectionCodeSuccess = 0,
1245
+ TUIConnectionCodeRoomNotExist = 1,
1246
+ TUIConnectionCodeConnecting = 2,
1247
+ TUIConnectionCodeConnectingOtherRoom = 3,
1248
+ TUIConnectionCodeFull = 4,
1249
+ TUIConnectionCodeRetry = 5
1250
+ }
1239
1251
  type TUILiveModifyInfo = {
1240
1252
  roomId: string;
1241
1253
  isPublicVisible?: boolean;
@@ -2670,7 +2682,7 @@ declare class TUILiveConnectionManager {
2670
2682
  * @param {Array<string>} options.roomIdList 待邀请的连线房间ID列表
2671
2683
  * @param {number} options.timeout 请求超时时间, 单位 s
2672
2684
  * @param {string} options.extensionInfo 扩展信息, 可选, 默认为: ''
2673
- * @returns {Promise<void>}
2685
+ * @returns {Promise<Map<string, TUIConnectionCode>>}
2674
2686
  *
2675
2687
  * @example
2676
2688
  * const roomEngine = new TUIRoomEngine();
@@ -2685,7 +2697,7 @@ declare class TUILiveConnectionManager {
2685
2697
  roomIdList: Array<string>;
2686
2698
  timeout: number;
2687
2699
  extensionInfo?: string;
2688
- }): Promise<void>;
2700
+ }): Promise<Map<string, TUIConnectionCode>>;
2689
2701
  /**
2690
2702
  * 取消跨房连线请求
2691
2703
  *
@@ -4438,8 +4450,9 @@ declare class TUIRoomEngine {
4438
4450
  * @param jsonStr jason 字符串
4439
4451
  * @returns
4440
4452
  */
4441
- callExperimentalAPI(jsonStr: string): Promise<void>;
4453
+ callExperimentalAPI(jsonStr: string): Promise<any>;
4442
4454
  private static handleSetFramework;
4443
4455
  }
4444
4456
 
4445
- export { TRTCRole, TUIAudioQuality, TUIAudioRoute, type TUIAutoPlayCallbackInfo, TUIBattleCode, type TUIBattleConfig, type TUIBattleInfo, TUIBattleStoppedReason, type TUIBattleUser, TUICaptureSourceType, TUIChangeReason, TUIConferenceCancelReason, type TUIConferenceInfo, TUIConferenceInvitationManager, TUIConferenceInvitationManagerEvents, TUIConferenceListManager, TUIConferenceListManagerEvents, type TUIConferenceModifyInfo, TUIConferenceStatus, type TUIDeviceInfo, TUIDeviceStatus, type TUIEnterRoomOptions, TUIErrorCode, type TUIInvitation, TUIInvitationCode, TUIInvitationRejectedReason, TUIInvitationStatus, TUIKickedOutOfRoomReason, TUILiveBattleManagerEvents, TUILiveConnectionManagerEvents, type TUILiveConnectionUser, type TUILiveInfo, TUILiveLayoutManager, TUILiveLayoutManagerEvents, TUILiveListManager, TUILiveListManagerEvents, type TUILiveListResult, TUILiveModifyFlag, type TUILiveModifyInfo, type TUILiveStatisticsData, type TUILoginUserInfo, TUIMediaDevice, TUIMediaDeviceState, TUIMediaDeviceType, type TUIMessage, type TUINetwork, TUINetworkQuality, TUIRenderMode, type TUIRequest, TUIRequestAction, type TUIRequestCallback, TUIRequestCallbackType, TUIResolutionMode, TUIRole, TUIRoomDeviceManager, TUIRoomDeviceMangerEvents, TUIRoomDismissedReason, TUIRoomEvents, type TUIRoomInfo, TUIRoomType, type TUISeatInfo, type TUISeatLayout, type TUISeatLockParams, TUISeatMode, type TUISeatRegion, type TUIUserInfo, type TUIVideoEncoderParams, TUIVideoQuality, TUIVideoStreamType, TUIRoomEngine as default };
4457
+ export { TRTCRole, TUIAudioQuality, TUIAudioRoute, TUIBattleCode, TUIBattleStoppedReason, TUICaptureSourceType, TUIChangeReason, TUIConferenceCancelReason, TUIConferenceInvitationManager, TUIConferenceInvitationManagerEvents, TUIConferenceListManager, TUIConferenceListManagerEvents, TUIConferenceStatus, TUIConnectionCode, TUIDeviceStatus, TUIErrorCode, TUIInvitationCode, TUIInvitationRejectedReason, TUIInvitationStatus, TUIKickedOutOfRoomReason, TUILiveBattleManagerEvents, TUILiveConnectionManagerEvents, TUILiveLayoutManager, TUILiveLayoutManagerEvents, TUILiveListManager, TUILiveListManagerEvents, TUILiveModifyFlag, TUIMediaDevice, TUIMediaDeviceState, TUIMediaDeviceType, TUINetworkQuality, TUIRenderMode, TUIRequestAction, TUIRequestCallbackType, TUIResolutionMode, TUIRole, TUIRoomDeviceManager, TUIRoomDeviceMangerEvents, TUIRoomDismissedReason, TUIRoomEvents, TUIRoomType, TUISeatMode, TUIVideoQuality, TUIVideoStreamType, TUIRoomEngine as default };
4458
+ export type { TUIAutoPlayCallbackInfo, TUIBattleConfig, TUIBattleInfo, TUIBattleUser, TUIConferenceInfo, TUIConferenceModifyInfo, TUIDeviceInfo, TUIEnterRoomOptions, TUIInvitation, TUILiveConnectionUser, TUILiveInfo, TUILiveListResult, TUILiveModifyInfo, TUILiveStatisticsData, TUILoginUserInfo, TUIMessage, TUINetwork, TUIRequest, TUIRequestCallback, TUIRoomInfo, TUISeatInfo, TUISeatLayout, TUISeatLockParams, TUISeatRegion, TUIUserInfo, TUIVideoEncoderParams };