jQuery模态视频js插件
jQuery modal video js plugin
我正在尝试使用 JQuery 插件,一切正常,但视频无法加载,我不知道为什么。我有一个 vimeo 视频,我想用模型视频播放器在我的网站上显示。这是 plugin
这是我的代码:
<script src = "Scripts/modal-video.js"></script>
<button class="js-modal-btn" data-video-id="217038687">Open Vimeo</button>
<script>
$(document).ready(function() {
$(".js-modal-btn").modalVideo({channel:'vimeo'});
});
</script>
这是我单击示例按钮时看到的内容 Modal View。
我在页面源文件上也遇到了这个错误://player.vimeo.com/video/217038687?api=false&autopause=true&autoplay=true&byline=true&loop=false&portrait=true&title=true&xhtml=falseFailed加载资源:
在此服务器上找不到请求的 URL。
错误引用 file://
的事实会让我认为您在嵌入的 href 上缺少协议,但您没有在示例中提供它。
我正在尝试使用 JQuery 插件,一切正常,但视频无法加载,我不知道为什么。我有一个 vimeo 视频,我想用模型视频播放器在我的网站上显示。这是 plugin
这是我的代码:
<script src = "Scripts/modal-video.js"></script>
<button class="js-modal-btn" data-video-id="217038687">Open Vimeo</button>
<script>
$(document).ready(function() {
$(".js-modal-btn").modalVideo({channel:'vimeo'});
});
</script>
这是我单击示例按钮时看到的内容 Modal View。
我在页面源文件上也遇到了这个错误://player.vimeo.com/video/217038687?api=false&autopause=true&autoplay=true&byline=true&loop=false&portrait=true&title=true&xhtml=falseFailed加载资源: 在此服务器上找不到请求的 URL。
错误引用 file://
的事实会让我认为您在嵌入的 href 上缺少协议,但您没有在示例中提供它。