StartRecording() public method

public StartRecording ( ) : void
return void
コード例 #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();
            }
        }
コード例 #2
0
        public void StartAudio()
        {
            if (!_isAudioStarted)
            {
                _isAudioStarted = true;

                _audioChannel = new AudioChannel();
                if (_audioChannel != null)
                {
                    _audioChannel.StartRecording();
                    _audioChannel.SampleReady += sample => OnLocalAudioSampleReady?.Invoke(sample);
                }
            }
        }
コード例 #3
0
ファイル: MediaManager.cs プロジェクト: Dawn2Yuan/sipsorcery
        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();
            }
        }