title: streaming media over HTTP
body: <p>I'm writing a web service to stream video (e.g., web cam). I want to know what options do I have.</p>
  
  <p>For example, one naive way I can think of is to periodically fetch a jpeg from the source and display it.</p>
  
  <p>But I also know some media types like mjpeg can be <a href="http://en.wikipedia.org/wiki/Motion_JPEG#M-JPEG_over_HTTP" rel="nofollow">streamed over the HTTP</a>. However I do not know exactly how that is achieved technically. Any example would be welcome.</p>
  
  <p>UPDATE:</p>
  
  <p>I found the below link, which implements a live video stream over HTTP using mjpeg and python WSGI.</p>
  
  <p><a href="https://gist.github.com/2409785" rel="nofollow">Streaming MJPEG over HTTP with gstreamr and python – WSGI version (GIST)</a></p>