Beispiel #1
0
        public IAudioSource CreateAudioSource(MediaConstraints mediaConstraints)
        {
            var audioSource = _factory.AudioSourceWithConstraints(mediaConstraints.ToNative());

            if (audioSource == null)
            {
                return(null);
            }
            return(new AudioSourceNative(audioSource));
        }
Beispiel #2
0
        public void CreateAnswer(MediaConstraints constraints, ISdpObserver observer)
        {
            var sdpCallbacksHelper = new SdpCallbackHelper(observer);

            _peerConnection.AnswerForConstraints(constraints.ToNative(), sdpCallbacksHelper.CreateSdp);
        }