var video = document.getElementById('video'), play = document.getElementById('play'), time; video.addEventListener('webkitbeginfullscreen', function() { play.innerText = 'Play Video Readers'; window.clearInterval(time); }); video.addEventListener('webkitendfullscreen', function() { video.pause(); }); play.addEventListener('touchstart', function() { time = window.setInterval(function() { try { video.webkitEnterFullscreen(); } catch(e) {} }, 250); play.innerText = 'loading ...'; video.play(); });
var video1 = document.getElementById('video1'), play1 = document.getElementById('play1'), time; video1.addEventListener('webkitbeginfullscreen', function() { play1.innerText = 'Play Video Promotion'; window.clearInterval(time); }); video1.addEventListener('webkitendfullscreen', function() { video1.pause(); }); play1.addEventListener('touchstart', function() { time = window.setInterval(function() { try { video1.webkitEnterFullscreen(); } catch(e) {} }, 250); play1.innerText = 'loading ...'; video1.play(); });