mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-14 09:34:32 -04:00
Fix: Display volumeSlider when switching monitors on the Watch page (MonitorStream.js)
This commit is contained in:
@@ -927,9 +927,11 @@ function MonitorStream(monitorData) {
|
||||
|
||||
this.createVolumeSlider = function() {
|
||||
const volumeSlider = this.getVolumeSlider();
|
||||
const iconMute = this.getIconMute();
|
||||
const audioStream = this.getAudioStream();
|
||||
if (volumeSlider.noUiSlider || !volumeSlider || !audioStream) return;
|
||||
if (!volumeSlider || !audioStream) return;
|
||||
const iconMute = this.getIconMute();
|
||||
$j('#volumeControls'+this.id).show();
|
||||
if (volumeSlider.noUiSlider) return;
|
||||
const defaultVolume = (volumeSlider.getAttribute("data-volume") || 50);
|
||||
|
||||
$j('#volumeControls'+this.id).show();
|
||||
|
||||
Reference in New Issue
Block a user