-
Notifications
You must be signed in to change notification settings - Fork 614
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
Return VodId in Recording endpoint #4062
Comments
Hi @KenzoIkeizume , You can use webhook calls to get the VoD Id. Ant Media Server calls vodReady hook when the recording of the live stream is ended. You can refer to this stack overflow answer I hope I was able to help. Thank you |
Thank you for the issue @KenzoIkeizume and work around solution @Mohit-3196 I think we can also add vod id to the response of the REST call. It makes life easy. |
Hi @mekya |
@mustafaboleken is there any update on this? |
It's almost done. I will open a pull request today. |
Hi! Any update on when we can expect this? In our workflow we also require vodId in the start/stop recording responses. |
Hey @danavramescu , I'm trying to merge today. |
Hey Guys, FYI |
Hi ! Thanks! What do we need to do from our end? |
Hi @danavramescu, Thank you for your question. It's a good point. VodId is returned in If you enable recording when the stream is not broadcasting yet, I can just recommend two things to get the vod Id
|
Hi!
The stream was live and broadcasting in the example, on both start and stop rec calls. But neither call returned vodId in the dataId field. Both times it was null. We are only working with recordings on broadcasting streams
…Sent from my iPhone
On 1 Oct 2022, at 11:22, Ahmet Oğuz Mermerkaya ***@***.***> wrote:
Hi @danavramescu<https://github.com/danavramescu>,
Thank you for your question. It's a good point.
VodId is returned in dataId field if the stream is broadcasting at that time. If the stream is not broadcasting, it just returns with the old way because there is no VoD recording at that time and we want to make things simple in the server side.
If you enable recording when the stream is not broadcasting yet, I can just recommend two things to get the vod Id
1. You can listen the vodReady webhook -> https://resources.antmedia.io/docs/using-webhooks
2. You can get the vods by filtering with streamId via REST API -> https://antmedia.io/rest/#/VoD%20Rest%20Service/getVodList
—
Reply to this email directly, view it on GitHub<#4062 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFMIPJ5WPBQLCAUHGGTACQTWA7YDJANCNFSM5Q4MSNJQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hey @danavramescu, Thank you for follow up. Then just let me tell what is working for me and find the difference in our tests
curl -X 'PUT' 'https://ovh36.antmedia.io:5443/testVodId/rest/v2/broadcasts/stream1/recording/true' -H 'accept: application/json' the incoming response as expected {"success":true,"message":"1664620260843","dataId":"FeGReCzBm2DWs9Xe2YA8BT4J","errorId":0}
curl -X 'PUT' 'https://ovh36.antmedia.io:5443/testVodId/rest/v2/broadcasts/stream1/recording/false' -H 'accept: application/json' and the incoming response as follows {"success":true,"message":null,"dataId":"FeGReCzBm2DWs9Xe2YA8BT4J","errorId":0}
What's the difference in your scenario? |
Sorry, didn't pay attention, was still using enterprise edition version 2.4.3. upgraded to 2.4.4 and all good now! Thanks! This update is really useful and makes working with remote recs much easier! Good job! |
No worries, it's great to hear that it's working for you and it helps you :) |
Hi @mekya not yet tested but I have a query.
is the testVodId is the custom one which user can generate ? |
Hi @shibupanda ,
|
Once I upgrade server with latest snapshot getting some exception. |
Hi @shibupanda , Shall we proceed through support channel? Because your problem is not directly related to this issue. BTW, this improvement is available on version 2.5.0 |
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
After request this endpoint I'd like to have the VodId
[PUT] /v2/broadcasts/{id}/recording/{recording-status}
The
dataId
field could return the VodId, because today is always nullDescribe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: