日志显示
This commit is contained in:
parent
9619230cf8
commit
4528696ec7
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue