How to auto play embedded YouTube video on WordPress post


#1

I have placed URL in post (which will automatically embed the video) in post. How to make it play automatically?


#2

Method 1
If your video links look like this https://www.youtube.com/embed/gQDo5QuZTaw then you need to add ?autoplay=1 with your links https://www.youtube.com/embed/gQDo5QuZTaw?autoplay=1

After adding, ?autoplay=1 your youtube video will play automatically.

Method 2
During New post creation, Just change the mode to text and paste below embed code.
Note: Don’t miss to change your youtube video link and remove iframe tag space.

< iframe width=“560” height=“315” src=“https://www.youtube.com/embed/gQDo5QuZTaw?autoplay=1” frameborder=“0” allowfullscreen>< /iframe >


#3

In my point of you. First method is worth to use it.

If you are using the second method. Make your iframe as an responsive one. otherwise it will affect the user experience.

Prefer Method 1 . Its helps to automatically resize and shows the video as an more effective one.