mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
use correct mime type for audio blob
This commit is contained in:
parent
7015fa97db
commit
3c511e619e
1 changed files with 3 additions and 1 deletions
|
|
@ -49,7 +49,9 @@ class MicrophoneRecorder {
|
|||
}
|
||||
|
||||
// create blob from audio chunks
|
||||
const blob = new Blob(this.audioChunks, { type: "audio/ogg; codecs=opus" });
|
||||
const blob = new Blob(this.audioChunks, {
|
||||
type: this.mediaRecorder.mimeType, // likely to be "audio/webm;codecs=opus" in chromium
|
||||
});
|
||||
|
||||
// resolve promise
|
||||
resolve(blob);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue