Day: September 22, 2016
-
Showing loading animation for slow connections on HTML5 Video
I am surprised this isn’t just part of the package but oh well. var crurrentTime1 = 0; var currentTime2 = 0; var oneTwo =0;function checkVideo() { if (window[“oneTwo”] == 1) { window[“oneTwo”] = 2; } else { window[“oneTwo”] = 1; } $(“video”).each(function(videoIndex) { var videoId = $(this).attr(“id”); var myVideo = document.getElementById(videoId); if (myVideo.paused) { //console.log(“Paused”); …