cleaned up extra debug messages
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user