From a72d861a9599221408ecbf42c55f09dfe829d127 Mon Sep 17 00:00:00 2001 From: Samuel Burbano Ramos Date: Tue, 12 Feb 2019 10:10:09 -0500 Subject: [PATCH] fix: add inactivityTimeout to reset cache method (#5788) --- src/js/player.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/player.js b/src/js/player.js index bd71b401b..f729c7fad 100644 --- a/src/js/player.js +++ b/src/js/player.js @@ -2066,6 +2066,7 @@ class Player extends Component { // we set it to zero here to ensure that if we do start actually caching // it, we reset it along with everything else. currentTime: 0, + inactivityTimeout: this.options_.inactivityTimeout, duration: NaN, lastVolume: 1, lastPlaybackRate: this.defaultPlaybackRate(),