title: recording a remote webrtc stream with RecordRTC
body: <p>I am using Opentok JavaScript WebRTC library to host a 1-to-1 video chat (peer-to-peer).
  I can see my peer's video and hear the audio flawlessly.</p>
  
  <p>My wish is to record audio / video of other chat party (remote). For this purpose, I'm using <a href="https://webrtc-experiment.appspot.com/RecordRTC/" rel="noreferrer">RecordRTC</a>. 
  I was able to record the video of other chat participant (video is outputted to HTML video element), but, so far, I have not succeeded in recording audio (a dead-silence .wav file is as far as I could get). Using Chrome Canary (30.0.1554.0). This is my method:</p>
  
  <pre><code>var clientVideo = $('#peerdiv video')[0];//peer's video (html element)
  var serverVideo = $('#myselfdiv video')[0];//my video (html element)
  
  var context = new webkitAudioContext();
  var clientStream = context.createMediaStreamSource(clientVideo.webRTCStream);
  var serverStream = context.createMediaStreamSource(serverVideo.webRTCStream);
  </code></pre>
  
  <p>webRTCStream is a custom property i assigned to HTMLVideoElement object by modifying source of opentok js library. It contains MediaStream object linked to respective &lt; video > element.</p>
  
  <pre><code>var recorder = RecordRTC({
                      video: clientVideo,
                      stream: clientStream
                  });
  recorder.recordAudio();
  recorder.recordVideo();
  </code></pre>
  
  <p>Video is recorded. Audio file is also created, it has a length that is close to video's length, however, it's completely silent (and yes, there was a lot of noise making on the other side during recording)</p>
  
  <p>I've tested this with video element which displays my webcam's video stream (and audio), and it worked: both audio and video were recorded:</p>
  
  <pre><code>...
  var recorder = RecordRTC({
                      video: serverVideo,
                      stream: serverStream
                  });
  ...
  </code></pre>
  
  <p>Is there something special about streams originating from a remote location? Any guidance on this issue would be very helpful.</p>