diff --git a/docs/basic-example.vue b/docs/basic-example.vue index 2a7280f..c006c21 100644 --- a/docs/basic-example.vue +++ b/docs/basic-example.vue @@ -8,6 +8,7 @@ const { stop, pause, resume, + mimeType, state, } = useMediaRecorder({ constraints: { audio: true } }) @@ -42,7 +43,7 @@ function handleStartClick() { const audio = computed(() => { if (!data.value?.length || state.value !== 'inactive') return - const blob = new Blob(data.value) + const blob = new Blob(data.value, {type: mimeType.value}) return URL.createObjectURL(blob) }) diff --git a/docs/examples.md b/docs/examples.md index 8273a66..800dfcb 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -4,6 +4,11 @@ outline: deep # Examples +::: warning +Due to a [bug in WebKit (Safari)](https://bugs.webkit.org/show_bug.cgi?id=198015), the `