Support › Forums › White – HTML Template › "video" page problem › Reply To: "video" page problem
November 23, 2015 at 2:17 pm
#4952
Keymaster
OK. You have to edit the file video.js in the folder js. Remove all the code and paste the next:
"use strict";
//set your video options
var source = 'vids/video.mp4',
sound = true,
image_replacement = true;
//start the video functios.
if (image_replacement == true){
//If you want the option with image replacement
if( !device.tablet() && !device.mobile() ) {
(function($) {
var BV = new $.BigVideo();
BV.init();
if (sound == true){
BV.show(source,{doLoop:true});
} else {
BV.show(source,{ambient:true,doLoop:true});
}
})(jQuery);
} else {
$('#bgimg').addClass('poster-image');
}
} else{
//If you don't want the option with image replacement
(function($) {
// initialize BigVideo
var BV = new $.BigVideo();
BV.init();
if (sound == true){
BV.show(source,{doLoop:true});
} else {
BV.show(source,{ambient:true,doLoop:true});
}
})(jQuery);
}
Regards