Advertisement
jskoepm

Untitled

Jun 18th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var numPAUSE = 0;
  2. var i = 0;
  3. setInterval(function()
  4. {
  5.     if (vid.currentTime == 0 && !vid.duration || vid.currentTime == vid.duration)
  6.     {
  7.         vid.load();
  8.         vid.play();
  9.         numPAUSE++;
  10.         document.getElementById("checkPAUSE2").innerHTML = numPAUSE;
  11.     }
  12.     document.getElementById("checkPAUSE1").innerHTML = i + "_" + vid.currentTime + "_" + vid.duration;
  13.     i++;
  14. }, 4000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement