Play YouTube Video Automatically, if you want to show YouTube video on other website then you have to embed the video. But it would not play automatically when someone visit on this webpage. Visitors need to play embedded video manually. If you want to play embedded YouTube Video Automatically then follow the steps below:
How to play YouTube video automatically?
How to embed YouTube video?
Step 1: At first play a YouTube video.
Step 2: Go to “Share” option and click on “Embed” button and copy the following code.
You can see the example below:
This is a video of YouTube https://www.youtube.com/watch?v=GbgeezrfOjg – I want to embed and play it automatically.
Now customize the code for playing YouTube video automatically
Just add ?rel=0&autoplay at the end of video URL.
Total code after customization:
<iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/GbgeezrfOjg?rel=0&autoplay” frameborder=”0″ allowfullscreen></iframe>
Watch my YouTube channel ad is playing automatically
Thank you for watching…