Update VoiceRecorder.vue

This commit is contained in:
N-Pex 2021-03-23 22:50:32 +01:00
parent 2c01a0d05d
commit b6ac6ec881

View file

@ -381,11 +381,12 @@ export default {
getFile(send) { getFile(send) {
this.recorder.stopRecording(function () this.recorder.stopRecording(function ()
{ {
const blob = this.recorder.getBlob();
this.recordedFile = new File( this.recordedFile = new File(
[this.recorder.getBlob()], [blob],
util.formatRecordStartTime(this.recordStartedAt) + ".webm", util.formatRecordStartTime(this.recordStartedAt) + ".webm",
{ {
type: "audio/webm", type: blob.type,
lastModified: Date.now() lastModified: Date.now()
} }
); );