如何在我的网站上观看和下载可下载的私人视频(在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屋!