mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-15 18:14:36 -04:00
Merge pull request #4046 from IgorA100/patch-122
Use "setMaxFPS(fps)" instead of "streamCommandstreamCommand({command:CMD_MAXFPS, maxfps: fps})" (montage.js)
This commit is contained in:
@@ -982,10 +982,10 @@ function monitorsSetRate(fps, id=null) {
|
||||
var currentMonitor = monitors.find((o) => {
|
||||
return parseInt(o["id"]) === id;
|
||||
});
|
||||
currentMonitor.streamCommand({command: CMD_MAXFPS, maxfps: fps});
|
||||
currentMonitor.setMaxFPS(fps);
|
||||
} else {
|
||||
for ( let i = 0, length = monitors.length; i < length; i++ ) {
|
||||
monitors[i].streamCommand({command: CMD_MAXFPS, maxfps: fps});
|
||||
monitors[i].setMaxFPS(fps);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user