I have an mp4 video in a modal window, and the video auto-plays when the first time the modal window is opened. My HTML is: <video controls autoplay> <source src="filename.mp4" type="video/mp4">
But if the user closes the modal window then re-opens it, the mp4 doesn't auto play, you have to click the "Play" button
What code can be added to cause it to always auto-play?
Auto-Play mp4 Every Time Modal Window Is Opened
in HTML/XHTML
Posted
I have an mp4 video in a modal window, and the video auto-plays when the first time the modal window is opened.
My HTML is:
<video controls autoplay>
<source src="filename.mp4" type="video/mp4">
But if the user closes the modal window then re-opens it, the mp4 doesn't auto play, you have to click the "Play" button
What code can be added to cause it to always auto-play?