유튜브 전체 보기가 안되서요. 채택완료
게시판에 아래 소스를 사용해서 유튜브 주소를 넣고있는데
전체보기를 클릭하면 사용할수 없습니다..라고 메세지가 나오네요
혹시 전체화면이 되게 할수 있을까요?
view.skin.php
</strong></p>
<p> <?php if($view['wr_link1']) { ?>
<iframe style="width:100%;height:480px;" frameborder="0" src="<a href="https://www.youtube.com/embed/<?php" target="_blank" rel="noopener noreferrer">https://www.youtube.com/embed/<?php</a> echo $youtube_key; ?>?autoplay=1&rel=0" class="video-frame stopWhenVideoModal"></iframe>
<?php } ?></p>
<p><strong>
style.css
</strong></p>
<p>.videoWrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
height: 0;
}
.videoWrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}</p>
<p><strong>
답변 2개
allowfullscreen 에 추가로
webkitallowfullscreen mozallowfullscreen
도 넣어보셨으면 합니다.
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
</p>
<p><iframe style="width:100%; height:480px" src="<a href="https://www.youtube.com/embed/" target="_blank" rel="noopener noreferrer">https://www.youtube.com/embed/</a><a href="<a href="https://www.youtube.com/embed/%3C?php" target="_blank" rel="noopener noreferrer">https://www.youtube.com/embed/%3C?php</a>"><?php</a> echo $youtube_key; ?>?rel=0&showinfo=0" frameborder="0" allowfullscreen class="video-frame stopWhenVideoModal"></iframe></p>
<p>
위 코드로 적용해보세요.
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
브라우저에서 전체화면을 지원하지 않습니다... 이런 안내 메세지가 나오네요