iframe 주소 뒤에 ?쓰고 뒤에 설정 붙이면 됨, 설정 여러개 할땐 &로 이어줌
- 자동재생: autoplay=1
- 음소거: amp;mute=1
- 관련재생 없애기: rel=0
- 컨트롤 없애기: controls=0
- 반복재생: &playlist=비디오ID&loop=1
ex)
src="https://www.youtube.com/embed/주소?autoplay=1&mute=1&rel=0&controls=0&playlist=비디오ID&loop=1&color=white&iv_load_policy=3"
https://developers.google.com/youtube/youtube_player_demo
YouTube 플레이어 데모 | YouTube IFrame Player API | Google Developers
YouTube 플레이어 데모 Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies
developers.google.com
728x90