private void Awake() { pool = new MessagePool(); received = new LockFreeQueue <ReferenceCountedMessage>(); pc = GetComponentInParent <WebRtcPeerConnection>(); id = -1; }
private void Awake() { pc = GetComponentInParent <WebRtcPeerConnection>(); }
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); }
private void Awake() { this.peerconnection = new WebRtcPeerConnection(); }