36
rated 0 times
[
43]
[
7]
/ answers: 1 / hits: 45777
/ 8 Years ago, tue, november 29, 2016, 12:00:00
I have a Bootstrap 3.3.7 modal window which contains a video using the HTML5 video tag, e.g.
<video controls autoplay>
<source src=video.mp4 type=video/mp4>
Your browser does not support the video tag.
</video>
The trouble with this is that when my web page loads, the video starts playing (even though it cannot be seen since the modal is closed, the audio also plays).
I understand that the autoplay
tag is doing this. But how can I get the video to autoplay when the modal is loaded? And stop when the modal is closed?
More From » jquery