private void Mute_video_button_Click(object sender, EventArgs e) { try { if (MuteVideoButton.Selected) { MuteVideoButton.SetImageResource(Resource.Drawable.ic_camera_video_mute); MuteVideoButton.Selected = false; } else { MuteVideoButton.SetImageResource(Resource.Drawable.ic_camera_video_open); MuteVideoButton.Selected = true; } var isVideoEnabled = MuteVideoButton.Selected; FindViewById(Resource.Id.local_video_container).Visibility = isVideoEnabled ? ViewStates.Visible : ViewStates.Gone; LocalVideoTrack.Enable(isVideoEnabled); } catch (Exception exception) { Console.WriteLine(exception); } }
void ReleaseDesignerOutlets() { if (ContainerView != null) { ContainerView.Dispose(); ContainerView = null; } if (EndCallButton != null) { EndCallButton.Dispose(); EndCallButton = null; } if (LocalView != null) { LocalView.Dispose(); LocalView = null; } if (MuteAudioButton != null) { MuteAudioButton.Dispose(); MuteAudioButton = null; } if (MuteVideoButton != null) { MuteVideoButton.Dispose(); MuteVideoButton = null; } if (SwitchCameraButton != null) { SwitchCameraButton.Dispose(); SwitchCameraButton = null; } }