1
0
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:
Andreas Knab 2014-08-11 10:48:01 +02:00 committed by Andreas Knab
parent 7f4e6eb432
commit e4a0d264d6
2 changed files with 4 additions and 1 deletions

View File

@ -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': {},

View File

@ -1624,7 +1624,7 @@ vjs.Player.prototype.listenForUserActivity = function(){
if (!this.userActivity_) {
this.userActive(false);
}
}), 2000);
}), vjs.options.inactivityTimeout);
}
}), 250);