How can I have private videos (on a private Pro Vimeo profile) viewable and DOWNLOADABLE on my website?

孤人 提交于 2020-01-06 14:41:00

问题


(Using Wordpress plugins and Vimeo API)

I have had a bespoke Wordpress plugin built and am struggling now with one capability.

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.

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.


回答1:


You need to use the API to retrieve file download links for your videos.

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.



来源:https://stackoverflow.com/questions/53988884/how-can-i-have-private-videos-on-a-private-pro-vimeo-profile-viewable-and-down

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!