mirror of
https://github.com/videojs/video.js.git
synced 2025-01-06 06:50:51 +02:00
Make inactivity timeout configurable
This commit is contained in:
parent
7f4e6eb432
commit
e4a0d264d6
@ -92,6 +92,9 @@ vjs.options = {
|
||||
// Add playback rate selection by adding rates
|
||||
// 'playbackRates': [0.5, 1, 1.5, 2],
|
||||
|
||||
// default inactivity timeout
|
||||
'inactivityTimeout': 2000,
|
||||
|
||||
// Included control sets
|
||||
'children': {
|
||||
'mediaLoader': {},
|
||||
|
@ -1624,7 +1624,7 @@ vjs.Player.prototype.listenForUserActivity = function(){
|
||||
if (!this.userActivity_) {
|
||||
this.userActive(false);
|
||||
}
|
||||
}), 2000);
|
||||
}), vjs.options.inactivityTimeout);
|
||||
}
|
||||
}), 250);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user