Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

HTML Background Video

kiwis

Coder
I'm not sure how popular these forums are but I'm hoping someone can help me.

I'm trying to play a video as my ground image, the video is 45 seconds long and set to loop. It's 100vh and 100vw with an opacity dialed down on it.

My question is two things.

1) How can I pause or delay the video playing until downloaded?
2) My video has been cached and only plays the first 15 seconds currently then loops - how can I avoid this
3) Is there a way to load my page THEN download the video after so it doesn't effect the seo scoring of my page
 
1. code a video stop and only allow playing on click after download, you can have an onclick return false to not do its normal thing.
2. Use a <video></video> element and if that does not work, it is a browser issue and you may be able to file a bug, unless you make changes to playing currently.
3. in Jquery $.ready, or onload or load document.addEventListener("DOMContentLoaded", function...), and in a function like that, download video.
Maybe this helps. X E.
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom