Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JWPlayer for Fullscreen Background Video

I'm looking to use jwPlayer for fullscreen background video that simply plays in a loop as the background of the site.

I'm testing this here, with moderate success in Chrome on Mac OSX (please excuse the size of the video file) - dextersgospel.com/full-screen-video.html

On page load, I grab the width and height of the browser window and set the values as the width and height parameters in jwPlayer setup. Awesome.

Now what I would like to add is functionality that resizes the video if the browser window is resized. I've looked into the onResize() and onFullScreen() events, but can't figure out how to implement those to make this work (or tell if those are even the solution). I've also looked into the jQuery resize() function, to no avail.

I would also like to prevent the video from being paused when clicked.

If anyone could provide some tips on how to use jwPlayer for fullscreen background video, it would be much appreciated!

like image 696
nickff Avatar asked Feb 15 '12 19:02

nickff


1 Answers

you can use http://dfcb.github.io/BigVideo.js/ . This does it quite well. Also you can refer to discussion here on How to use JWPlayer to play videos in the background of a web page

Hope it helps :)

like image 138
Hitesh Avatar answered Sep 19 '22 13:09

Hitesh