Skip to content

Commit 16760f4

Browse files
Merge pull request #4716 from IgorA100/patch-89150
Change the "Mute" icon in the volume slider based on the volume level, not just when the "muted" attribute changes (MonitorStream.js)
2 parents 8970718 + 1fc68a3 commit 16760f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/js/MonitorStream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ function MonitorStream(monitorData) {
10291029
volumeSlider.setAttribute('data-volume', parseInt(audioStream.volume * 100));
10301030
if (volumeSlider.allowSetValue) {
10311031
volumeSlider.noUiSlider.set(audioStream.volume * 100);
1032-
if (audioStream.muted === true) {
1032+
if (audioStream.muted === true || audioStream.volume === 0) {
10331033
this.changeStateIconMute('off');
10341034
volumeSlider.classList.add('noUi-mute');
10351035
} else {

0 commit comments

Comments
 (0)