Open nerra0pos opened 7 years ago
TimeMe.resetIdleCountdown() seems to do what you are asking...
Any working solution ? @terrapop How did you solve this problem?
I tried this approach, using the following code:
iframePlayer.on('timeupdate', function(data){
TimeMe.resetIdleCountdown();
});
However it doesn't do anything at all, I can see using a console.log that it's really executed (about four times per secnd) but still it doesn't seem to count the time I'm spending in my video player iframe. Any clues?
Hi again. Found a PR that completely solved this problem: https://github.com/jasonzissman/TimeMe.js/pull/59
I have pushed a new solution for this issue and I would love to have your feedback on it: https://github.com/jasonzissman/TimeMe.js/pull/77
When a user is watching a video e.g. YouTube embedded on the page, he fastly goes idle with your script (not accounting the view time of a video).
It would be good, if you could implement a beacon function which could be triggered manually in order to let the script continue measuring time.