Skip to content

Commit

Permalink
Update base-stream-controller.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jony89 committed Feb 26, 2020
1 parent 3fd87fe commit 077431b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/controller/base-stream-controller.js
Expand Up @@ -128,7 +128,6 @@ export default class BaseStreamController extends TaskLoop {

computeLivePosition (sliding, levelDetails) {
let targetLatency = this.config.liveSyncDuration !== undefined ? this.config.liveSyncDuration : this.config.liveSyncDurationCount * levelDetails.targetduration;
const currentTime = this.media ? this.media.currentTime : null;
return Math.max(sliding + Math.max(0, levelDetails.totalduration - targetLatency), currentTime);
return sliding + Math.max(0, levelDetails.totalduration - targetLatency);
}
}

0 comments on commit 077431b

Please sign in to comment.