如何知道视频转换何时完成?

编程入门 行业动态 更新时间:2024-10-28 05:27:49
本文介绍了如何知道视频转换何时完成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我已使用 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/videos/[video_id]?fields=uri,upload.status,transcode.status

upload.statustranscode.status 字段将返回以下值之一:

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

complete
error
in_progress

这篇关于如何知道视频转换何时完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-27 17:29:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1158547.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:视频转换

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!