title: Forcing YouTube quality change without rebuffering, without user input
body: <p>For a specific experiment I need to control YouTube quality changes according to a prewritten scenario, with no user control over quality. Currently, I am doing it via an extension with a function:</p>
  <pre><code> setPlaybackQualityRange(targetRes,targetRes)
  </code></pre>
  <p>The problem is that despite having a very fast Internet connection, switching from for example 360p to 1080p causes rebuffering. Also, forcing other qualities causes the smallest bufferable chunk to be rebuffered in new quality and as a result a tiny portion of the video gets played again.
  <strong>I want to achieve almost immediate change in quality with no rebuffering events</strong>: is it even possible? I was looking into how videos are divided into chunks and is it possible to request a new chunk of higher quality at some point in time, while still playing out the old chunk? Would intercepting .mpd file help somehow?</p>