Exemplo n.º 1
0
        /// <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();
        }
Exemplo n.º 2
0
        public void EndCall()
        {
            if (_audioChannel != null)
            {
                _audioChannel.SampleReady -= AudioChannelSampleReady;
                _audioChannel.Close();
                _audioChannel = null;
            }

            _rtpManager.OnRemoteVideoSampleReady -= EncodedVideoSampleReceived;
            _rtpManager.OnRemoteAudioSampleReady -= RemoteAudioSampleReceived;
            _rtpManager.Close();
        }