Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
IgorA100 opened this issue May 27, 2024 · 4 comments
Closed

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

IgorA100 opened this issue May 27, 2024 · 4 comments

Comments

@IgorA100
Copy link
Contributor

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 IgorA100 changed the title We need to not even try to load cameras that are off view. Todo: We need to not even try to load cameras that are off view. May 27, 2024
@IgorA100
Copy link
Contributor Author

@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
Copy link
Member

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
Copy link
Contributor Author

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

@IgorA100
Copy link
Contributor Author

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

  • For STICKY mode the following is required:
    document.querySelector('#content').onscroll = on_scroll;
  • Stopping monitors does not work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants