mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-14 15:56:38 +03:00
fix(UI): fix presentation time display when display time is larger than duration (#9712)
Fixes #9711
This commit is contained in:
@@ -120,7 +120,10 @@ shaka.ui.PresentationTimeTracker = class extends shaka.ui.Element {
|
||||
} else {
|
||||
const showHour = seekRangeSize >= 3600;
|
||||
|
||||
const currentTime = Math.max(0, displayTime - seekRange.start);
|
||||
let currentTime = Math.max(0, displayTime - seekRange.start);
|
||||
if (seekRangeSize) {
|
||||
currentTime = Math.min(currentTime, seekRangeSize);
|
||||
}
|
||||
let value = Utils.buildTimeString(currentTime, showHour);
|
||||
if (!this.showProgress_ && seekRangeSize) {
|
||||
const remainingTime = seekRangeSize - currentTime;
|
||||
|
||||
Reference in New Issue
Block a user