title: nodejs to <video> streaming using WebRTC
body: <p>I am currently using nodejs and express to stream video to  tags simply by waiting for app.get on the video tag src address and then using res.writeHead and res.write to provide the data.</p>
  
  <p>I would like to be able to do the something similar but with lower latency using WebRTC. However, I am bit confused as to how to achieve this and haven't really found any good information resource.</p>
  
  <p>Can anyone recommend any good examples, nodejs packages etc... that might be helpful?</p>
  
  <p>I was hoping to do something like:</p>
  
  <pre><code>// Nodejs Server
  
  rtcServer.on('connection', function(connection) {
      var videoSource = getVideoDataSource();
      videoSource.on('data', function(data) {
         connection.write(data);
      });
  });
  rtcServer.listen(8000);
  </code></pre>
  
  <p>-</p>
  
  <pre><code>// HTML Client
  
  &lt;video src="???:8000"/&gt;
  </code></pre>