@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,
35 lines (33 loc) • 1.02 kB
TypeScript
import { TUIRole } from '../../../../node_modules/@tencentcloud/tuiroom-engine-js';
interface IUserManager {
setSelfInfo(options: SelfInfoOptions): Promise<void>;
setCustomInfoForUser(options: CustomInfoForUser): Promise<void>;
}
export type CustomInfoForUser = {
userId: string;
customInfo: Record<string, string>;
};
export type SelfInfoOptions = {
userName?: string;
avatarUrl?: string;
customInfo?: Record<string, any>;
};
export default class UserManager implements IUserManager {
static instance: UserManager;
private store;
private userListCompareFunction;
private streamListCompareFunction;
constructor(options: {
store: any;
});
setSelfInfo(options: SelfInfoOptions): Promise<void>;
setCustomInfoForUser(options: CustomInfoForUser): Promise<void | undefined>;
setLocalUser(userInfo: {
userId: string;
}): void;
changeUserRole(options: {
userId: string;
userRole: TUIRole;
}): Promise<void>;
}
export {};