Updated video buffer interval check

• Updated:
- video buffer interval check
This commit is contained in:
mgabdev 2020-06-11 11:47:51 -04:00
parent 61a402648b
commit 6f5bd998db

View File

@ -209,7 +209,7 @@ class Video extends ImmutablePureComponent {
const { currentTime } = this.video
// Checking offset should be at most the check interval but allow for some margin
let offset = checkInterval / 1000
let offset = (checkInterval - 30) / 1000
if (!isBuffering && currentTime < (this.lastPlayPos + offset) && !paused) {
// If no buffering is currently detected, and the position does not seem to increase