Skip to content

Instantly share code, notes, and snippets.

@zvineyard
Last active December 20, 2015 09:09
Show Gist options
  • Save zvineyard/6106202 to your computer and use it in GitHub Desktop.
Save zvineyard/6106202 to your computer and use it in GitHub Desktop.
JS: NNU Embed YouTube Video
<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