获取嵌入式YouTube视频以自动播放和循环播放

获取嵌入式YouTube视频以自动播放和循环播放

本文介绍了获取嵌入式YouTube视频以自动播放和循环播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图获得一个基本的Youtube视频来自动播放和嵌入在页面上的自动循环,但我没有运气。

 < div style =text-align:center; margin:auto>< object type =application / x-shockwave-flashstyle =width:1120px; height:630px;数据=http://www.youtube.com/v/GRonxog5mbw?rel=0&amp;loop=1&amp;autoplay=1&amp;showsearch=0&amp;version=3&amp;showinfo=0& ;安培;适度品牌= 1&放大器;放大器; FS = 1\" > 
< param name =movievalue =http://www.youtube.com/v/GRonxog5mbw?rel=0&amp;loop=1&amp;autoplay=1&amp;showsearch=0& amp; amp; version = 3& amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; showinfo&
< param name =allowFullScreenvalue =true/>
< param name =allowscriptaccessvalue =always/>
< / object>< / div>


解决方案

YouTubes HTML5嵌入代码:

 < iframe width =560height =315src =http://www.youtube.com/embed/GRonxog5mbw?autoplay= 1& loop = 1& playlist = GRonxog5mbwframeborder =0allowfullscreen>< / iframe> 

您可以在这里阅读:...(编辑链接已死亡。)...查看Internet Archive项目中的原始内容。


I am trying to get a basic Youtube video to auto play and auto loop embedded on a page, but I'm having no luck.

<div style="text-align: center; margin: auto"><object type="application/x-shockwave-flash" style="width:1120px; height:630px;" data="http://www.youtube.com/v/GRonxog5mbw?rel=0&amp;loop=1&amp;autoplay=1&amp;showsearch=0&amp;version=3&amp;showinfo=0&amp;modestbranding=1&amp;fs=1">
<param name="movie" value="http://www.youtube.com/v/GRonxog5mbw?rel=0&amp;loop=1&amp;autoplay=1&amp;showsearch=0&amp;version=3&amp;showinfo=0&amp;modestbranding=1&amp;fs=1" />
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" />
</object></div>
解决方案

YouTubes HTML5 embed code:

<iframe width="560" height="315" src="http://www.youtube.com/embed/GRonxog5mbw?autoplay=1&loop=1&playlist=GRonxog5mbw" frameborder="0" allowfullscreen></iframe>​

You can read about it here: ... (EDIT Link died.) ... View original content on Internet Archive project.

http://web.archive.org/web/20121016180134/http://brianwong.com/blog/2012-youtube-embed-code-autoplay-on-and-all-other-parameters/

这篇关于获取嵌入式YouTube视频以自动播放和循环播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 11:41