Compare commits
3 Commits
CoreAuth
...
885db41ba9
| Author | SHA1 | Date | |
|---|---|---|---|
| 885db41ba9 | |||
| 4974663128 | |||
| 3901542141 |
@@ -54,7 +54,9 @@ window.addEventListener("load", async () => {
|
|||||||
function testIndex(rawJson)
|
function testIndex(rawJson)
|
||||||
{
|
{
|
||||||
const data = typeof rawJson === "string" ? JSON.parse(rawJson) : 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));
|
handleRtcSignal(JSON.stringify(data));
|
||||||
// if (data.type === "rtc_offer") {
|
// if (data.type === "rtc_offer") {
|
||||||
// handleOffer(data)
|
// handleOffer(data)
|
||||||
|
|||||||
@@ -139,8 +139,14 @@ async function handleIce(msg) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!msg.candidate) return;
|
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}`);
|
LogMessage(`Applied ICE from ${msg.from}`);
|
||||||
}
|
}
|
||||||
@@ -161,7 +167,9 @@ async function ensurePeerConnectionForUser(username) {
|
|||||||
channelId: currentChannelId,
|
channelId: currentChannelId,
|
||||||
from: currentUsername,
|
from: currentUsername,
|
||||||
to: username,
|
to: username,
|
||||||
candidate: JSON.stringify(event.candidate)
|
candidate: event.candidate.candidate,
|
||||||
|
sdpMid: event.candidate.sdpMid,
|
||||||
|
sdpMLineIndex: event.candidate.sdpMLineIndex
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ Start-Sleep -Seconds 5
|
|||||||
|
|
||||||
$testScript = New-TabScript -Name "Test" -Content @"
|
$testScript = New-TabScript -Name "Test" -Content @"
|
||||||
Set-Location '$root'
|
Set-Location '$root'
|
||||||
Start-Sleep -Seconds 25
|
Start-Sleep -Seconds 5
|
||||||
& '$clientExe' --user Test
|
& '$clientExe' --user Test
|
||||||
"@
|
"@
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user