title: HTML5 Video: Detecting Bandwidth
body: <p>I have a 1080p video that I'm displaying in an HTML5 <code>&lt;video&gt;</code> tag on my page.</p>
  
  <p>Is there a simple(ish) javascript method of detecting bandwidth so I can switch out the video for lower quality versions if the user's connection is too slow to stream the video? Similar to the logic behind YouTube's 'auto' video size chooser.</p>