ZoneMinder / zoneminder

ZoneMinder is a free, open source Closed-circuit television software application developed for Linux which supports IP, USB and Analog cameras.
http://www.zoneminder.com/
GNU General Public License v2.0
5.05k stars 1.22k forks source link

Todo: We need to not even try to load cameras that are off view. #4041

Open IgorA100 opened 3 months ago

IgorA100 commented 3 months ago

Indeed, an interesting idea. I propose to discuss. But at the moment I can't stop the camera on the Montage page. Neither does monitors[i].streamCommand(CMD_QUIT) Neither does monitors[i].stop() Neither does monitors[i].kill()

IgorA100 commented 3 months ago

@connortechnology Think about how you can stop it, and then, if necessary, start the monitor again on the Montage page. I'll try to implement the idea when only those monitors that are in view in the browser are launched. So as not to overload the server with work.

connortechnology commented 3 months ago

I have a branch here where I started work on it. You may wish to reference it.

https://github.com/connortechnology/ZoneMinder/tree/only_stream_visible

IgorA100 commented 3 months ago

I'll see. I didn't think you'd started this work yet.

IgorA100 commented 3 months ago

@connortechnology Your code is almost ready, I won't bother you. A couple of points: