GithubHelp home page GithubHelp logo

jovibizstack / bigvideo.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from johnpolacek/bigvideo.js

0.0 2.0 0.0 14.01 MB

The jQuery Plugin for Big Background Video (and Images)

CSS 12.24% JavaScript 87.76%

bigvideo.js's Introduction

BigVideo.js

The jQuery Plugin for Big Background Video (and Images)

Find out everything you need to know about how to use this plugin on its demo page at http://dfcb.github.com/BigVideo.js.

Installation

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

bower install BigVideo.js

This downloads and installs BigVideo 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:

Options

The following are defaults on initialization:

    var BV = new $.BigVideo({
        // If you want to use a single mp4 source, set as true
        useFlashForFirefox:true,
        // If you are doing a playlist, the video won't play the first time
        // on a touchscreen unless the play event is attached to a user click
        forceAutoplay:false,
        controls:false,
        doLoop:false,
        container:$('body'),
        shrinkable:false
    });

RequireJS

If RequireJS is detected, BigVideo.js defines itself as an anonymous module. Require it as:

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

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

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

This is to ensure that BigVideo 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 [email protected].


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.

bigvideo.js's People

Contributors

johnpolacek avatar apaleslimghost avatar julianxhokaxhiu avatar hubdotcom avatar auchenberg avatar leppert avatar kontur avatar kkirsche avatar rally-common avatar sidneys avatar vlatkoodrljin avatar abuzer avatar mlantz avatar nxtpl avatar

Watchers

Jovi Fintech avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.