The gallery works in all major browsers environment – including IE through flash fall-back. Also, by inputting a single video in the video gallery, it becomes a video player.
This gallery uses the latest html5 tehniques. For example – it uses HTML5 LocalStorage to remember the last volume you had before you exit and sets back that volume when you come back. The skin is setup via simple CSS – so it’s fully skin-able with basic CSS
UPDATE 9.36 [ 10/10/2016 ]
UPDATE 7.50 [ 04/08/2014 ]
UPDATE 7.44 [ 03/26/2014 ]
UPDATE 6.78 [ 10/14/2013 ]
UPDATE 6.10 [ 10/02/2013 ]
UPDATE 2.0 [ 07/09/2011 ]
<div class="vplayer-tobe" data-videoTitle='Vimeo video' data-type="vimeo" data-src="31539657"><div class="menuDescription"><img src="http://dummyimage.com/50x50/000000/fff&text=thumb" class="imgblock"/><div class="the-title">This is an Vimeo video</div>The thumbnail can autogenerate...</div></div>Change the data-src value with the id of your vimeo video
You need your movie converted to 2 formats in order to make sure the html5 video plays in all browsers
IE9, IE8 ( Flash ) & Safari : M4V -> http://handbrake.fr/
Chrome & Opera & Firefox : OGG-> http://video.online-convert.com/convert-to-ogg
Video DOM structure
<div class="vplayer" data-description="My Video" data-img="img/1.jpg"> <video controls preload> <source src="video/myvideo.m4v"/> <source src="video/myvideo.ogg"/> <object type="application/x-shockwave-flash" data="preview.swf" width="550" height="300" id="flashcontent" style="visibility: visible;"> <param name="movie" value="preview.swf"><param name="menu" value="false"><param name="allowScriptAccess" value="always"> <param name="scale" value="noscale"><param name="allowFullScreen" value="true"><param name="wmode" value="opaque"> <param name="flashvars" value="video=video/myvideo.m4v"> </object> </video> </div>
Best way to learn that if you are not consistent with html is by example. Open source/index.html and around line 122 you will see:
[ .. ]
<div class=”vplayer” data-description=”<img src=’img/thumb.png’ class=’imgblock’/>Video 5” data-img=”img/1.jpg”>
<video controls preload>
<source src=”video/test.mp4” type=’video/mp4; codecs=”avc1.42E01E, mp4a.40.2”’/>
<source src=”video/test.webm” type=’video/webm; codecs=”vp8, vorbis”’/>
<source src=”video/test.ogg” type=’video/ogg; codecs=”theora, vorbis”’/>
<source src=”video/bubbles.m4v”/>
<object width=”500” height=”300”>
<param name=”movie” value=”preview.swf?video=video/advideo.flv”></param>
<param name=”allowFullScreen” value=”true”></param>
<param name=”allowscriptaccess” value=”always”></param>
<param name=”wmode” value=”opaque”></param>
<embed src=”preview.swf?video=video/advideo.flv” type=”application/x-shockwave-flash” width=”500” height=”300” allowscriptaccess=”always” allowfullscreen=”true” wmode=”opaque”>
</embed>
</object>
</video>
</div>
</div><!>END VIDEO GALLERY
[ .. ]
<div class=”vplayer” data-description=”<img src=’img/thumb.png’ class=’imgblock’/>Video 5” data-img=”img/1.jpg”>
<video controls preload>
<source src=”video/test.mp4” type=’video/mp4; codecs=”avc1.42E01E, mp4a.40.2”’/>
<source src=”video/test.webm” type=’video/webm; codecs=”vp8, vorbis”’/>
<source src=”video/test.ogg” type=’video/ogg; codecs=”theora, vorbis”’/>
<source src=”video/bubbles.m4v”/>
<object width=”500” height=”300”>
<param name=”movie” value=”preview.swf?video=video/advideo.flv”></param>
<param name=”allowFullScreen” value=”true”></param>
<param name=”allowscriptaccess” value=”always”></param>
<param name=”wmode” value=”opaque”></param>
<embed src=”preview.swf?video=video/advideo.flv” type=”application/x-shockwave-flash” width=”500” height=”300” allowscriptaccess=”always” allowfullscreen=”true” wmode=”opaque”>
</embed>
</object>
</video>
</div>
<div class=”vplayer” data-description=”<img src=’img/thumb.png’ class=’imgblock’/>Video 6” data-img=”img/1.jpg”>
<video controls preload>
<source src=”video/test.mp4” type=’video/mp4; codecs=”avc1.42E01E, mp4a.40.2”’/>
<source src=”video/test.webm” type=’video/webm; codecs=”vp8, vorbis”’/>
<source src=”video/test.ogg” type=’video/ogg; codecs=”theora, vorbis”’/>
<source src=”video/bubbles.m4v”/>
<object width=”500” height=”300”>
<param name=”movie” value=”preview.swf?video=video/advideo.flv”></param>
<param name=”allowFullScreen” value=”true”></param>
<param name=”allowscriptaccess” value=”always”></param>
<param name=”wmode” value=”opaque”></param>
<embed src=”preview.swf?video=video/advideo.flv” type=”application/x-shockwave-flash” width=”500” height=”300” allowscriptaccess=”always” allowfullscreen=”true” wmode=”opaque”>
</embed>
</object>
</video>
</div>
</div><!>END VIDEO GALLERY