How to get notified when there are no consumers using OME? #1790
Unanswered
dvir-highlander
asked this question in
Help
Replies: 1 comment 2 replies
-
AdmissionWebhooks can be configured to be triggered when a player disconnects. It won't have how many people are still watching but you could make a subsequent statistics call to see how many people are still viewing. If you make this call before responding back to the AdmissionWebhook, the disconnecting party may still be counted there |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’m using OvenMediaEngine (OME) for streaming, and I need to find a way to be notified when there are no active consumers for a specific stream. I noticed the statistics API, but it seems to require periodic calls for each stream.
Is there a built-in trigger or event in OME that can notify my server when the first consumer connects to the stream, and when the stream is no longer being watched, so I can close it?
Can I use AdmissionWebhooks to achieve my needs?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions