3 Commits

Author SHA1 Message Date
885db41ba9 Merge branch 'CoreAuth' 2026-05-03 18:04:55 -04:00
4974663128 removed test delay 2026-05-02 16:13:19 -04:00
3901542141 AUDIO FUCKING WORKS - Test Camera. 2026-05-02 16:04:23 -04:00
3 changed files with 14 additions and 4 deletions

View File

@@ -54,7 +54,9 @@ window.addEventListener("load", async () => {
function testIndex(rawJson)
{
const data = typeof rawJson === "string" ? JSON.parse(rawJson) : rawJson;
data.sdp = data.sdp.replaceAll("(rn)", "\r\n");
if (data.sdp) {
data.sdp = data.sdp.replaceAll("(rn)", "\r\n");
}
handleRtcSignal(JSON.stringify(data));
// if (data.type === "rtc_offer") {
// handleOffer(data)

View File

@@ -140,7 +140,13 @@ async function handleIce(msg) {
if (!msg.candidate) return;
await pc.addIceCandidate(msg.candidate);
const candidateInit = {
candidate: msg.candidate,
sdpMid: msg.sdpMid,
sdpMLineIndex: msg.sdpMLineIndex
};
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
});
};

View File

@@ -66,7 +66,7 @@ Start-Sleep -Seconds 5
$testScript = New-TabScript -Name "Test" -Content @"
Set-Location '$root'
Start-Sleep -Seconds 25
Start-Sleep -Seconds 5
& '$clientExe' --user Test
"@