Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to deal with embedded videos playing? #63

Open
UNIQUENESSINC opened this issue Feb 9, 2020 · 4 comments
Open

How to deal with embedded videos playing? #63

UNIQUENESSINC opened this issue Feb 9, 2020 · 4 comments

Comments

@UNIQUENESSINC
Copy link

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

@mag-hub
Copy link

mag-hub commented Aug 28, 2020

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!

@QomariSanjaya
Copy link

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

@bettysteger
Copy link

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();
      }

@ShardaGupta22
Copy link

Thank you so much for the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants