public void StopLocalVideo() { if (_localVideoSamplingTask != null && !_localVideoSamplingTask.IsCompleted && _localVideoSamplingCancelTokenSource != null) { _localVideoSamplingCancelTokenSource.Cancel(); } }
private void StopLocalVideo(object sender, System.Windows.RoutedEventArgs e) { _mediaManager.StopLocalVideo(); _startLocalVideoButton.IsEnabled = true; _stopLocalVideoButton.IsEnabled = false; _localVideoDevices.IsEnabled = true; }