AUDIO FUCKING WORKS - Test Camera.
This commit is contained in:
@@ -139,8 +139,14 @@ async function handleIce(msg) {
|
||||
}
|
||||
|
||||
if (!msg.candidate) return;
|
||||
|
||||
const candidateInit = {
|
||||
candidate: msg.candidate,
|
||||
sdpMid: msg.sdpMid,
|
||||
sdpMLineIndex: msg.sdpMLineIndex
|
||||
};
|
||||
|
||||
await pc.addIceCandidate(msg.candidate);
|
||||
await pc.addIceCandidate(candidateInit);
|
||||
|
||||
LogMessage(`Applied ICE from ${msg.from}`);
|
||||
}
|
||||
@@ -161,7 +167,9 @@ async function ensurePeerConnectionForUser(username) {
|
||||
channelId: currentChannelId,
|
||||
from: currentUsername,
|
||||
to: username,
|
||||
candidate: JSON.stringify(event.candidate)
|
||||
candidate: event.candidate.candidate,
|
||||
sdpMid: event.candidate.sdpMid,
|
||||
sdpMLineIndex: event.candidate.sdpMLineIndex
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user