@tencentcloud/roomkit-web-vue3
Version:
<h1 align="center"> TUIRoomKit</h1> Conference (TUIRoomKit) is a product suitable for multi-person audio and video conversation scenarios such as business meetings, webinars, and online education. By integrating this product, you can add room management,
51 lines (49 loc) • 1.52 kB
TypeScript
import { TUIRoomType } from '../../../../node_modules/@tencentcloud/tuiroom-engine-js';
import { IRoomService, RoomParam } from '../types';
export interface DeviceParams {
isOpenCamera?: boolean;
isOpenMicrophone?: boolean;
defaultCameraId?: string;
defaultMicrophoneId?: string;
defaultSpeakerId?: string;
}
export interface StartParams extends DeviceParams {
roomName?: string;
isSeatEnabled?: boolean;
password?: string;
}
export interface JoinParams extends DeviceParams {
password?: string;
}
export type RoomParamsInfo = {
roomId: string;
roomType: TUIRoomType;
};
export declare class RoomActionManager {
private service;
constructor(service: IRoomService);
start(roomId: string, params?: StartParams): Promise<void>;
join(roomId: string, params?: JoinParams): Promise<void>;
leaveRoom(): Promise<void>;
dismissRoom(): Promise<void>;
createRoom(options: {
roomId: string;
roomName?: string;
roomMode?: 'FreeToSpeak' | 'SpeakAfterTakingSeat';
roomParam?: StartParams;
}): Promise<void>;
private handleRoomCreation;
enterRoom(options: {
roomId: string;
roomParam?: RoomParam;
}): Promise<void>;
private setRoomParams;
private doEnterRoom;
private getUserList;
private getInvitationList;
private fetchAttendeeList;
private syncUserInfo;
private getSeatList;
private closeMediaBeforeLeave;
fetchRoomInfo(options?: RoomParamsInfo): Promise<any>;
}