mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-16 23:43:03 +00:00
fix: apply mute state to new streams and reset silence timer on unmute feedback from pr-validator-bot
This commit is contained in:
parent
3e2d2c7159
commit
d1d78cf771
1 changed files with 8 additions and 0 deletions
|
|
@ -52,6 +52,9 @@
|
|||
track.enabled = !isMuted;
|
||||
});
|
||||
}
|
||||
if (!isMuted) {
|
||||
lastSoundTime = Date.now();
|
||||
}
|
||||
};
|
||||
|
||||
let videoInputDevices = [];
|
||||
|
|
@ -240,6 +243,11 @@
|
|||
autoGainControl: true
|
||||
}
|
||||
});
|
||||
if (isMuted) {
|
||||
audioStream.getAudioTracks().forEach((track) => {
|
||||
track.enabled = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
mediaRecorder = new MediaRecorder(audioStream);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue