From fc2d2725622ce6252b8b986800fb37fb343c60d8 Mon Sep 17 00:00:00 2001 From: maltoze Date: Tue, 12 Sep 2023 14:50:37 +0800 Subject: [PATCH] fix: use webm --- src/lib/recording.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/recording.ts b/src/lib/recording.ts index 8ab3de9..80946ba 100644 --- a/src/lib/recording.ts +++ b/src/lib/recording.ts @@ -140,7 +140,7 @@ class Recorder { } this.recorder.onstop = async () => { const duration = Date.now() - this.startTime - const blob = new Blob(this.data, { type: this.data[0].type }) + const blob = new Blob(this.data, { type: recorderMimeType }) const fixedBlob = await fixWebmDuration(blob, duration, { logger: false }) const url = URL.createObjectURL(fixedBlob)