有效解決這問題,除了loop=1
以外,要多加一個 playlist 參數playlist=VIDEO_ID
,這對我有效
<iframe src="https://www.youtube.com/embed/3rdVLMpJL2g?loop=1&playlist=3rdVLMpJL2g&controls=0&showinfo=0"></iframe>
參考資料:
https://developers.google.com/youtube/player_parameters#loop
https://stackoverflow.com/a/25781957/6784662