diff --git a/35c3-video/index.html b/35c3-video/index.html index 438ebc3..b397097 100644 --- a/35c3-video/index.html +++ b/35c3-video/index.html @@ -62,6 +62,10 @@ video.setAttribute('src', prefix + file + '.mp4'); video.autoplay = true; video.loop = true; + video.addEventListener('playing', function () { + var now = new Date(); + window.waitUntil = now.getTime() + ((video.duration - video.currentTime) * 1000); + }); document.body.appendChild(video); var time = document.getElementById('current-time');