private void DisconnectUSBCamera_Click(object sender, RoutedEventArgs e) { _videoViewer.Stop(); _webCamera.Stop(); _mediaConnector.Disconnect(_webCamera.VideoChannel, _imageProvider); _webCamera = null; }
private void DisconnectUSBCamera_Click(object sender, RoutedEventArgs e) { _videoViewerWpf.Stop(); _webCamera.Stop(); _webCamera.Dispose(); _connector.Disconnect(_webCamera, _provider); OnDisconnectEnabled(); }
private void DisconnectIPCamera_Click(object sender, RoutedEventArgs e) { _videoViewerWpf.Stop(); _ipCamera.Disconnect(); _ipCamera.Dispose(); _connector.Disconnect(_ipCamera.VideoChannel, _provider); }