mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
negative sign thingy
This commit is contained in:
parent
c5251401e7
commit
1472b21600
1 changed files with 4 additions and 6 deletions
|
@ -74,14 +74,12 @@ export function TimeAction(props: Props) {
|
|||
|
||||
if (timeFormat === VideoPlayerTimeFormat.REGULAR) {
|
||||
formattedTime = `${currentTime} ${props.noDuration ? "" : `/ ${duration}`}`;
|
||||
} else if (timeFormat === VideoPlayerTimeFormat.REMAINING) {
|
||||
} else if (timeFormat === VideoPlayerTimeFormat.REMAINING && !isMobile) {
|
||||
formattedTime = `${t("videoPlayer.timeLeft", {
|
||||
timeLeft,
|
||||
})}${
|
||||
videoTime.time === videoTime.duration || isMobile
|
||||
? ""
|
||||
: formattedTimeFinished
|
||||
} `;
|
||||
})}${videoTime.time === videoTime.duration ? "" : formattedTimeFinished} `;
|
||||
} else if (timeFormat === VideoPlayerTimeFormat.REMAINING && isMobile) {
|
||||
formattedTime = `-${timeLeft}`;
|
||||
} else {
|
||||
formattedTime = "";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue