mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
Merge pull request #14696 from ShirasawaSama/fix_old_ios_device_voice_recording
fix: fix old iOS device voice recording
This commit is contained in:
commit
92c5773682
1 changed files with 3 additions and 1 deletions
|
|
@ -205,8 +205,10 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const mineTypes = ['audio/webm; codecs=opus', 'audio/mp4'];
|
||||||
|
|
||||||
mediaRecorder = new MediaRecorder(stream, {
|
mediaRecorder = new MediaRecorder(stream, {
|
||||||
mimeType: 'audio/webm; codecs=opus'
|
mimeType: mineTypes.find((type) => MediaRecorder.isTypeSupported(type))
|
||||||
});
|
});
|
||||||
|
|
||||||
mediaRecorder.onstart = () => {
|
mediaRecorder.onstart = () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue