我的 html 中有一个图像 slider 元素,如下所示:
<div class="slider">
<img/>
<img/>
<iframe src="https://player.vimeo.com/video/"</iframe>
<img/>
</div>
带有 iframe 视频。目前它继续在后台播放。我想在使用下一个/上一个导航图标(.next 和 .prev)离开时停止/刷新视频。
我怎样才能最好地实现这一目标?
最佳答案
您必须使用 video
而不是 iframe
:
<video controls>
<source src="Your Path" type="video/mp4">
Your browser does not support the video tag.
</video>
关于jquery - 单击导航图标停止/重置 <iframe> 视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34812763/