If the system volume was set to 0, change the state of the "Mute" icon in the volume slider (MonitorStream.js)

pull/4716/head
IgorA100 2026-03-18 13:32:01 +03:00 committed by GitHub
parent 5561829450
commit 1fc68a3e84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1029,7 +1029,7 @@ function MonitorStream(monitorData) {
volumeSlider.setAttribute('data-volume', parseInt(audioStream.volume * 100));
if (volumeSlider.allowSetValue) {
volumeSlider.noUiSlider.set(audioStream.volume * 100);
if (audioStream.muted === true) {
if (audioStream.muted === true || audioStream.volume === 0) {
this.changeStateIconMute('off');
volumeSlider.classList.add('noUi-mute');
} else {