/// <summary> /// The Google Voice call has completely finished and it's now safe to shutdown the audio channel. /// </summary> private void CallFinished() { if (_rtpManager != null) { _rtpManager.Close(); } CallEnded(); }
public void EndCall() { if (_audioChannel != null) { _audioChannel.SampleReady -= AudioChannelSampleReady; _audioChannel.Close(); _audioChannel = null; } _rtpManager.OnRemoteVideoSampleReady -= EncodedVideoSampleReceived; _rtpManager.OnRemoteAudioSampleReady -= RemoteAudioSampleReceived; _rtpManager.Close(); }