backgroundVideo icon indicating copy to clipboard operation
backgroundVideo copied to clipboard

Can images be used as well as videos?

Open HammyNZ opened this issue 10 years ago • 3 comments

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.

HammyNZ avatar Nov 02 '15 21:11 HammyNZ

I have been thinking about making it work with images as well - watch this space. When I do, I'll update this ticket

linnett avatar Nov 02 '15 23:11 linnett

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 ;)

pierretusseau avatar Dec 14 '16 05:12 pierretusseau

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

yaustar avatar Dec 14 '16 10:12 yaustar