How to know when video conversion is completed?

末鹿安然 提交于 2020-01-06 08:33:05

问题


I have successfully uploaded a video to Vimeo using the API, but after that It will take some time for video conversion..

Is there a way to check if video conversion has completed using the API? I am looking for something like a callback URL..


回答1:


Currently the API does not perform a callback or push notification when an upload has completed video transcoding. Instead, you'll need to periodically make requests to the API to get the video's status.

To get a video's status, make a filtered request with these fields specified:

GET https://api.vimeo.com/videos/[video_id]?fields=uri,upload.status,transcode.status

The upload.status and transcode.status fields will return one of the following values:

complete
error
in_progress


来源:https://stackoverflow.com/questions/51570973/how-to-know-when-video-conversion-is-completed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!