<style>
.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
</style>
<script async src="https://www.youtube.com/iframe_api"></script>
<script>
// Callback is executed by YouTube iFrame API once ready to play
function onYouTubeIframeAPIReady() {
// FUNCTION SPEC: onYouTubeIframeAPIReady_V2(theVideoId, elementName, shouldAutoplay, shouldMute);
//onYouTubeIframeAPIReady_V2('VRfm6RGVHf8', 'playerContainer1', 1, 0); // MAIN WINDOW - AUTOPLAY
//onYouTubeIframeAPIReady_V2('VRfm6RGVHf8aTpn9awp4nA', 'playerContainer1', 0, 1); // MAIN WINDOW - NO AUTOPLAY
//onYouTubeIframeAPIReady_V2('-zzu7hI0ESM', 'playerContainer2', 0, 1); // Prior launch attempt 1 -- 11 June
//onYouTubeIframeAPIReady_V2('z3Yp1HQicpo', 'playerContainer3', 0, 1); // Dec 12 Launch attempt
}
</script>
<script>
function onYouTubeIframeAPIReady_V2(theVideoId, elementName, shouldAutoplay, shouldMute) {
var player;
player = new YT.Player(elementName, {
videoId: theVideoId, // YouTube Video ID
playerVars: {
autoplay: shouldAutoplay, // Auto-play the video on load
controls: 1, // Show pause/play buttons in player
showinfo: 1, // Hide the video title
modestbranding: 1, // Hide the Youtube Logo
loop: 0, // 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 // Hide related videos
},
events: {
onReady: function(e) {
if (shouldMute)
e.target.mute();
}
}
});
}
// Function originally written by @labnol
</script> |