Exemplo n.º 1
0
        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)
            {
            }
        }
Exemplo n.º 2
0
 private async void ToggelCameraClick(object sender, EventArgs e)
 {
     callPageViewModel.IsVideoActive = !callPageViewModel.IsVideoActive;
     await CallWebView.EvaluateJavaScriptAsync($"toggleVideo('{callPageViewModel.IsVideoActive.ToString().ToLower()}');");
 }