<div id="muteYouTubeVideoPlayer"></div>
<script async src="https://www.youtube.com/iframe_api"></script>
<script>
function onYouTubeIframeAPIReady() {
	var player;
	player = new YT.Player('muteYouTubeVideoPlayer', {
		videoId: 'AeNGurXEtdo', // YouTube Video ID
		width: 1350, // Player width (in px)
		height: 500, // Player height (in px)
		playerVars: {
			autoplay: 0, // Auto-play the video on load
			controls: 1, // Show pause/play buttons in player
			showinfo: 0, // Hide the video title
			modestbranding: 0, // Hide the Youtube Logo
			loop: 1, // Run the video in a loop
			fs: 0, // Hide the full screen button
			cc_load_policy: 0, // Hide closed captions
			iv_load_policy: 3, // Hide the Video Annotations
			autohide: 0, // Hide video controls when playing
			rel: 0 
		},
		events: {
			onReady: function(e) {
				e.target.setVolume(5);
			}
		}
	});
}
</script>

'PROGRAM > JAVASCRIPT' 카테고리의 다른 글

첨부사진뷰어  (0) 2018.04.25
CAPSLOCK check  (0) 2018.04.24
jQuery 없이 사용  (0) 2016.09.20
ie11 background fixed bug  (0) 2016.03.02
PUSH 배열 끝에 삽입  (0) 2015.07.21