public IAudioSource CreateAudioSource(MediaConstraints mediaConstraints)
        {
            var audioSource = _factory.CreateAudioSource(mediaConstraints.ToNative());

            if (audioSource == null)
            {
                return(null);
            }
            return(new AudioSourceNative(audioSource));
        }
示例#2
0
 public void CreateAnswer(MediaConstraints constraints,
                          ISdpObserver observer)
 {
     _peerConnection.CreateAnswer(new SdpObserverProxy(observer), constraints.ToNative());
 }