问题
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