<iframe id="player" src="https://www.youtube.com/embed/ltdD3WybbKQ?enablejsapi=1&autoplay=1&controls=0&modestbranding=1&showinfo=0&rel=0&theme=light&iv_load_policy=3" frameborder="0" allowfullscreen="1" width="640" height="360"></iframe>
<script>
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
var player;
function onYouTubeIframeAPIReady(){player = new YT.Player('player',{events:{'onReady': onPlayerReady}});}
function onPlayerReady(event){event.target.setPlaybackQuality('hd1080');}
</script>

주소,가로,세로,화질(hd1080/hd720)을 수정해서 입력한다

'VIDEO > YOUTUBE' 카테고리의 다른 글

jwplayer+youtube  (0) 2015.06.24
유튜브 960*540  (0) 2015.06.24
youtube hd 설정(youtube api이용)  (0) 2015.06.24