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

Need current number of client in on_play/on_stop webhook body. #4147

Open
nguyencobap opened this issue Aug 19, 2024 · 3 comments
Open

Need current number of client in on_play/on_stop webhook body. #4147

nguyencobap opened this issue Aug 19, 2024 · 3 comments

Comments

@nguyencobap
Copy link

nguyencobap commented Aug 19, 2024

I think it's neccessary for having current number of client in on_play/on_stop webhook body.
I have service that start run ffmpeg to publish stream when have client start play. If there is another plays then I do not start ffmpeg anymore. When the last client stop and I stop ffmpeg publishing.
So to know the first client start stream and last client stop stream I need to know current number of client.

Thank you!

@TagorePde
Copy link

maybe you can check if the ffmpeg proccess is already started, and if is already estarted not start a new one?
regards.

@nguyencobap
Copy link
Author

maybe you can check if the ffmpeg proccess is already started, and if is already estarted not start a new one? regards.

Your solution is ok with playing flow but stopping flow is not working. How can I know the last client stops stream so I can kill ffmpeg process without know number of client?

@TagorePde
Copy link

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