Update VoiceRecorder.vue
This commit is contained in:
parent
2c01a0d05d
commit
b6ac6ec881
1 changed files with 3 additions and 2 deletions
|
|
@ -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()
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue