mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 22:37:53 -05:00
Setup volume before mute.
This commit is contained in:
@@ -830,6 +830,9 @@ function handleMouseLeave(event) {
|
|||||||
|
|
||||||
function streamStart(monitor = null) {
|
function streamStart(monitor = null) {
|
||||||
monitorStream = new MonitorStream(monitor ? monitor : monitorData[monIdx]);
|
monitorStream = new MonitorStream(monitor ? monitor : monitorData[monIdx]);
|
||||||
|
monitorStream.setup_volume(document.getElementById('volume'));
|
||||||
|
monitorStream.setup_mute(document.getElementById('mute'));
|
||||||
|
|
||||||
monitorStream.setPlayer(player);
|
monitorStream.setPlayer(player);
|
||||||
monitorStream.setBottomElement(document.getElementById('dvrControls'));
|
monitorStream.setBottomElement(document.getElementById('dvrControls'));
|
||||||
// Start the fps and status updates. give a random delay so that we don't assault the server
|
// Start the fps and status updates. give a random delay so that we don't assault the server
|
||||||
@@ -1089,8 +1092,6 @@ function initPage() {
|
|||||||
alert("No monitor found for id "+monitorId);
|
alert("No monitor found for id "+monitorId);
|
||||||
}
|
}
|
||||||
|
|
||||||
monitorStream.setup_mute(document.getElementById('mute'));
|
|
||||||
monitorStream.setup_volume(document.getElementById('volume'));
|
|
||||||
|
|
||||||
manageRTSP2WebChannelStream();
|
manageRTSP2WebChannelStream();
|
||||||
} // initPage
|
} // initPage
|
||||||
|
|||||||
Reference in New Issue
Block a user