使用jquery动态加载Vimeo视频
我想创建一个功能,允许我将 Vimeo 视频嵌入到我的网站上,并像 YouTube 播放列表一样运行它,即当单击视频链接时,它不会重新加载页面,而只会重新加载视频。例如,这是一个电影网站,我有一个该项目的预告片以及一些宣传剪辑,我希望能够通过简单地让用户单击加载新视频的链接来显示所有这些内容。我该怎么做?
I would like to create a function that would allow me to embed my Vimeo videos on my website and run it like a YouTube playlist i.e. when a video link is clicked, rather than reloading the page it only reloads the video. So for example, this being a film website, I have a trailer for the project as well as a few promo clips, I would like to be able to show all of those by simply having the user click a link which loads a new video. How would I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这也应该有效。
this should work too.
干得好。
Here you go.
查看 oembed。我所知道的最好的提供商是 http://embed.ly
官方 JQuery Embed.ly 插件在这里:https://github.com/embedly/embedly-jquery
Checkout oembed. The best provider I know of is http://embed.ly
The official JQuery Embed.ly plugin is here: https://github.com/embedly/embedly-jquery
我还使用过 Vimeo 播放列表,可在此处找到: http://luwes.co/labs/vimeo-playlist /
您可以设置播放列表列表的位置(视频的顶部、底部或侧面)。总的来说,设置起来非常容易。您只需将视频网址放入脚本中的数组中即可:
I've also used Vimeo Playlist, found here: http://luwes.co/labs/vimeo-playlist/
You can set where you want the playlist list (on top, bottom or side of the video). Overall it's pretty easy to set up. You just put your video urls in an array in the script: