react-media-recorder
react-media-recorder copied to clipboard
Using audio/wav is throwing an error
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`,
);
}
We have the same issue
Facing this issue as well