- Overview
- Documents
jQuery Background Video is a jQuery plugin that lets you create background videos using youtube api
sex shop sex shop sex shop sex shop sex shop seks shop spanish fly psikolog sohbet numara sohbet hatti
Source: github.com
Sep 18, 2014 in Others 4859 views
jQuery Background Video is a jQuery plugin that lets you create background videos using youtube api
Source: github.com
1. INCLUDE JS FILES
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script src="http://www.youtube.com/iframe_api"></script> <script src="src/jquery.youtubebackground.js"></script>
2. HTML
<div id="video"></div>
3. JAVASCRIPT
$('#video').YTPlayer({ fitToBackground: true, videoId: 'LSmgKRx5pBo' });
4. Youtube Javascript API Options
Access all of YouTube API of player: var player = $('#video').data('ytPlayer').getPlayer(); player.pauseVideo(); player.mute()
ratio: 16 / 9, // change as needed videoId: 'LSmgKRx5pBo' mute: true, repeat: true, fitToBackground: true
Tagged with:
youtube background
youtube api
fullscreen background
background videos
regular videos
background
youtube
Related Articles