public void Close() { if (videoRendererSink != null) { videoRendererSink.Stop(); //videoRendererSink.Close(); videoRendererSink = null; } if (VideoReceiver != null) { VideoReceiver.DataReceived -= VideoReceiver_DataReceived; VideoReceiver.Stop(); VideoReceiver = null; } if (AudioReceiver != null) { AudioReceiver.Stop(); AudioReceiver = null; } if (factory != null) { factory.Closed -= Factory_Closed; factory.Abort(); factory = null; } //state = ClientState.Disconnected; }
public void Close() { if (imageProvider != null) { imageProvider.Close(); } if (VideoReceiver != null) { VideoReceiver.UpdateBuffer -= VideoReceiver_UpdateBuffer; VideoReceiver.Stop(); VideoReceiver = null; } if (AudioReceiver != null) { AudioReceiver.Stop(); AudioReceiver = null; } if (factory != null) { factory.Abort(); factory = null; } }
internal void Stop() { logger.Debug("RemoteDesktopClient::Stop()"); if (VideoReceiver != null) { VideoReceiver.UpdateBuffer -= VideoReceiver_UpdateBuffer; VideoReceiver.Stop(); } }
public void Close() { if (VideoReceiver != null) { VideoReceiver.UpdateBuffer -= VideoReceiver_UpdateBuffer; VideoReceiver.Stop(); VideoReceiver = null; } if (InputManager != null) { InputManager.Stop(); InputManager = null; } if (factory != null) { factory.Abort(); factory = null; } }
public void Close() { if (d3dProvider != null) { d3dProvider.Close(); d3dProvider = null; } if (d3dRenderer != null) { d3dRenderer.Shutdown(); } if (VideoReceiver != null) { VideoReceiver.UpdateBuffer -= VideoReceiver_UpdateBuffer; VideoReceiver.Stop(); VideoReceiver = null; } if (AudioReceiver != null) { AudioReceiver.Stop(); AudioReceiver = null; } if (factory != null) { factory.Closed -= Factory_Closed; factory.Abort(); factory = null; } //state = ClientState.Disconnected; }