V
V
Vasyl Boyko2015-06-12 22:11:34
YouTube
Vasyl Boyko, 2015-06-12 22:11:34

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

1 answer(s)
D
defaultvoice, 2015-06-12
@defaultvoice

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 question

Ask a Question

731 491 924 answers to any question