private void disconnect() { btnConnect.Text = "Connect"; player?.Dispose(); codec?.Dispose(); socket?.Disconnect(); connected = false; }
private void disconnectLiveAudio() { if (connected) { audioSender?.Dispose(); codec?.Dispose(); } }
private void disconnect() { btnConnect.Text = "Connect"; player?.Dispose(); codec?.Dispose(); socket?.Disconnect(); connected = false; }
private void disconnectLiveAudio() { if (connected) { audioSender?.Dispose(); codec?.Dispose(); } }