This commit is contained in:
Timothy Jaeryang Baek
2026-05-09 05:27:47 +09:00
parent 212bb68a66
commit bf4f44ee9c
9 changed files with 80 additions and 20 deletions
@@ -238,7 +238,13 @@
return;
}
const mineTypes = ['audio/webm; codecs=opus', 'audio/webm', 'audio/ogg; codecs=opus', 'audio/mp4', 'audio/wav'];
const mineTypes = [
'audio/webm; codecs=opus',
'audio/webm',
'audio/ogg; codecs=opus',
'audio/mp4',
'audio/wav'
];
mediaRecorder = new MediaRecorder(stream, {
mimeType: mineTypes.find((type) => MediaRecorder.isTypeSupported(type))