Fix attempts for RTC calls

This commit is contained in:
2026-04-29 13:52:35 -04:00
parent 777328caed
commit 38662f6655
3 changed files with 41 additions and 8 deletions

View File

@@ -49,4 +49,12 @@ window.addEventListener("load", async () => {
Media.wireDeviceSelectors();
await Media.loadDevices();
await Media.ensureLocalMedia();
});
});
function testIndex(rawJson)
{
const data = typeof rawJson === "string" ? JSON.parse(rawJson) : rawJson;
if (data.type === "rtc_offer")
HandleOffer(rawJson)
LogMessage("Called by SendRtcSignalToJsAsync from C#!")
}