@tencentcloud/tuiroom-engine-js 2.3.3 → 2.4.1-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
@@ -1882,6 +1882,20 @@ declare class TUIRoomEngine {
1882
1882
  * await roomEngine.leaveSeat();
1883
1883
  */
1884
1884
  leaveSeat(): Promise<void>;
1885
+ /**
1886
+ * 移麦
1887
+ *
1888
+ * 移麦成功后,SDK会通过 onSeatListChanged 回调通知房间内用户。
1889
+ *
1890
+ * @param {number} options.targetSeatIndex 移麦目标麦位 index, 移麦成功后您将会在此麦位上。
1891
+ * @returns {Promise<void>}
1892
+ * @example
1893
+ * const roomEngine = new TUIRoomEngine();
1894
+ * await roomEngine.moveToSeat({ targetSeatIndex: 1 });
1895
+ */
1896
+ moveToSeat(options: {
1897
+ targetSeatIndex: number;
1898
+ }): Promise<void>;
1885
1899
  /**
1886
1900
  * 邀请其他人上麦(仅房间主持人和管理员可调用此方法)
1887
1901
  * @param {object} options 邀请其他人上麦的参数