Fix attempts for RTC calls
This commit is contained in:
@@ -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#!")
|
||||
}
|
||||
Reference in New Issue
Block a user