Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can load a video into a video tag in chrome. Press play and pause. See it makes a single request and buffers the whole video.


If you stick:

  <video controls>
    <source src="/video/sample.mp4" type="video/mp4">
    Your browser does not support the video tag.
  </video>
into a html file, and run it against this pastebin [0], you'll see that chrome (and safari) both do range requests out of the box if the fileis big enough.

[0] https://pastebin.com/MyUfiwYE


Tried it on a 800mb file. Single request.


I tried it on 4 different files, and in each case my browser sent a request, my server responded with a 206 and it grabbed chunks as it went.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: