Timing Media Clips


RESETRUNFULL
<!DOCTYPE html><html>
    <head></head><body><video src="video.mp4" autoplay controls loop>
     </video>
    <br/><span></span>
    <script>
       var v = document.querySelector("video");
       v.onplaying=()=>{
           if (v.buffered.length==1)
                document.querySelector("span").innerText =
                  v.buffered.end(0) + "s loaded";
       };
    </script></body></html>