답변 3개
채택된 답변
+20 포인트
5년 전
영상주소 뒤에 ?autoplay=1&mute=1
와 같이 두개를 값을 전달해 주셔야 정상 작동됩니다.
자동재생시 음소거 필수로 유투브정책이 변경되었습니다
autoplay=1 자동재생
mute=1 음소거
<html>
<body>
<iframe width="560" height="315" src="<a href="https://www.youtube.com/embed/KjPzlC6QE0Y?autoplay=1&mute=1"" target="_blank" rel="noopener noreferrer">https://www.youtube.com/embed/KjPzlC6QE0Y?autoplay=1&mute=1"</a> frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></code></pre>
<p><code>
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인