標題:
xuite、youtube播放器自动循环播放的代码
[打印本頁]
作者:
rainbow
時間:
2015-4-2 21:26
標題:
xuite、youtube播放器自动循环播放的代码
Xuite音樂播放器外鏈代碼:
<iframe marginwidth='0' marginheight='0' src='http://vlog.xuite.net/embed/NGpBUGpVLTExNDc3NDg5LmZsdg==?
ar=0
&
as=0
' width='180' height='60' scrolling='no' frameborder='0'></iframe>
ar
( auto repeat ) : 0 為預設播放方式,1 為自動重覆播放
as
( auto start ) : 0 為不自動播放,1 為自動播放
[
本帖最後由 rainbow 於 2015-4-3 09:19 編輯
]
作者:
rainbow
時間:
2015-4-3 09:19
目前youtube 给出的嵌入代码:
<iframe width="560" height="315" src="https://www.youtube.com/embed/keWDEVhM0DM" frameborder="0" allowfullscreen></iframe>
只要在网址後面加上以下代码:
?list=PLkSkWhxpK5KAksdyl188jUazPAR9AYqLC&autoplay=1&loop=1
变成:
<iframe width="560" height="315" src="https://www.youtube.com/embed/keWDEVhM0DM
?list=PLkSkWhxpK5KAksdyl188jUazPAR9AYqLC&autoplay=1&loop=1
" frameborder="0" allowfullscreen></iframe>
就可以自动循环播放了。
歡迎光臨 華中天地論壇 (http://huachung.freebbs.tw/)
Powered by Discuz! 5.0.0