FULL VIDEO BACKGROUND

delpadre's picture
delpadre
Wed, 02/17/2016 - 13:11
#1
FULL VIDEO BACKGROUND

How do you create a full screen video background similar to your demo http://demo.megadrupal.com/d7/md-avendor/onepage-dark I would like to have it loop. So far I have only been able to make the entire page a video background. Also what is the recomended video resolution to fit the best?

phuonght's picture
phuonght
Wed, 02/17/2016 - 21:43

Hi,

Please go to admin/structure/block/manage/block, take a look at a block named [MD] Avendor Video for example. It is background video that you can see from our demo. 

delpadre's picture
delpadre
Wed, 02/17/2016 - 23:05

That works but as you can see its not full screen http://z4tq2.hosts.cx/avendor/

delpadre's picture
delpadre
Wed, 02/17/2016 - 23:38

Also it stays in place and does move

phuonght's picture
phuonght
Wed, 02/17/2016 - 23:55

So please send us your admin account by private comment.

phuonght's picture
phuonght
Thu, 02/18/2016 - 03:12

Check page /avendor/user please. We changed some code in file special-block.js (sites\all\modules\custom\md_block_custom\special\block_view\js). 

delpadre's picture
delpadre
Thu, 02/18/2016 - 05:04

That works however only in Chrome IE or Safari just shows a big empty space. Any way to get it to work in those browsers? 

phuonght's picture
phuonght
Thu, 02/18/2016 - 05:17

Could you send us some screenshots?

delpadre's picture
delpadre
Thu, 02/18/2016 - 05:27

Image title

Attached is a screen shot from IE, it just stays on the backfround image, Safari works but takes a long time to load. The other problem is at mobile resolutions the bacground image is not show only a large empty area.

phuonght's picture
phuonght
Thu, 02/18/2016 - 05:56

Maybe your browser and network make it load in a long time. We check many times and it works, on IE (a bit slow) and mobile also. Please check again and if problem still exits, you could send us a screenshot of site on mobile. 

delpadre's picture
delpadre
Thu, 02/18/2016 - 13:33

Image title

Image title

Image title

delpadre's picture
delpadre
Thu, 02/18/2016 - 13:33

Also there is another problem that happens sometimes. When the page loads it shows the fallbacl image but it does not fill the whole screen even though its 1920x1080 see screenshot 

Image title

phuonght's picture
phuonght
Thu, 02/18/2016 - 22:26

Could you check site again? We fixed.

delpadre's picture
delpadre
Fri, 02/19/2016 - 10:18

It seems to work better thank you. I have another problem, 8 out 10 times I visit the site it gets stuck on the screen you can see in the attached screen shot

Image title

phuonght's picture
phuonght
Sun, 02/21/2016 - 21:54

Could you check your network a site settings if somthing makes site can not any js file leading to this problem? We tried many times but could not see as your attached screenshot.

delpadre's picture
delpadre
Thu, 04/07/2016 - 17:05

I have not been able to find anything wrong with the network and the problem happens across all browsers. Could you teake another look please? Could you tell me how to remove the slider on the main page under the video? Thanks http://cw9sw.hosts.cx/avendor

phuonght's picture
phuonght
Fri, 04/15/2016 - 04:45

Delpadre,

Please help us check if it works.

delpadre's picture
delpadre
Tue, 04/19/2016 - 14:03

The slider on the main page is gone thank you, however it still loads very slow. The host said that they downgraded the PHP version but iy did not seem to help much. 

phuonght's picture
phuonght
Fri, 04/22/2016 - 04:59

Sorry,

We think you need to check site again. Our developer tried many solutions, even use a new video type but it still can not work stably. Maybe there is any module or code makes your site slow and unstable.

We tried to work with other test sites too, all results are good but not your site. 

delpadre's picture
delpadre
Fri, 04/22/2016 - 15:32

Thanks for looking into it, I have a new problem. I changed the video to a new one and the top and botom are getting cut off however the YouTube video is not like that. You can see here http://nfbnx.hosts.cx/avendor/

phuonght's picture
phuonght
Mon, 04/25/2016 - 05:30

When using a fullscreen in site, because default ratio of video is 16:9 or 4:3 it can be cut off top or bottom to display menu. 

You can go to sites\all\modules\custom\md_block_custom\special\block_view\js, open file special-block.js replace

if(windowWidth>=320) {
$('.special-video').css({'height': $(window).height()-$(".header-wrapper").height()+'px'});
}

with

if(windowWidth>=320) {
$('.special-video').css({'height': $(window).height()+'px'});
}
delpadre's picture
delpadre
Thu, 05/05/2016 - 14:52

Thanks I got a new problem, the image does not sctrech across the screen for the videeo while its loading

Image title

phuonght's picture
phuonght
Fri, 05/06/2016 - 00:56

Please try to add following code at the end of file sites/all/themes/md_avendor/css/md_avendor.css:

#special-video img{
width:100%;
}

delpadre's picture
delpadre
Mon, 05/09/2016 - 15:34

Sorry I tried it and it does not work. 

phuonght's picture
phuonght
Tue, 05/10/2016 - 22:59

Check your site please. We fixed by with solution at my above comment (#25).

delpadre's picture
delpadre
Wed, 05/11/2016 - 14:20

Thank you, I think I had a wrong charactor in mine

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.