Open UNIQUENESSINC opened 4 years ago
Even I was also working on the same concept, but the counter stops, when we perform any iFrame click, Please let me know if you found any feasible solution!
Still no fix, if idle then the timer stop, but when we click or move mouse inside an iframe or YouTube video embed, the timer won't continue until we click or move mouse inside the parent element
in case someone needs it, i have a code in my interval function (that sends the tracked time to the server)
if(document.activeElement.tagName === 'VIDEO' && !document.activeElement.paused) {
TimeMe.resetIdleCountdown();
}
if(document.activeElement.tagName === 'IFRAME') {
TimeMe.resetIdleCountdown();
window.focus();
}
Thank you so much for the code
I have a page with embedded videos (not iframes). Short of writing a function to monitor the video embed pause/start times, can TimeMe be adjusted to factor in these elements?
Thanks