yangjie #41

Merged
yangqiang merged 20 commits from yangjie into master 2024-12-11 14:52:08 +08:00
1 changed files with 2 additions and 0 deletions
Showing only changes of commit 4528696ec7 - Show all commits

View File

@ -27,6 +27,7 @@ import { GetRoomRtcToken, GetAgoraConf } from "@/api/Home/Index";
import { storage } from '@/utils';
import { role } from "@/config/role";
import path from "path";
import os from "os";
const option: any = {
appId: '',
token: '',
@ -44,6 +45,7 @@ export const agora = {
rtcEngine = createAgoraRtcEngine();
await rtcEngine.initialize({
appId: data,
logConfig: { filePath: path.resolve(os.homedir(), "./errorAgora.log") }
});
if (bool) {
await agora.setDeviceManager()