@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,
22 lines (19 loc) • 565 B
text/typescript
import TUIRoomEngine from '@tencentcloud/tuiroom-engine-js';
import { isVue3 } from '../utils/constants';
const roomEngine: Record<string, TUIRoomEngine | null> = { instance: null };
const vueVersion = isVue3 ? 'vue3' : 'vue2';
export default function useRoomEngine() {
return roomEngine;
}
TUIRoomEngine.once('ready', () => {
roomEngine.instance = new TUIRoomEngine();
TUIRoomEngine.callExperimentalAPI(
JSON.stringify({
api: 'setFramework',
params: {
component: 'TUIRoomKit',
language: vueVersion,
},
})
);
});