问题描述
我已使用 API 成功将视频上传到 Vimeo,但之后视频转换需要一些时间..
I have successfully uploaded a video to Vimeo using the API, but after that It will take some time for video conversion..
有没有办法使用 API 检查视频转换是否已完成?我正在寻找回调 URL 之类的东西..
Is there a way to check if video conversion has completed using the API?I am looking for something like a callback URL..
推荐答案
目前,当上传完成视频转码时,API 不会执行回调或推送通知.相反,您需要定期向 API 发出请求以获取视频的状态.
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.
要获取视频的状态,请使用 filtered 请求这些字段指定:
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
upload.status
和 transcode.status
字段将返回以下值之一:
The upload.status
and transcode.status
fields will return one of the following values:
complete
error
in_progress
这篇关于如何知道视频转换何时完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!