fix progressbar
This commit is contained in:
parent
249a7e71ac
commit
cf1def6104
1 changed files with 2 additions and 2 deletions
|
@ -732,9 +732,9 @@ export class Player extends EventEmitter {
|
||||||
if (Boolean(options?.timecodes)) {
|
if (Boolean(options?.timecodes)) {
|
||||||
const currentTimecode = Util.buildTimeCode(Util.parseMS(currentStreamTime));
|
const currentTimecode = Util.buildTimeCode(Util.parseMS(currentStreamTime));
|
||||||
const endTimecode = Util.buildTimeCode(Util.parseMS(totalTime));
|
const endTimecode = Util.buildTimeCode(Util.parseMS(totalTime));
|
||||||
return `${currentTimecode} ┃ ${indicator}${line.repeat(length)} ┃ ${endTimecode}`;
|
return `${currentTimecode} ┃ ${indicator}${line.repeat(length - 1)} ┃ ${endTimecode}`;
|
||||||
} else {
|
} else {
|
||||||
return `${indicator}${line.repeat(length)}`;
|
return `${indicator}${line.repeat(length - 1)}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue