Start on voice recording
This commit is contained in:
parent
3aef5b6b3e
commit
fd86e753fe
7 changed files with 335 additions and 2 deletions
|
|
@ -8,6 +8,8 @@ var base64Url = require('json-web-key/lib/base64url');
|
|||
// Install extended localized format
|
||||
var localizedFormat = require('dayjs/plugin/localizedFormat')
|
||||
dayjs.extend(localizedFormat)
|
||||
var duration = require('dayjs/plugin/duration')
|
||||
dayjs.extend(duration);
|
||||
|
||||
class Util {
|
||||
getAttachment(matrixClient, event) {
|
||||
|
|
@ -443,6 +445,15 @@ class Util {
|
|||
return then.format('L');
|
||||
}
|
||||
}
|
||||
|
||||
formatRecordDuration(ms) {
|
||||
return dayjs.duration(ms).format("HH:mm:ss");
|
||||
}
|
||||
|
||||
formatRecordStartTime(timestamp) {
|
||||
var then = dayjs(timestamp);
|
||||
return then.format('lll');
|
||||
}
|
||||
}
|
||||
export default new Util();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue