StartRecording() public method

public StartRecording ( ) : void
return void
Ejemplo n.º 1
0
        public void NewCall()
        {
            _audioChannel              = new AudioChannel();
            _audioChannel.SampleReady += AudioChannelSampleReady;

            _rtpManager = new RTPManager(true, _useVideo);
            _rtpManager.OnRemoteVideoSampleReady += EncodedVideoSampleReceived;
            _rtpManager.OnRemoteAudioSampleReady += RemoteAudioSampleReceived;

            if (_audioChannel != null)
            {
                _audioChannel.StartRecording();
            }
        }
Ejemplo n.º 2
0
        public void StartAudio()
        {
            if (!_isAudioStarted)
            {
                _isAudioStarted = true;

                _audioChannel = new AudioChannel();
                if (_audioChannel != null)
                {
                    _audioChannel.StartRecording();
                    _audioChannel.SampleReady += sample => OnLocalAudioSampleReady?.Invoke(sample);
                }
            }
        }
Ejemplo n.º 3
0
        public void NewCall()
        {
            _audioChannel = new AudioChannel();
            _audioChannel.SampleReady += AudioChannelSampleReady;

            _rtpManager = new RTPManager(true, true);
            _rtpManager = new RTPManager(true, false);
            _rtpManager.OnRemoteVideoSampleReady += EncodedVideoSampleReceived;
            _rtpManager.OnRemoteAudioSampleReady += RemoteAudioSampleReceived;

            if (_audioChannel != null)
            {
                _audioChannel.StartRecording();
            }
        }