Waiting for the video to play...
const video = document.getElementById('player');
const infoText = document.getElementById('status-msg');
let hasPaused = false;
video.addEventListener('timeupdate', function() {
if (!hasPaused && video.currentTime >= 5 && video.currentTime < 6) {
video.pause();
hasPaused = true;
infoText.innerText = "Click 'Play' to verify you are not a bot.";
infoText.classList.add('success-msg');
video.currentTime = 5.0;
}
});
video.addEventListener('play', function() {
if (video.currentTime > 6) {
infoText.innerText = "Watching: Video in progress";
infoText.style.opacity = "0.5";
}
});