Fixed connections
This commit is contained in:
@@ -54,7 +54,18 @@ window.addEventListener("load", async () => {
|
||||
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#!")
|
||||
data.sdp = data.sdp.replaceAll("(rn)", "\r\n");
|
||||
handleRtcSignal(JSON.stringify(data));
|
||||
// if (data.type === "rtc_offer") {
|
||||
// handleOffer(data)
|
||||
// }
|
||||
// if (data.type === "rtc_answer") {
|
||||
// data.sdp = data.sdp.replaceAll("(rn)", "\r\n");
|
||||
// handleAnswer(data)
|
||||
// }
|
||||
}
|
||||
|
||||
function noDataTest()
|
||||
{
|
||||
LogMessage("No Data Called!!");
|
||||
}
|
||||
Reference in New Issue
Block a user