mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
fix: fix old iOS device voice recording
This commit is contained in:
parent
53764fe648
commit
07b2ecf6aa
1 changed files with 3 additions and 1 deletions
|
|
@ -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 = () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue