presetup client for server api calls for webrtc calls

This commit is contained in:
2026-04-02 13:51:26 -04:00
parent cb59cc4409
commit 92db27edc4
3 changed files with 74 additions and 10 deletions

View File

@@ -352,7 +352,22 @@ public partial class MainPage : ContentPage
ViewSwapped.Text = "Swap to Message View";
}
}
public void JoinRtcChannel()
{
//TODO: get bool value for if channel ID has an active call
//TODO: Join RTC using current channel ID
}
public void WriteRtcOffer(string json)
{
RTCOffer? offer = JsonSerializer.Deserialize<RTCOffer>(json);
}
private class RTCOffer
{
private string type { get; set; }
private string sdp { get; set; }
}
private void OnSendMessageButtonClicked(object sender, EventArgs e)
{
hybridWebView.SendRawMessage($"Hello from C#!");