Youtube Background Video

You can now add Youtube Video as Background Sections similar to the HTML5 Video Sections.

Usage

<div class="section yt-bg-player nomargin dark" data-quality="hd1080" data-start="20" data-stop="40" data-video="http://youtu.be/A3PDXmYoF5U" style="height: 600px;">
	<div class="container clearfix">

		...

	</div>
</div>

Settings

SettingDescription
data-videoThe Youtube Video URL, Short URL available from the Youtube Share Panel or the Video ID.
Example: https://youtu.be/A3PDXmYoF5U
data-muteMutes the Audio on the Youtube Video
Example: true
data-ratioAspect Ratio of the Youtube Video
data-qualityQuality of the Youtube Video
Example: hd1080
data-opacityOpacity of the Youtube Video
Example: 0.5
data-containerCSS selector of the DOM element where you want the Youtube Video background, if not specified it takes the "self"
Example: body
data-optimizeSetting this Option will fit the Youtube Video size into the window size optimizing the view.
data-loopLoops the Youtube Video
data-volumeSets the Volume of the Youtube Video
Example: 60
data-startSet the seconds the video should start from.
Example: Setting data-start="20" will start the Video from 20 Seconds.
data-stopSet the seconds the video should stop at.
Example: Setting data-stop="40" will start the Video at 40 Seconds.
data-autoplayAutoPlays the Youtube Video
data-fullscreenActivate the new HTML5 full screen behavior.

Related docs