Example #1
0
 private void DisconnectUSBCamera_Click(object sender, RoutedEventArgs e)
 {
     _videoViewer.Stop();
     _webCamera.Stop();
     _mediaConnector.Disconnect(_webCamera.VideoChannel, _imageProvider);
     _webCamera = null;
 }
Example #2
0
        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);
 }