function onYouTubeIframeAPIReady() {
player = new YT.Player('player', {
videoId: 'VIDEO_ID',
playerVars: {'controls': 0, 'showinfo': 0, 'rel': 0, 'autoplay': 1, 'loop': 1},
events: {
'onReady': onPlayerReady,
'onStateChange': onPlayerStateChange
}
});
}