diff --git a/RelayClient/MainPage.xaml.cs b/RelayClient/MainPage.xaml.cs index 5a9e2cb..228edb4 100644 --- a/RelayClient/MainPage.xaml.cs +++ b/RelayClient/MainPage.xaml.cs @@ -479,17 +479,10 @@ public partial class MainPage : ContentPage public async Task AnswerCallback(RtcDescription answer) { - var test = new RtcDescription{type="answer", sdp = "Long\r\n string of data"}; - test.sdp = test.sdp.Replace("\r\n", "(rn)"); - // SafeSendRawToWebView("TEST: " + test); answer.sdp = answer.sdp.Replace("\r\n", "(rn)"); - string json = JsonSerializer.Serialize(test, HybridJSType.Default.RtcDescription); - SafeSendRawToWebView("JSON: " + json); - try { await hybridWebView.InvokeJavaScriptAsync("AnswerCallbackJS", [answer], [HybridJSType.Default.RtcDescription]); - SafeSendRawToWebView("After JS"); } catch (Exception ex) { diff --git a/RelayClient/Resources/Raw/wwwroot/index.js b/RelayClient/Resources/Raw/wwwroot/index.js index 9cae233..466634c 100644 --- a/RelayClient/Resources/Raw/wwwroot/index.js +++ b/RelayClient/Resources/Raw/wwwroot/index.js @@ -268,11 +268,8 @@ async function CSharpCallTest(value) async function AnswerCallbackJS(answer) { answer.sdp = answer.sdp.replaceAll("(rn)", "\r\n"); - // answer.sdp += "\n"; LogMessage("Answer: " + JSON.stringify(answer)); - // let callBack = JSON.parse(answer); - // LogMessage("Call Back: " + callBack); LogMessage("RemoteDescription: " + peerConnection.currentRemoteDescription); if (!peerConnection.currentRemoteDescription && answer)