Skip to content

khalwat/bigvideo-lite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bigvideo-lite

The jQuery Plugin for Big Background Video (and Images) sans jquery-ui

This is a fork of the BigVideo.js project from John Polacek @johnpolacek, which removes the player controls entirely. BigVideoList is for background video/images only, with no user interaction. It's really just a stripped down version of BigVideo.js.

This also allows use to remove the dependency on the rather bulky jquery-ui plugin, when all you need is video/images playing in the background.

Installation

If you're using Bower (and you should be!) installing bigvideo-lite and its dependencies is simply:

bower install bigvideo-lite

This downloads and installs bigvideo-lite to the bower_components folder. Add to your page the usual way with script tags, or using RequireJS.

If you'd rather download things manually, you can grab the latest zip from that lovely button on the right (or this link). You will also need the dependencies:

RequireJS

If RequireJS is detected, bigvideo-lite defines itself as an anonymous module. Require it as:

require(['path/to/bigvideo-lite'], function(bigvideo) {
	// do stuff here
});

Make sure your require config is set up correctly; an example configuration is as follows:

require.config({
	paths: {
		"bigvideo-lite": "bower_components/bigvideo-lite/lib/bigvideo-lite",
		"jquery": "bower_components/jquery/jquery",
		"videojs": "bower_components/video.js/video",
		"imagesloaded": "bower_components/imagesloaded/imagesloaded",
	},
	shim: {
		"videojs": {exports: 'videojs'}
	}
});

This is to ensure that bigvideo-lite and all its dependencies get the right paths, and that RequireJS knows how to reference Video.js.


Created by John Polacek

Follow @johnpolacek on Twitter

Thanks to Matt Brennan for Bower integration


Draftfcb Chicago

We are the development group at Draftfcb Chicago. If you want to work on big digital ideas for big brands, get in touch with us at devrecruiting@draftfcb.com.


The MIT License (MIT) Copyright © 2012 John Polacek

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

The jQuery Plugin for Big Background Video (and Images) sans jquery-ui

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 87.6%
  • CSS 12.4%