title: Replacing .addStream() for video WebRTC
body: <p>Since <code>RTCPeerConnection.addStream()</code> is deprecated, how does one now add a media stream such as video to a peerConnection?</p>
  
  <p>Here is the video stream capture function that I am currently using. I wanted to see if I am getting a media stream back from my camera and indeed I am. But then how do I add the stream to a peer connection?</p>
  
  <pre><code>var constraints = {
    audio: false,
    video: true
  };
  
  function successCallback(stream) {
    window.stream = stream; // stream available to console
    if (window.URL) {
      document.getElementById('localVid').src = window.URL.createObjectURL(stream);
    } else {
      document.getElementById('localVid').src = stream;
    }
      peerConn.addStream(s); //deprecated so onaddstream is not fired
  }
  
  function errorCallback(error) {
    console.log('navigator.getUserMedia error: ', error);
  }
  </code></pre>
  
  <p>I have successfully set up a signaling system for data channels and now I am moving on to streaming, however the limited resources are frustrating and I need some help.</p>