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

5년 전 조회 2,245

아까 어느 분이 답변주시길 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 포인트

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

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

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

 

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

 

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

답변에 대한 댓글 1개

감사합니다.

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

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

로그인
🐛 버그신고