@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,
23 lines (18 loc) • 468 B
text/typescript
interface ITrackingManager {
sendMessage: (cmd: string) => void;
registerProvider: (provider: any) => void;
}
export class TrackingManager implements ITrackingManager {
private provider: any;
constructor() {
this.provider = null;
}
public registerProvider = (provider: any): void => {
this.provider = provider;
};
public sendMessage = (cmd: string): void => {
if (this.provider) {
this.provider.sendMessage(cmd, {});
}
};
}