chechu
08-17-2019, 03:27 PM
No idea why, but since recent this script doesn't seem to work anymore. It shows the first frame of the video, but doesn't play.
This is the js:
//background video settings
if (matchMedia('(min-width: 640px)').matches) {
var videobackground = new $.backgroundVideo($('body'), {
"align": "centerXY",
"autoplay": 1,
"controls": 0,
"autohide": 1,
"loop": 1,
"muted": true,
"volume": 0,
"width": 1280,
"height": 720,
"path": "portfolio/videos/",
"filename": "namefile",
"types": ["mp4"]
});
}
else
{
$('body').addClass('no-video');
}
and here: jQuery Background video plugin for jQuery (https://brunomazereel.com/js/backgroundvideo.js)
You can see it "work" on top of this page: https://brunomazereel.com/
Could anyone help me out, please?
Thanks.
This is the js:
//background video settings
if (matchMedia('(min-width: 640px)').matches) {
var videobackground = new $.backgroundVideo($('body'), {
"align": "centerXY",
"autoplay": 1,
"controls": 0,
"autohide": 1,
"loop": 1,
"muted": true,
"volume": 0,
"width": 1280,
"height": 720,
"path": "portfolio/videos/",
"filename": "namefile",
"types": ["mp4"]
});
}
else
{
$('body').addClass('no-video');
}
and here: jQuery Background video plugin for jQuery (https://brunomazereel.com/js/backgroundvideo.js)
You can see it "work" on top of this page: https://brunomazereel.com/
Could anyone help me out, please?
Thanks.