You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inactivity check is not behaving correctly as it "flickers" between states multiple times when the player is about to go to inactive state. The reason for this is incorrect variable declaration of inactivityTimeout variable in player.js#1923:
let activityCheck = this.setInterval(function() {
let inactivityTimeout;
// ...
this.clearTimeout(inactivityTimeout);
// ...
inactivityTimeout = this.setTimeout(...)
Variable inactivityTimeout must be declared outside of the inner function to work properly (otherwise the clearTimeout is simply no-op).
The text was updated successfully, but these errors were encountered:
What to do: play video and move mouse in circles for 5 seconds Expected output: see timeout occured once at the end of mouse movement Observed incorrect output:timeout occured appears during the interaction and also after it ends
pavelhoral
added a commit
to orchitech/video.js
that referenced
this issue
Jul 1, 2015
Inactivity check is not behaving correctly as it "flickers" between states multiple times when the player is about to go to inactive state. The reason for this is incorrect variable declaration of
inactivityTimeout
variable in player.js#1923:Variable
inactivityTimeout
must be declared outside of the inner function to work properly (otherwise theclearTimeout
is simply no-op).The text was updated successfully, but these errors were encountered: