3

I am currently running a blog and trying to put an autoplay YouTube video on a post. I am using the code:

<iframe width="560" height="315" src="https://www.youtube.com/embed/gxIv_ngpZYo?&autoplay=1" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

But the video is not starting automatically. How can I make it run automatically?

3

Remove the first & after the question mark

Like this:

<iframe width="560" height="315" src="https://www.youtube.com/embed/gxIv_ngpZYo?autoplay=1" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.