title: how to properly play video in html
body: <p>We have video files in <code>amazon-s3</code> and play them on html in the following format.</p>
  
  <pre><code>&lt;video src="&lt;URL&gt;" autoplay/&gt;
  </code></pre>
  
  <p>But I'm not satisfied with it, its nowhere near to how youtube does it.</p>
  
  <p>What is the infrastructure required to stream and play video, where it can buffer and change video quality on the fly?</p>
  
  <p>I'm sure the question is very basic and doesn't have much information.</p>
  
  <p>Any help will be appreciated.</p>