Copy
<? if (!$is_mobile) { ?>
<video id="bg-movie1" class="bg-movie bg-movie1" src="<?=THEMA_URL?>/mp4/bg-movie1.mp4" autoplay loop preload data-keepplaying muted></video>
<? } else { ?>
<div class="img" style="background-image:url(<?=THEMA_URL?>/img/main1.jpg);"></div>
<? } ?>
muted 를 지워도 영상 소리가안나와요 ㅠㅠ
답변 3개 / 댓글 2개
채택된 답변
+20 포인트
2022-01-21 (금) 11:08:15
https://developer.chrome.com/blog/autoplay/
- Muted autoplay is always allowed.
- Autoplay with sound is allowed if:
- The user has interacted with the domain (click, tap, etc.).
- On desktop, the user's Media Engagement Index threshold has been crossed, meaning the user has previously played video with sound.
- The user has added the site to their home screen on mobile or installed the PWA on desktop.
- Top frames can delegate autoplay permission to their iframes to allow autoplay with sound.
참고하세요.
블랙캣77
2022-01-20 (목) 23:43:09
자동재생을 하면 뮤트되서 재생이 됩니다.
답변에 대한 댓글 1개
레전드플랫폼
2022-01-20 (목) 23:32:03
플레이버튼을 눌렀는데도 안나온다는건가요?
일단 비디오가 자동플레이는 안되는데..
답변에 대한 댓글 1개
답변을 작성하려면 로그인이 필요합니다.