点标签看更多好帖
开启左侧

How do I make a YouTube video autoplay?

[复制链接]
分享到:
发表于 2016-1-7 00:16 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?注册

x
本帖最后由 小灵通 于 2016-1-6 21:20 编辑 6 {) M' }: q9 W/ _! K' o
6 n; U4 u+ ?# a4 x# |) \1 E5 I% A  H
You can have your embedded video start playing automatically when a shopper visits that page by adding a simple parameter to your YouTube URL. This can be especially useful for a "how it works" or "about us" page, where a shopper is expecting rich content.
Take careful consideration when deciding to autoplay your videos. Depending on the context, automatically starting a video can annoy your visitor and end up causing more harm than good. Keep in mind your visitors may be shopping discretely—they may be in a quiet coffee shop, a library, or on lunch break at work.
Making a YouTube Video Autoplay
1. On YouTube, go to the video you wish to embed.
2. Click Share, then Embed.
w11.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 Page Content or Product Description editor, click the HTML icon in the toolbar.
w22.png
6. Paste the code, then add ?rel=0&autoplay=1 to the code. See the example below.
Before
  1. <iframe width="640" height="360" src="[YouTube Video URL]" frameborder="0" allowfullscreen></iframe>
复制代码
) `; F% X2 M, D! l3 F9 ~! J% l
After
  1. <iframe width="640" height="360" src="[YouTube Video URL]?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>
复制代码

/ K, c$ Z: j/ C% q
7. Select Update.
w33.png
8. Save your changes before exiting.


转载请保留当前帖子的链接:http://www.beimeilife.com/thread-4226-1-1.html 谢谢!

使用高级回帖 (可批量传图、插入视频等)快速回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则   Ctrl + Enter 快速发布  

发帖时请遵守我国法律,网站会将有关你发帖内容、时间以及发帖IP地址等记录保留,只要接到合法请求,即会将信息提供给有关政府机构。
快速回复 返回顶部 返回列表