title: Licode Erizo.Stream Video Frame quality
body: <p>I use <a href="http://lynckia.com/licode/architecture.html" rel="noreferrer">Licode</a> it is Open Source WebRTC Communications Platform. I want to reduce the video quality (Video-Frame bits size).</p>
  
  <p><strong>The stream looks like this:</strong></p>
  
  <pre><code>var stream = Erizo.Stream({ 
       audio:true,
       video:video_constraints,
       data: true, 
       attributes: {name:'myStream', type:'public'}
  });
  </code></pre>
  
  <p><strong>It is possible to get VideoFrame like this :</strong></p>
  
  <pre><code>var bitmap;
  var canvas = document.createElement('canvas');
  var context = canvas.getContext('2d');
  
  canvas.id = "testCanvas";
  document.body.appendChild(canvas);
  
  setInterval(function() {
    bitmap = stream.getVideoFrame();
    canvas.width = bitmap.width;
    canvas.height = bitmap.height;
    context.putImageData(bitmap, 0, 0);
  }, 100);
  </code></pre>
  
  <p><strong>And I send canvas (one Video Frame):</strong></p>
  
  <pre><code> var bitmap;
    var canvas = document.createElement('canvas');
    var context = canvas.getContext('2d');
  
    setInterval(function() {
          canvas.width = video.clientWidth;
          canvas.height = video.clientHeight;
          context.drawImage(video, 0, 0, canvas.width, canvas.height);
          mydata = canvas.toDataURL("image/jpeg");
          erizoStream.sendData({ base64:mydata});
      }, 200);
  </code></pre>
  
  <p>The <code>erizoStream.sendData({ base64:mydata});</code> is useless for speed performance.</p>
  
  <p>It sends data fast but when receiving it has issues with animation:</p>
  
  <pre><code>stream.addEventListener("stream-data", function(evt){
             //alert('Received data '+ evt.msg['base64']);
             if(evt.msg['base64']){
              renderBase64(evt.msg['base64']);
              }
  
          });
  </code></pre>
  
  <p>The set <code>setInterval</code> time 200ms makes sending only goes fast. But this goes faster when I open the page(tab) in new window.</p>
  
  <p>I want to reduce the video frame (bits size) without using  <code>erizoStream.sendData();</code>. Only from the video itself or using it with solving the speed performance issue.</p>