Skip to content

Commit

Permalink
Merge pull request #164 from CS3219-AY2425S1/fix/audio-call
Browse files Browse the repository at this point in the history
Add debug logs for audio call
  • Loading branch information
tyouwei authored Nov 9, 2024
2 parents 2abe3b7 + f88e1b6 commit df76946
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions peerprep-fe/src/app/collaboration/components/AudioSharing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ const AudioSharing = () => {
const TURN_CREDENTIAL = process.env.NEXT_PUBLIC_TURN_PASSWORD;

if (!TURN_SERVER || !TURN_USERNAME || !TURN_CREDENTIAL) {
console.error(TURN_SERVER);
console.error(TURN_USERNAME);
console.error(TURN_CREDENTIAL);
// Log which specific variables are missing
console.error('Missing TURN config:', {
server: !!TURN_SERVER,
username: !!TURN_USERNAME,
credential: !!TURN_CREDENTIAL,
});
}

const cleanupAudio = () => {
if (audioStreamRef.current) {
audioStreamRef.current.getTracks().forEach((track) => {
Expand Down

0 comments on commit df76946

Please sign in to comment.