public IAudioSource CreateAudioSource(MediaConstraints mediaConstraints) { var audioSource = _factory.AudioSourceWithConstraints(mediaConstraints.ToNative()); if (audioSource == null) { return(null); } return(new AudioSourceNative(audioSource)); }
public void CreateAnswer(MediaConstraints constraints, ISdpObserver observer) { var sdpCallbacksHelper = new SdpCallbackHelper(observer); _peerConnection.AnswerForConstraints(constraints.ToNative(), sdpCallbacksHelper.CreateSdp); }