1
0
mirror of https://github.com/videojs/video.js.git synced 2025-10-31 00:08:01 +02:00

fix: add inactivityTimeout to reset cache method (#5788)

This commit is contained in:
Samuel Burbano Ramos
2019-02-12 10:10:09 -05:00
committed by Gary Katsevman
parent 65beb5a79c
commit a72d861a95

View File

@@ -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(),