기타/컴퓨터
유튜브 음악이나 영화 자동재생 시키는 방법
wooki.
2019. 11. 4. 23:44
공유하고자 하는 유튜브에서
유튜브 -> 공유 -> 퍼가기
하면 다음과 같은 html 소스가 나오는데...
<iframe width="560" height="315" src="https://www.youtube.com/embed/kZYCBCVL324"
frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
여기서 동영상의 주소 끝부분에 ?amp;autoplay=1 추가하면 끝
<iframe width="560" height="315" src="https://www.youtube.com/embed/kZYCBCVL324?amp;autoplay=1"
물론 글쓰기 할때 글쓰기 편집기를 HTML로 설정해야됨