예제 #1
0
 private void Awake()
 {
     pool     = new MessagePool();
     received = new LockFreeQueue <ReferenceCountedMessage>();
     pc       = GetComponentInParent <WebRtcPeerConnection>();
     id       = -1;
 }
예제 #2
0
 private void Awake()
 {
     pc = GetComponentInParent <WebRtcPeerConnection>();
 }
예제 #3
0
 private void Awake()
 {
     _sinks     = new Dictionary <IntPtr, AudioTrackSinkInterface>();
     sampleRate = AudioSettings.outputSampleRate;
     pc         = GetComponentInParent <WebRtcPeerConnection>();
 }
        public DisposablePeerConnectionInterface CreatePeerConnection(PeerConnectionInterface.RtcConfiguration config, WebRtcPeerConnection observer)
        {
            var dependencies = new PeerConnectionDependencies();

            dependencies.Observer = new DisposablePeerConnectionObserver(observer);

            var pc = factory.CreatePeerConnection(config, dependencies); // keep track of the peerconnections as they must be destroyed before the threads

            pcs.Add(observer);

            return(pc);
        }
예제 #5
0
 private void Awake()
 {
     this.peerconnection = new WebRtcPeerConnection();
 }