private void Button_Click_StopVideo(object sender, RoutedEventArgs e) { if (screenRecorder != null) { screenRecorder.StopRecord(); } }
internal void FlipFlopSharingScreen() { if (ScreenRecorder.Recording) { ScreenRecorder.StopRecord(); } else { ScreenRecorder.StartRecord(ImagePreview, 1); } }
private void EndCall() { VoiceRecorder.StopRecording(); ScreenRecorder.StopRecord(); Application.Current.Dispatcher.Invoke(delegate { FriendsInCall.Clear(); InCall = false; }); Client.SendToServer(new ServerObject(ServerFlag.ExitFromGroup, Client.Id)); }