테스트 사이트 - 개발 중인 베타 버전입니다

유튜브동영상이 자동플레이 되지 않아요. 채택완료

진강산가재 5년 전 조회 2,209

아까 어느 분이 답변주시길 autoplay=1를 해주면 자동플레이 된다고 했는데

아래 소스는 왜 자동플레이가 되지 않는걸까요?

--------

<html>
<body>
<iframe width="484" height="272" src="https://www.youtube.com/embed/V_U_GS48ms4?autoplay=1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</html>

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
스피드S
5년 전

잘안쓰던 기능이라 유투브 정책이 변경되었던걸 몰랐네요 &mute=1 를 추가해야 합니다.

즉 자동시작일경우 음소거를 꼭 해야하는걸로 변경

만약 소리가 나게 하고 싶으시면 플레이어를 써서 유투브를 불러와야 겠습니다.

 

</p>

<p><html>

<body>

<iframe width="484" height="272" src="<a href="https://www.youtube.com/embed/V_U_GS48ms4?autoplay=1&mute=1"" target="_blank" rel="noopener noreferrer">https://www.youtube.com/embed/V_U_GS48ms4?autoplay=1&mute=1"</a> frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

</html></p>

<p>

 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

진강산가재
5년 전
감사합니다.

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인