_V_.options.techOrder = ['flash', 'html5'];
_V_('video_id').src('동영상URL')
을 사용하면 된다.AddType video/ogg .ogv AddType video/mp4 .mp4 AddType video/webm .webm
<video class="video-js" width="640" height="264" controls preload poster="http://video-js.zencoder.com/oceans-clip.png"> <source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' /> <source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm; codecs="vp8, vorbis"' /> <source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg; codecs="theora, vorbis"' /> <!-- Flash Fallback. Use any flash video player here. Make sure to keep the vjs-flash-fallback class. --> <object class="vjs-flash-fallback" width="640" height="264" type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf"> <param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" /> <param name="allowfullscreen" value="true" /> <param name="flashvars" value='config={"playlist":["http://video-js.zencoder.com/oceans-clip.png", {"url": "http://video-js.zencoder.com/oceans-clip.mp4","autoPlay":false,"autoBuffering":true}]}' /> <!-- Image Fallback. Typically the same as the poster image. --> <img src="http://video-js.zencoder.com/oceans-clip.png" width="640" height="264" alt="Poster Image" title="No video playback capabilities." /> </object> </video>
delete _V_.players['기존id'];
로 삭제한 뒤에 다시 생성한다.
_V_("VIDEO_TAG_ID").ready(function(){ this.addEvent("ended", function(){ this.posterImage.show(); this.posterImage.fadeIn(); }); });`
// 명시적으로 video.controlBar.fadeOut() 처리를 하면된다. setTimeout(function () { _V_("VIDEO_TAG_ID").controlBar.fadeOut(); // 혹은 hide()도 가능. }, 2000);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#efefef', endColorstr='#f1f1f1',GradientType=0 ); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#454545', endColorstr='#3f3f3f',GradientType=0 );
.video-js.vjs-fullscreen { z-index: 40000; }