'How to get the VOD Id for the stream automatically after the recording is stopped?

I would like to put the vod_id info in my database but the recording endpoint 'PUT' /v2/broadcasts/{id}/recording/{recording-status} does not return the VOD id after stopping the recording. We have looked into the source code and the dataId field returns always null. Is there any way to achieve it?



Solution 1:[1]

You can use Webhook calls to get the Vod Id.

Ant Media Server provides webhooks integration for making your system/app know when certain events occurs on the server.

Ant Media Server calls vodReady hook when the recording of the live stream is ended. enter image description here

I hope I was able to help.

Thank You!

antmedia.io

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mohit Dubey