How to autoplay youtube video?

How do I make a YouTube video autoplay?

1. On YouTube, open the video you wish to embed.
2. Click Share, then Embed.
1434-youtube-share.png
3. Choose your settings, then Copy the HTML code.
4. In your Bigcommerce control panel, open the page, product, or category you'd like to add the video to.
5. In the editor, click HTML (2012-05-07_1120.png) in the WYSIWYG editor.
1434-wysiwyg-html.png
6. Paste the code, and then add ?rel=0&autoplay=1 to the code as shown below.
Before:
<iframe width="420" height="315" src="[YouTube Video URL]" frameborder="0" allowfullscreen></iframe>
After:
<iframe width="420" height="315" src="[YouTube Video URL]?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>
7. Select Update.
2012-05-07_1122.png
8. Save the page, product, or category.
1434-save.png

No comments:

Post a Comment