@tencentcloud/tuiroom-engine-electron 2.3.3 → 2.4.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.cjs.js +1 -1
- package/index.d.ts +18 -0
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ declare enum TUIErrorCode {
|
|
|
32
32
|
ERR_ROOM_ID_OCCUPIED = -2106,
|
|
33
33
|
ERR_ROOM_NAME_INVALID = -2107,
|
|
34
34
|
ERR_ALREADY_IN_OTHER_ROOM = -2108,
|
|
35
|
+
ERR_ROOM_USER_FULL = -2111,
|
|
35
36
|
ERR_USER_NOT_EXIST = -2200,
|
|
36
37
|
ERR_USER_NOT_ENTERED = -2201,
|
|
37
38
|
ERR_NEED_OWNER_PERMISSION = -2300,
|
|
@@ -69,6 +70,9 @@ type TUIRoomInfo = {
|
|
|
69
70
|
isMessageDisableForAllUser: boolean;
|
|
70
71
|
maxSeatCount: number;
|
|
71
72
|
roomOwner: string;
|
|
73
|
+
ownerId: string;
|
|
74
|
+
ownerName: string;
|
|
75
|
+
ownerAvatarUrl: string;
|
|
72
76
|
createTime: number;
|
|
73
77
|
roomMemberCount: number;
|
|
74
78
|
};
|
|
@@ -1871,6 +1875,20 @@ declare class TUIRoomEngine {
|
|
|
1871
1875
|
* await roomEngine.leaveSeat();
|
|
1872
1876
|
*/
|
|
1873
1877
|
leaveSeat(): Promise<void>;
|
|
1878
|
+
/**
|
|
1879
|
+
* 移麦
|
|
1880
|
+
*
|
|
1881
|
+
* 移麦成功后,SDK会通过 onSeatListChanged 回调通知房间内用户。
|
|
1882
|
+
*
|
|
1883
|
+
* @param {number} options.targetSeatIndex 移麦目标麦位 index, 移麦成功后您将会在此麦位上。
|
|
1884
|
+
* @returns {Promise<void>}
|
|
1885
|
+
* @example
|
|
1886
|
+
* const roomEngine = new TUIRoomEngine();
|
|
1887
|
+
* await roomEngine.moveToSeat({ targetSeatIndex: 1 });
|
|
1888
|
+
*/
|
|
1889
|
+
moveToSeat(options: {
|
|
1890
|
+
targetSeatIndex: number;
|
|
1891
|
+
}): Promise<void>;
|
|
1874
1892
|
/**
|
|
1875
1893
|
* 邀请其他人上麦(仅房间主持人和管理员可调用此方法)
|
|
1876
1894
|
* @param {object} options 邀请其他人上麦的参数
|