Stream Expiry Notification #6925
-
Hello, I have created a stream and specified an EndDate and Expiry. Is it possible to receive a webhook notification when the stream expires or when the currentDate surpasses the EndDate? I could not find any relevant webhooks in the documentation. Is there any way to implement custom logic to achieve this functionality? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@Mohit-3196 any idea about this ? |
Beta Was this translation helpful? Give feedback.
-
@ankit-akteena Ant Media Server doesn't have a built-in webhook specifically for stream expiration or when the EndDate is surpassed. However, you can implement custom logic to achieve this functionality by setting a webhook on "liveStreamEnded" to check if the stream's EndDate has passed. If EndDate has passed, you can send a custom notification or update the status of the stream. |
Beta Was this translation helpful? Give feedback.
@ankit-akteena You’re right! Since a stream that hasn’t started won’t trigger any webhooks, you’ll need to implement a custom solution. This involves periodically checking the stream’s EndDate using Ant Media’s REST API (status schema)and triggering the necessary actions when the time is surpassed. While no ready-made solution exists for this, the REST API provides the tools to build your own monitoring logic.