为什么我无法使用 Vide 包在我的网站上播放此视频? [英] Why can't I get this video to play on my website using Vide package?
问题描述
我正在使用
根据我看到的说明,我做的一切都是正确的.视频应该出现在我的网站上.然而事实并非如此.这是我在 Google Chrome 的控制台窗口中看到的错误:
为什么我会收到此错误 &为什么?我该如何解决?
Alan 的建议是正确的.
我有电话
<script src="bower_components/jquery/dist/jquery.js"></script>
之后
<script src="bower_components/vide/dist/jquery.vide.js"></script>`
当我颠倒他们的顺序时,错误消失了.
I'm using the Vide plugin to display a video on my website. But it is not working for me.
Here is what's in my HTML:
<div style="width: 1000px; height: 500px;"
data-vide-bg="dist/media/light" data-vide-options="loop: false, muted: false, position: 0% 0%">
</div>
Here is (part of) my app's directory structure. It's the part that contains the video:
According to the instructions I see, I'm doing everything right. The video should appear on my website. However it doesn't. And here is the error I see in the console window in Google Chrome:
Why am I getting this error & why? How can I fix it?
Alan's suggestion was correct.
I had the line
<script src="bower_components/jquery/dist/jquery.js"></script>
after
<script src="bower_components/vide/dist/jquery.vide.js"></script>`
When I reversed their order, the error disappeared.
这篇关于为什么我无法使用 Vide 包在我的网站上播放此视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!