getting agoratoken works

This commit is contained in:
Arjun Patel
2022-01-22 19:30:44 -08:00
parent bed5834681
commit 1baa07faa4
9 changed files with 163 additions and 10 deletions
+22
View File
@@ -0,0 +1,22 @@
import {
ClientConfig,
IAgoraRTCRemoteUser,
ICameraVideoTrack,
IMicrophoneAudioTrack,
} from "agora-rtc-sdk-ng";
import {
AgoraVideoPlayer,
createClient,
createMicrophoneAndCameraTracks,
createMicrophoneAudioTrack,
} from "agora-rtc-react";
const config: ClientConfig = {
mode: "rtc",
codec: "vp8",
};
const useClient = createClient(config);
const useMicrophoneTracks = createMicrophoneAudioTrack();
// TODO: move this to env file
const appId: string = "c8dfd65deb5c4741bd564085627139d0"; //ENTER APP ID HERE