backgroundVideo
backgroundVideo copied to clipboard
Can images be used as well as videos?
I have a scenario where there may be either an image or a video as the background. I've tried throwing in an image instead of a video to see what would happen but this doesn't seem to work with an image.
I'm wondering if the plugin could have this functionality added into scope or if I should try an alternative method for images? Ideally having the one plugin to manage both and treat with the same effect is ideal for my case.
I have been thinking about making it work with images as well - watch this space. When I do, I'll update this ticket
Also may I add to this idea that an image should/could be chosen as a "loader" as long as the video hasn't loaded, this image is show, then FadeOut to the video.
I received many complaints from people having a too heavy video to load (few minutes long back then) and I tricked some JS to have an image above of the video, and fadeout when the callout "videoLoad" triggered.
Just an idea, if you want me to create a new issue for it, just ask ;)
I had to do the same for a site I did for a client. I added support for the calling code to be notified when the video is ready to play in this PR: https://github.com/linnett/backgroundVideo/pull/22