Autoplay youtube iframe starts without clicking popup button
-
Hi there, I appreciate your plugin and will review for sure.
I have a question how to embed an autoplay video.
Currently I used such a code:
<iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/XXX?rel=0&autoplay=1″ frameborder=”0″ allowfullscreen></iframe>
But it starts immediately when the page is loaded.
I want it to start autoplay only when the button (trigger) is clicked.The clicking of the button must trigged the autoplay. Can this be achieved with js? Please help me on the right road. Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Autoplay youtube iframe starts without clicking popup button’ is closed to new replies.