Question

I'm using videobackground.js for setting background video, I want to specify the height width for the video,

My code is:

$('.vid').prepend('<div class="video-background"></div>');
$('.video-background').videobackground({
videoSource: [['video/2.webm', 'video/webm']],
loop : true
});

Html code is:

<div class="vid">

</div>

How to specify the height width for the video, if I specify height width full video not showing

No correct solution

OTHER TIPS

I assume you are using the following plugin: http://georgepaterson.github.io/jquery-videobackground/

.video-background appears to be the container for the full screen video, so if you state the height and width of .video-background in your CSS, this should work. I've tried this successfully in developer tools on Chrome.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top