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

Add info endpoint #20

Open
redfast00 opened this issue Sep 5, 2022 · 1 comment · May be fixed by #21
Open

Add info endpoint #20

redfast00 opened this issue Sep 5, 2022 · 1 comment · May be fixed by #21

Comments

@redfast00
Copy link

redfast00 commented Sep 5, 2022

This HTTP endpoint could return the amount of connected clients per stream in JSON format. We're using mjpeg-proxy for the camera in our hackerspace, and it's nice to know if somebody is watching, that way, we can wave to them.

For example, on /api//info

{
'connections': {
  'stream1': 3,
  'stream2': 5
  }
}

I'm willing to implement this myself, but I'd first like to ask what you think of this, so I don't spend time coding a feature that you don't want in the codebase.

@kescherCode
Copy link
Contributor

I think this could be a good idea, as the connections are already logged anyway to begin with (for the sake of shutting down unused streams).

@redfast00 redfast00 linked a pull request Sep 5, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants