title: What is the WebRTC method reattachMediaStream used for?
body: <p>I have been going over the WebRTC docs and I see two WebRTC methods where I am not sure I understand what the difference is: <code>reattachMediaStream</code> and <code>attachMediaSource</code>.</p>
  
  <p><code>attachMediaSource</code> This I get, you use it to attach a <code>MediaStream</code> to something like a <code>video</code> element.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;video id="videoPlayer"&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>attachMediaSource(videoPlayer, mediaSource);
  </code></pre>
  
  <p>But when is <code>reattachMediaStream</code> used?</p>
  
  <p>Looking at the <a href="http://webrtc.googlecode.com/svn/trunk/samples/js/base/adapter.js" rel="nofollow">adapter.js</a> code the WebRTC group provides, doesn't help much.</p>
  
  <p>For Gecko it has:</p>
  
  <pre><code>  reattachMediaStream = function(to, from) {
      console.log("Reattaching media stream");
      to.mozSrcObject = from.mozSrcObject;
      to.play();
    };
  </code></pre>
  
  <p>For webkit it has:</p>
  
  <pre><code>  reattachMediaStream = function(to, from) {
      to.src = from.src;
    }
  </code></pre>
  
  <p>Looking at all the various examples out there also hasn't helped. I don't see anything using reattachMediaStream.</p>
  
  <p>Is it attaching the video from one video element to another?</p>