Skip to content

Commit

Permalink
Do not hide time display in ControlBar.js whenever liveThresholdSecs …
Browse files Browse the repository at this point in the history
…is reached. Otherwise controlbar causes seeking problems.
  • Loading branch information
dsilhavy committed Apr 28, 2021
1 parent e6040e1 commit 0ec2da9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contrib/akamai/controlbar/ControlBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,10 @@ var ControlBar = function (dashjsMediaPlayer, displayUTCTimeCodes) {
var liveDelay = self.player.duration() - value;
if (liveDelay < liveThresholdSecs) {
durationDisplay.classList.add('live');
timeDisplay.textContent = '';
} else {
durationDisplay.classList.remove('live');
timeDisplay.textContent = '- ' + self.player.convertToTimeCode(liveDelay);
}
timeDisplay.textContent = '- ' + self.player.convertToTimeCode(liveDelay);
} else if (!isNaN(value)) {
timeDisplay.textContent = displayUTCTimeCodes ? self.player.formatUTC(value) : self.player.convertToTimeCode(value);
}
Expand Down

0 comments on commit 0ec2da9

Please sign in to comment.