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(); } }
public void StartAudio() { if (!_isAudioStarted) { _isAudioStarted = true; _audioChannel = new AudioChannel(); if (_audioChannel != null) { _audioChannel.StartRecording(); _audioChannel.SampleReady += sample => OnLocalAudioSampleReady?.Invoke(sample); } } }
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(); } }