private void Mute_audio_button_Click(object sender, EventArgs e) { try { if (MuteAudioButton.Selected) { MuteAudioButton.Selected = false; MuteAudioButton.SetImageResource(Resource.Drawable.ic_camera_mic_open); } else { MuteAudioButton.Selected = true; MuteAudioButton.SetImageResource(Resource.Drawable.ic_camera_mic_mute); } TwilioVideo.Mute(MuteAudioButton.Selected); } catch (Exception exception) { Console.WriteLine(exception); } }
private void MuteAudioButtonOnClick(object sender, EventArgs e) { try { if (MuteAudioButton.Selected) { MuteAudioButton.Selected = false; MuteAudioButton.SetImageResource(Resource.Drawable.ic_camera_mic_open); } else { MuteAudioButton.Selected = true; MuteAudioButton.SetImageResource(Resource.Drawable.ic_camera_mic_mute); } TwilioVideo.Mute(MuteAudioButton.Selected); } catch (Exception exception) { Methods.DisplayReportResultTrack(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; } }