Custom audio player UI

For issue #122.
This commit is contained in:
N-Pex 2021-05-07 11:30:24 +02:00
parent 601e0d4a6c
commit b2a6a5d145
5 changed files with 241 additions and 11 deletions

View file

@ -565,6 +565,13 @@ class Util {
return dayjs.duration(ms).format("HH:mm:ss");
}
formatDuration(ms) {
if (ms >= (60 * 60000)) {
return dayjs.duration(ms).format("H:mm:ss");
}
return dayjs.duration(ms).format("m:ss");
}
formatRecordStartTime(timestamp) {
var then = dayjs(timestamp);
return then.format('lll');