Tuesday 4 June 2013

JQUERY VIDEO BG PLUGIN

HTML5 Powered with Multimedia

ABOUT

This jQuery plugin enables you to very easily use an HTML5 video as a background to a website or any div.
For browsers that don't support the HTML5 video tag, it just uses an image.

BROWSER SUPPORT

VideoImage
Firefox 4 (the best experience)Yes (webm)Yes
Internet Explorer 9Yes (mp4)Yes
Firefox 3.5Yes (ogv)Yes
ChromeYes (webm/mp4)Yes
SafariYes (mp4)Yes
Opera 10.5+Yes (ogv)Yes
Internet Explorer 8NoYes
Internet Explorer 7NoYes
Android BrowserNoYes
Mobile SafariDoes not modify default behaviour
Older Browsers that support position:fixedNoYes
Archaic browsersDoes not modify default behaviour

DOCUMENTATION

$(el).videoBG(options);

OPTIONS

mp4
required. this is the src for the video
ogv
required. this is the src for the video
webm
required. this is the src for the video
poster
required. this is the src for the img
autoplay
bool
loop
intnumber of times to loop, true if infinite
sclae
bool
position
the css position of the video
opacity
int 0 - 1
textReplacement
bool - used if you are replacing text
zIndex
optional
width
required if textReplacement.
height
required if textReplacement.

No comments:

Post a Comment