title: How Do I Stream Video From My USB Webcam To A Remote HTML Page
body: <p>I want to create a program that will stream video from my USB webcam over the internet to a web page.</p>
  
  <p>Currently, I use a webservice that when triggered, calls <code>fswebcam</code> to capture an image, save to data store, convert to base64 binary and send that data over to the HTML page where it is rendered into the 'src' attribute of 'img'. The HTML page has JavaScript that calls this service once per second.</p>
  
  <p>As you can tell this is a horrible way to do this. I would rather have a proper stream if I can. But I don't know what technologies are available to achieve this.</p>
  
  <p>The webservice is written in <code>nodeJS</code>. The server is running on a <code>raspberry pi 2</code>. I didn't put this question in the <code>raspberry pi forum</code> because I think it's a general <code>Linux/programming</code> issue. </p>