@tencentcloud/tuiroom-engine-js 4.0.6-beta.2 → 4.0.6-beta.3

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
@@ -1288,6 +1288,7 @@ type TUILiveInfo = {
1288
1288
  backgroundUrl: string;
1289
1289
  categoryList: Array<number>;
1290
1290
  activityStatus: number;
1291
+ cloudRecordPolicy: TUICloudRecordPolicy;
1291
1292
  readonly roomOwner?: string;
1292
1293
  readonly ownerName?: string;
1293
1294
  readonly ownerAvatarUrl?: string;
@@ -1317,6 +1318,7 @@ type StartLiveOptions = {
1317
1318
  backgroundUrl?: string;
1318
1319
  categoryList?: Array<number>;
1319
1320
  activityStatus?: number;
1321
+ cloudRecordPolicy?: TUICloudRecordPolicy;
1320
1322
  };
1321
1323
  /**
1322
1324
  * 直播连线用户信息
@@ -1342,6 +1344,7 @@ declare enum TUIConnectionCode {
1342
1344
  }
1343
1345
  type TUILiveModifyInfo = {
1344
1346
  roomId: string;
1347
+ name?: string;
1345
1348
  isPublicVisible?: boolean;
1346
1349
  activityStatus?: number;
1347
1350
  coverUrl?: string;
@@ -1514,6 +1517,11 @@ declare enum TUILiveStatisticsModifyFlag {
1514
1517
  kTotalLikesReceived = 16,
1515
1518
  kTotalMessageCount = 32
1516
1519
  }
1520
+ declare enum TUICloudRecordPolicy {
1521
+ kFollowConsoleConfig = 0,
1522
+ kEnable = 1,
1523
+ kDisable = 2
1524
+ }
1517
1525
  /**
1518
1526
  * @since v3.0.5
1519
1527
  * **TUILiveConnectionManager** 事件列表<br>
@@ -2639,6 +2647,7 @@ declare class TUILiveListManager {
2639
2647
  *
2640
2648
  * @param {object} options
2641
2649
  * @param {string} options.roomId 直播房间 ID
2650
+ * @param {string} options.name 可选,直播间名称
2642
2651
  * @param {number} options.activityStatus 可选,直播间活跃状态: 用户自定义标记
2643
2652
  * @param {Array<number>} options.categoryList 可选,直播间分类标签,单个房间最大支持3个标记
2644
2653
  * @param {string} options.coverUrl 可选,直播间封面图片 HTTP URL 地址,最大支持 200 个字节
@@ -2651,6 +2660,7 @@ declare class TUILiveListManager {
2651
2660
  * const liveListManager = roomEngine.getLiveListManager();
2652
2661
  * liveListManager.setLiveInfo({
2653
2662
  * roomId: "141569",
2663
+ * name: "My Live Room",
2654
2664
  * coverUrl: "https://qcloudimg.tencent-cloud.cn/image/document/live-cover.png",
2655
2665
  * isPublicVisible: false,
2656
2666
  * activityStatus: 1,
@@ -2660,6 +2670,7 @@ declare class TUILiveListManager {
2660
2670
  */
2661
2671
  setLiveInfo(options: {
2662
2672
  roomId: string;
2673
+ name?: string;
2663
2674
  activityStatus?: number;
2664
2675
  categoryList?: Array<number>;
2665
2676
  coverUrl?: string;
@@ -2963,6 +2974,26 @@ declare class TUILiveConnectionManager {
2963
2974
  * liveConnectionManager.disconnect();
2964
2975
  */
2965
2976
  disconnect(): Promise<void>;
2977
+ /**
2978
+ * 静音/取消静音连线房间
2979
+ *
2980
+ * @param {object} options
2981
+ * @param {string} options.roomId 直播房间 ID
2982
+ * @param {boolean} options.mute 是否静音, true: 静音, false: 取消静音
2983
+ * @returns {Promise<void>}
2984
+ *
2985
+ * @example
2986
+ * const roomEngine = TUIRoomEngine.getInstance();
2987
+ * const liveConnectionManager = roomEngine.getLiveConnectionManager();
2988
+ * liveConnectionManager.muteConnection({
2989
+ * roomId: 'roomId',
2990
+ * mute: true
2991
+ * });
2992
+ */
2993
+ muteConnection(options: {
2994
+ roomId: string;
2995
+ mute: boolean;
2996
+ }): Promise<void>;
2966
2997
  private JSCallNativeFunctionPromise;
2967
2998
  /**
2968
2999
  * 监听 TUILiveConnectionManager 事件
@@ -4871,5 +4902,5 @@ declare class TUIRoomEngine {
4871
4902
  private onAutoPlayFailed;
4872
4903
  }
4873
4904
 
4874
- export { TRTCRole, TUIAudioQuality, TUIAudioRoute, TUIBattleCode, TUIBattleStoppedReason, TUICaptureSourceType, TUIChangeReason, TUIConferenceCancelReason, TUIConferenceInvitationManager, TUIConferenceInvitationManagerEvents, TUIConferenceListManager, TUIConferenceListManagerEvents, TUIConferenceStatus, TUIConnectionCode, TUIDeviceStatus, TUIErrorCode, TUIInvitationCode, TUIInvitationRejectedReason, TUIInvitationStatus, TUIKickedOutOfRoomReason, TUILiveBattleManagerEvents, TUILiveConnectionManagerEvents, TUILiveGiftManagerEvents, TUILiveLayoutManager, TUILiveLayoutManagerEvents, TUILiveListManager, TUILiveListManagerEvents, TUILiveModifyFlag, TUILiveStatisticsModifyFlag, TUIMediaDevice, TUIMediaDeviceState, TUIMediaDeviceType, TUIMoveSeatPolicy, TUINetworkQuality, TUIRenderMode, TUIRequestAction, TUIRequestCallbackType, TUIResolutionMode, TUIRole, TUIRoomDeviceManager, TUIRoomDeviceMangerEvents, TUIRoomDismissedReason, TUIRoomEvents, TUIRoomType, TUISeatMode, TUIUserInfoModifyFlag, TUIVideoQuality, TUIVideoStreamType, TUIRoomEngine as default };
4905
+ export { TRTCRole, TUIAudioQuality, TUIAudioRoute, TUIBattleCode, TUIBattleStoppedReason, TUICaptureSourceType, TUIChangeReason, TUICloudRecordPolicy, TUIConferenceCancelReason, TUIConferenceInvitationManager, TUIConferenceInvitationManagerEvents, TUIConferenceListManager, TUIConferenceListManagerEvents, TUIConferenceStatus, TUIConnectionCode, TUIDeviceStatus, TUIErrorCode, TUIInvitationCode, TUIInvitationRejectedReason, TUIInvitationStatus, TUIKickedOutOfRoomReason, TUILiveBattleManagerEvents, TUILiveConnectionManagerEvents, TUILiveGiftManagerEvents, TUILiveLayoutManager, TUILiveLayoutManagerEvents, TUILiveListManager, TUILiveListManagerEvents, TUILiveModifyFlag, TUILiveStatisticsModifyFlag, TUIMediaDevice, TUIMediaDeviceState, TUIMediaDeviceType, TUIMoveSeatPolicy, TUINetworkQuality, TUIRenderMode, TUIRequestAction, TUIRequestCallbackType, TUIResolutionMode, TUIRole, TUIRoomDeviceManager, TUIRoomDeviceMangerEvents, TUIRoomDismissedReason, TUIRoomEvents, TUIRoomType, TUISeatMode, TUIUserInfoModifyFlag, TUIVideoQuality, TUIVideoStreamType, TUIRoomEngine as default };
4875
4906
  export type { GiftCategory, GiftInfo, StartLiveOptions, TUIAutoPlayCallbackInfo, TUIBattleConfig, TUIBattleInfo, TUIBattleUser, TUIConferenceInfo, TUIConferenceModifyInfo, TUIDeviceInfo, TUIEnterRoomOptions, TUIGiftCategory, TUIGiftInfo, TUIInvitation, TUILiveConnectionUser, TUILiveInfo, TUILiveListResult, TUILiveModifyInfo, TUILiveStatisticsData, TUILoginUserInfo, TUIMessage, TUINetwork, TUIRequest, TUIRequestCallback, TUIRoomInfo, TUISeatInfo, TUISeatLayout, TUISeatLockParams, TUISeatRegion, TUIUserInfo, TUIVideoEncoderParams };