YOUTUBE影片IFRAME嵌入網頁設定自動播放(AUTOPLAY),重複播放(LOOP),靜音(MUTE),播放清單(PLAYLIST)

YOUTUBE影片IFRAME嵌入網頁設定自動播放(AUTOPLAY),重複播放(LOOP),靜音(MUTE),播放清單(PLAYLIST)

YOUTUBE影片IFRAME嵌入網頁設定自動播放(AUTOPLAY),重複播放(LOOP),靜音(MUTE),播放清單(PLAYLIST)


Autoplay 自動播放 [autoplay=1]

 <iframe width="640" height="360" src="[YouTube Video URL]?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>

Loop 重覆 [loop=1&playlist=影片ID]

 <iframe width="640" height="360" src="[YouTube Video URL]?rel=0&loop=1&playlist=影片ID" frameborder="0" allowfullscreen></iframe>

Mute 靜音[volumn=”0″]

 <iframe width="640" height="360" src="[YouTube Video URL]?rel=0&loop=1&playlist=影片ID" frameborder="0" allowfullscreen volumn="0"></iframe>

Playlist 播放清單[loop=1&playlist=影片ID1,影片ID2  Autoplay + Loop]

 <iframe width="640" height="360" src="[YouTube Video URL]?rel=0&autoplay=1&loop=100&playlist=影片ID" frameborder="0" allowfullscreen></iframe>


EX: 自動影片清單輪播100次

<iframe width="560" height="315" src="https://www.youtube.com/embed/HkmS6yuJCbI?rel=0&autoplay=1&loop=1&playlist=2b_zKLLM3WI,-EOoCB3bGUY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="">

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *