티스토리 뷰

공유하고자 하는 유튜브에서


유튜브  ->  공유  ->  퍼가기


하면 다음과 같은 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"


 frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>



물론 글쓰기 할때 글쓰기 편집기를 HTML로 설정해야됨




댓글
최근에 올라온 글
최근에 달린 댓글