private async Task Connect() { try { await CallWebView.EvaluateJavaScriptAsync($"init('{callPageViewModel.CurrentUser.ID}');"); await Task.Delay(2000); await CallWebView.EvaluateJavaScriptAsync($"startCall('{callPageViewModel.Friend.ID}');"); } catch (Exception exp) { } }
private async void ToggelCameraClick(object sender, EventArgs e) { callPageViewModel.IsVideoActive = !callPageViewModel.IsVideoActive; await CallWebView.EvaluateJavaScriptAsync($"toggleVideo('{callPageViewModel.IsVideoActive.ToString().ToLower()}');"); }