Is it possible to set up video in flv file as a background? I want to have website with video 100% wide and 100vh of height as a background for the whole content, something similar to this: http://demosthenes.info/samples/polina.html
2 Answers
Is it possible to set up video in flv file as a background?
Yes but you have to use Flash-Player plugin. You will also need to code in AS3 using Flash CC to make a program that loads the video file data. The program is saved as an SWF file (is the compiled program code). This SWF is then embedded into the HTML and you then use CSS layers (z-index) to position as background index.
Now about your FLV file... You are limiting yourself if you keep it in this format only. You should also convert it to MP4 and WebM formats. If you do this, you can have a video background built like the example you showed. Using a built-in browser decoder without the need for a Flash Player plugin (right click on the video and you'll see its not Flash Player related). This is most important for mobile web viewers where most browser apps cannot display Flash content (but only Flash can handle FLV on the web).
In your example link, they used a WebM file but you can do the same with MP4 filename instead. After converting you can even test using the example link's source code.
Try these links:
You can use flv, but it's best to use three different formats when using video's on a website. Because not every browser supports the same files it't necessary to convert your file to these: .ogg, .mp4, .flv and .swf.
More detailed information here: http://code.tutsplus.com/tutorials/quick-tip-html5-video-with-a-fallback-to-flash--net-9982