You already using the extendable-media-recorder library as a dependency, which adds the support of using "audio/wav" for audio recording.
but this line of code is throwing an error when I set the { mimeType: "audio/wav"}
if (!MediaRecorder.isTypeSupported(mediaRecorderOptions.mimeType)) {
console.error(
`The specified MIME type you supplied for MediaRecorder doesn't support this browser`,
);
}
because "audio/wav" is not natively a supported format by the browser
Please consider fixing this
I would suggest something like:
if (!MediaRecorder.isTypeSupported(mediaRecorderOptions.mimeType) && mediaRecorderOptions.mimeType.toLowerCase() !== "audio/wav") {
console.error(
`The specified MIME type you supplied for MediaRecorder doesn't support this browser`,
);
}
You already using the
extendable-media-recorder
library as a dependency, which adds the support of using"audio/wav"
for audio recording. but this line of code is throwing an error when I set the{ mimeType: "audio/wav"}
because
"audio/wav"
is not natively a supported format by the browserPlease consider fixing this I would suggest something like: