Open SeonHyungJo opened 4 years ago
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <video src="비디오 주소.mp4" type="video/mp4" autoplay muted></video> </body> </html>
다른 모던 브라우저에서는 autoplay 속성만 주어도 자동 재생이 된다. 그러나 크롬에서는 그렇지 않다. autoplay만 있어도 되는 줄 알았는데 정책상 muted도 있어야 한단다...
autoplay
muted
다른 모던 브라우저에서는
autoplay
속성만 주어도 자동 재생이 된다. 그러나 크롬에서는 그렇지 않다.autoplay
만 있어도 되는 줄 알았는데 정책상muted
도 있어야 한단다...Reference