mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
refac
This commit is contained in:
@@ -238,7 +238,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
const mineTypes = ['audio/webm; codecs=opus', 'audio/mp4'];
|
||||
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))
|
||||
|
||||
@@ -80,7 +80,8 @@ export class AudioQueue {
|
||||
#halt() {
|
||||
this.audio.pause();
|
||||
this.audio.currentTime = 0;
|
||||
this.audio.src = '';
|
||||
this.audio.removeAttribute('src');
|
||||
this.audio.load();
|
||||
this.queue = [];
|
||||
this.current = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user