diff --git a/src/js/core.js b/src/js/core.js index ab0763408..0475423ec 100644 --- a/src/js/core.js +++ b/src/js/core.js @@ -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': {}, diff --git a/src/js/player.js b/src/js/player.js index 781628b77..2484de652 100644 --- a/src/js/player.js +++ b/src/js/player.js @@ -1624,7 +1624,7 @@ vjs.Player.prototype.listenForUserActivity = function(){ if (!this.userActivity_) { this.userActive(false); } - }), 2000); + }), vjs.options.inactivityTimeout); } }), 250);