/// <summary> /// The Google Voice call has completely finished and it's now safe to shutdown the audio channel. /// </summary> private void CallFinished() { if (_audioChannel != null) { _audioChannel.Close(); } CallEnded(); }
public void EndCall() { if (_audioChannel != null) { _audioChannel.SampleReady -= AudioChannelSampleReady; _audioChannel.Close(); _audioChannel = null; } _rtpManager.OnRemoteVideoSampleReady -= EncodedVideoSampleReceived; _rtpManager.OnRemoteAudioSampleReady -= RemoteAudioSampleReceived; _rtpManager.Close(); }
/// <summary> /// Shutdown the SIP tranpsort layer and any other resources the SIP client is using. Typically called when the application exits. /// </summary> public void Shutdown() { if (m_sipTransport != null) { m_sipTransport.Shutdown(); } DNSManager.Stop(); if (_audioChannel != null) { _audioChannel.Close(); } }
public void StopAudio() { if (_audioChannel != null) { _dispatcher.DoOnUIThread(() => { _audioChannel.Close(); _audioChannel = null; }); } }