Last active
December 20, 2015 09:09
-
-
Save zvineyard/6106202 to your computer and use it in GitHub Desktop.
JS: NNU Embed YouTube Video
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var configYouTubePlayer = { | |
// The YouTube video ID that identifies the video that the player will load. | |
videoID: 'Rk6_hdRtJOE', | |
// The height of the video player. The default value is 390. | |
height: 390, | |
// The width of the video player. The default value is 640. | |
width: 640, | |
// Enable progress event tracking. | |
trackProgress: true, | |
// Enable video quality event tracking. | |
trackPlaybackQuality: true, | |
// YouTube Player API Reference | |
// @see https://developers.google.com/youtube/player_parameters?playerVersion=HTML5#Parameters | |
playerVars: { | |
'autohide': 1, | |
'autoplay': 1, | |
'rel': 0, | |
'theme': 'light' | |
} | |
}; | |
</script> | |
<div id="Rk6_hdRtJOE"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment