Merge pull request #14696 from ShirasawaSama/fix_old_ios_device_voice_recording

fix: fix old iOS device voice recording
This commit is contained in:
Tim Jaeryang Baek 2025-06-05 20:38:55 +04:00 committed by GitHub
commit 92c5773682
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -205,8 +205,10 @@
return;
}
const mineTypes = ['audio/webm; codecs=opus', 'audio/mp4'];
mediaRecorder = new MediaRecorder(stream, {
mimeType: 'audio/webm; codecs=opus'
mimeType: mineTypes.find((type) => MediaRecorder.isTypeSupported(type))
});
mediaRecorder.onstart = () => {