Answer the question
In order to leave comments, you need to log in
How to autoplay youtube video in popup?
When you click on the button, the following should happen: a popup should open, and the video in it should immediately start playing.
How to implement it?
Answer the question
In order to leave comments, you need to log in
Well, make a standard pop-up call, as you like, there are a whole lot of plugins for jQuery, and to autoplay the video, add ?autoplay=1 to the address on YouTube.
Example:
<iframe width="800" height="600" frameborder="0" allowfullscreen="" src="https://www.youtube.com/embed/M8g3au67P9w?autoplay=1">
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question