How can I pass broadcast metadata to a webhook in Ant Media Server for authentication and event notifications? #5254
Replies: 4 comments 2 replies
-
Enabling the webhook authentication feature allows the server to send an HTTP request to your provided webhook address whenever a stream is initiated for publishing. This request includes essential stream details such as the stream name, app name, and stream ID. Starting from version 2.6.0, this information also includes broadcast metadata. When you publish a stream, the metadata you have passed to the Ant Media server (which can be done through the .publish method in all SDKs or through REST API) is included. Upon receiving this request, you have the opportunity to parse and process the information on your end and send a response. If the response code is 200, the server will authorize the stream and allow it to commence publishing. Conversely, if the response code differs from 200, the server will reject the stream from being published. For more information about webhook authentication check this page on our documentation: |
Beta Was this translation helpful? Give feedback.
-
Hello @Mohit-3196, @lastpeony , @yashtandon113 I tested the webhook feature on my local system and is working fine for events like (liveStreamStarted, liveStreamEnded). Thanks to the team for this great feature. I have a question : Scenario : One approach is to call the rest api in every X interval of time and verify the existence. (This is not a preferable approach to me). |
Beta Was this translation helpful? Give feedback.
-
Hello hello.. I am waiting 😃 |
Beta Was this translation helpful? Give feedback.
-
Hi @rahul78275 , I think stream created webhook notification is not available yet. But we may add this depending upon the demand. What do you think @lastpeony? Please let me know if it doesn't help. Thank you |
Beta Was this translation helpful? Give feedback.
-
I'm utilizing webhooks in Ant Media Server to handle stream authentication and receive notifications for events like
liveStreamStarted
andliveStreamEnded
, etc.In the release logs of version 2.6.0, it was mentioned that it's now possible to pass broadcast metadata to webhooks for authentication purposes.
Could anyone please guide me on the steps or instructions to accomplish this?
Beta Was this translation helpful? Give feedback.
All reactions