Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
jQuery(function( $ ){
var BV = new $.BigVideo({container: $('.front-page-1'), useFlashForFirefox:false, doLoop: true});
BV.init();
BV.show([
{ type: "video/mp4", src: "path/to/vid/flatbed_background.mp4" },
{ type: "video/webm", src: "path/to/vid/flatbed_background.webm" },
{ type: "video/ogg", src: "path/to/vid/flatbed_background.ogv" }
]);
var BV = new $.BigVideo({container: $('.front-page-3'), useFlashForFirefox:false, doLoop: true});
BV.init();
BV.show([
{ type: "video/mp4", src: "path/to/vid/install_background.mp4" },
{ type: "video/webm", src: "path/to/vid/install_background.webm" },
{ type: "video/ogg", src: "path/to/vid/install_background.ogv" }
]);
// Fade in the video background after the video is fully loaded
BV.getPlayer().on('durationchange',function(){
$('#big-video-wrap').fadeIn();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.