mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-09 18:24:27 +02:00
web/remux: lower percentage bound
This commit is contained in:
parent
7d10ab765e
commit
9d7512d6e5
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
$: {
|
$: {
|
||||||
if (totalDuration && processedDuration) {
|
if (totalDuration && processedDuration) {
|
||||||
const percentage = Math.min(100, (processedDuration / totalDuration) * 100).toFixed(2);
|
const percentage = Math.max(0, Math.min(100, (processedDuration / totalDuration) * 100)).toFixed(2);
|
||||||
progress = `${percentage}%, ${speed}x`;
|
progress = `${percentage}%, ${speed}x`;
|
||||||
} else if (processing) {
|
} else if (processing) {
|
||||||
progress = 'getting video metadata';
|
progress = 'getting video metadata';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user