如何在我的网站上查看和下载私人视频(在私人 Pro Vimeo 个人资料上)? [英] How can I have private videos (on a private Pro Vimeo profile) viewable and DOWNLOADABLE on my website?
问题描述
(使用 Wordpress 插件和 Vimeo API)
(Using Wordpress plugins and Vimeo API)
我已经构建了一个定制的 Wordpress 插件,现在正在为一种功能而苦苦挣扎.
I have had a bespoke Wordpress plugin built and am struggling now with one capability.
我已经为 Pro Vimeo 帐户付费,以便我有更好的隐私选项,但我需要让视频在我客户的网站上可见,最重要的是可以下载.
I have paid for a Pro Vimeo account so that I have better privacy options, but I need to have the videos viewable and most importantly DOWNLOADABLE on my client's website.
我确信这在以前是可能的,但是在三位软件开发人员尝试过并且大多未能完成我的工作简介之后,我非常绝望地想知道如何完成这个关键功能.
I am sure this was possible before, but after three software developers have tried and mostly not managed to complete my job briefs, I am left pretty desperately on how to finish this key functionality.
当我尝试直接从网站下载视频时,它不会让我进入一个空白页面.解决此问题的唯一方法是在 Vimeo 上公开我的 Vimeo 个人资料和视频,但是,重要的是它们在那里是私密的.
When I try to download the videos straight from the website, it won't let me and takes me to a blank page. The only way to fix it is to make my Vimeo profile and videos public on Vimeo however, it is vital that they are private on there.
如果有人能帮助我,我会非常感激.
I would be SO GRATEFUL if someone could help me.
推荐答案
您需要使用 API 来检索视频的文件下载链接.
You need to use the API to retrieve file download links for your videos.
向 https://api.vimeo.com/videos/[video_id] 发出经过身份验证的请求] 使用具有 video_files
范围的标记.响应中的数组 "download"
将包含视频文件元数据,包括下载链接和这些链接的过期时间.
Make an authenticated request to https://api.vimeo.com/videos/[video_id] using a token with the video_files
scope. In the response is an array "download"
that will contain video file metadata, including download links, and the expiration time of those links.
这篇关于如何在我的网站上查看和下载私人视频(在私人 Pro Vimeo 个人资料上)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!