close
自動播放參數
&autoplay=1

重複播放的參數
&loop=1

影片的自動重複播放參數
&autoplay=1&loop=1

參考網站
https://developers.google.com/youtube/player_parameters#Parameters


原來的嵌入語法

<iframe width="420" height="315" src="https://www.youtube.com/embed/CxJzH6Ub3x4" frameborder="0" allowfullscreen></iframe>

將embed修改為v,並在影片ID後面加上&autoplay=1就可以自動播放

<iframe width="420" height="315" src="https://www.youtube.com/v/CxJzH6Ub3x4&autoplay=1" frameborder="0" allowfullscreen></iframe>





--
由 Blogger 於 6/10/2016 10:15:00 上午 張貼在 電腦學習園地
arrow
arrow
    全站熱搜

    alyoou 發表在 痞客邦 留言(0) 人氣()