0

user should logout if he is inactive for 5min. for that i added some events those are

fromEvent(document, 'mousemove'),
  fromEvent(document, 'click'),
  fromEvent(document, 'mousedown'),
  fromEvent(document, 'keypress'),
  fromEvent(document, 'DOMMouseScroll'),
  fromEvent(document, 'mousewheel'),
  fromEvent(document, 'touchmove'),
  fromEvent(document, 'MSPointerMove'),
  fromEvent(window, 'mousemove'),
  fromEvent(window, 'resize'),

whenever above events are triggered then the timer resets again but i don't know what event i need to add for video playing. while playing the video it should not be inactive. it is working fine for all the above events.

0 Answers0