title: Flask streaming video
body: <p>I'm rendering a video. Not sure how skipping video to clicked time-frame works.</p>
  
  <p>For example; I'm watching a video; but want to skip it to 10 minutes; how would I do that? It's not working right now because I do not have an API endpoint setup for it, or do I not need that?</p>
  
  <pre><code>&lt;body&gt;
    &lt;video id="my-video" class="video-js" controls preload="auto" width="640" height="264"
    poster="MY_VIDEO_POSTER.jpg" data-setup="{}"&gt;
      &lt;source src="{{ url_for('testing', url=stream_url) }}" type='video/mp4'&gt;
      &lt;source src="MY_VIDEO.webm" type='video/webm'&gt;
      &lt;p class="vjs-no-js"&gt;
        To view this video please enable JavaScript, and consider upgrading to a web browser that
        &lt;a href="http://videojs.com/html5-video-support/" target="_blank"&gt;supports HTML5 video&lt;/a&gt;
      &lt;/p&gt;
    &lt;/video&gt;
  
    &lt;script src="http://vjs.zencdn.net/6.6.3/video.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>I'm on flask.</p>
  
  <pre><code>@app.route('/streaming')
  def testing():
       r = requests.get(url, stream=True)
       return Response(r.iter_content(30 * block_size),
                      content_type=r.headers['Content-Type'])
  </code></pre>
  
  <p>Right now when I click on my video and try an jump; it simply doesn't do anything. </p>