ie浏览器不支持html5标签,这个我们都知道,更别说支持video标签的各种属性了,那么有办法兼容吗?

答案是肯定的!下面用js进行兼容:

开头js引入:

!--[if lte IE 8]>
<script src="http://api.html5media.info/1.1.6/html5media.min.js"></script>
<![endif]-->

引入之后就可以兼容了,ie也能使用video标签~

以下是这段js的源码:


(function(){function k(a){if(!a||typeof a!="object")return a;var b=new a.constructor,e;for(e in a)a.hasOwnProperty(e)&&(b[e]=k(a[e]));return b}function j(a,b){if(a){var e,d=0,c=a.length;if(c===void 0)for(e in a){if(b.call(a[e],e,a[e])===!1)break}else for(e=a[0];d<c&&b.call(e,d,e)!==!1;e=a[++d]);return a}}function n(a,b,e){if(typeof b!="object")return a;a&&b&&j(b,function(d,b){if(!e||typeof b!="function")a[d]=b});return a}function r(a){var b=a.indexOf(".");if(b!=-1){var e=a.slice(0,b)||"*",d=a.slice(b+
1,a.length),c=[];j(document.getElementsByTagName(e),function(){this.className&&this.className.indexOf(d)!=-1&&c.push(this)});return c}}function i(a){a=a||window.event;a.preventDefault?(a.stopPropagation(),a.preventDefault()):(a.returnValue=!1,a.cancelBubble=!0);return!1}function o(a,b,e){a[b]=a[b]||[];a[b].push(e)}function t(){return"_"+(""+Math.random()).slice(2,10)}function m(a,p,e){var d=this,h=null,m=!1,l,v,f=[],q={},s={},u,y,x,z,A,r;n(d,{id:function(){return u},isLoaded:function(){return h!==
null&&h.fp_play!==void 0&&!m},getParent:function(){return a},hide:function(b){if(b)a.style.height="0px";if(d.isLoaded())h.style.height="0px";return d},show:function(){a.style.height=r+"px";if(d.isLoaded())h.style.height=A+"px";return d},isHidden:function(){return d.isLoaded()&&parseInt(h.style.height,10)===0},load:function(b){if(!d.isLoaded()&&d._fireEvent("onBeforeLoad")!==!1){var f=0;j(c,function(){this.unload(function(){if(++f==c.length){if((l=a.innerHTML)&&!flashembed.isSupported(p.version))a.innerHTML=
"";if(b)b.cached=!0,o(s,"onLoad",b);flashembed(a,p,{config:e})}})})}return d},unload:function(b){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent))return b&&b(!1),d;if(l.replace(/\s/g,"")!==""){if(d._fireEvent("onBeforeUnload")===!1)return b&&b(!1),d;m=!0;try{h&&(h.fp_close(),d._fireEvent("onUnload"))}catch(f){}setTimeout(function(){h=null;a.innerHTML=l;m=!1;b&&b(!0)},50)}else b&&b(!1);return d},getClip:function(a){a===void 0&&(a=z);return f[a]},getCommonClip:function(){return v},getPlaylist:function(){return f},
getPlugin:function(a){var f=q[a];if(!f&&d.isLoaded()){var e=d._api().fp_getPlugin(a);e&&(f=new b(a,e,d),q[a]=f)}return f},getScreen:function(){return d.getPlugin("screen")},getControls:function(){return d.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return d.getPlugin("logo")._fireEvent("onUpdate")}catch(a){}},getPlay:function(){return d.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(a){return a?k(e):e},getFlashParams:function(){return p},loadPlugin:function(a,
f,e,c){typeof e=="function"&&(c=e,e={});var p=c?t():"_";d._api().fp_loadPlugin(a,f,e,p);f={};f[p]=c;c=new b(a,null,d,f);return q[a]=c},getState:function(){return d.isLoaded()?h.fp_getState():-1},play:function(a,b){var f=function(){a!==void 0?d._api().fp_play(a,b):d._api().fp_play()};d.isLoaded()?f():m?setTimeout(function(){d.play(a,b)},50):d.load(function(){f()});return d},getVersion:function(){if(d.isLoaded()){var a=h.fp_getVersion();a.push("flowplayer.js 3.2.6");return a}return"flowplayer.js 3.2.6"},
_api:function(){if(!d.isLoaded())throw"Flowplayer "+d.id()+" not loaded when calling an API method";return h},setClip:function(a){d.setPlaylist([a]);return d},getIndex:function(){return x},_swfHeight:function(){return h.clientHeight}});j("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut".split(","),function(){var a="on"+this;if(a.indexOf("*")!=-1){var a=a.slice(0,a.length-1),b="onBefore"+a.slice(2);d[b]=function(a){o(s,
b,a);return d}}d[a]=function(b){o(s,a,b);return d}});j("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled".split(","),function(){var a=this;d[a]=function(b,f){if(!d.isLoaded())return d;var e=null,e=b!==void 0&&f!==void 0?h["fp_"+a](b,f):b===void 0?h["fp_"+a]():h["fp_"+a](b);return e==="undefined"||
e===void 0?d:e}});d._fireEvent=function(a){typeof a=="string"&&(a=[a]);var b=a[0],c=a[1],p=a[2],u=a[3],i=0;e.debug&&console.log("$f.fireEvent",[].slice.call(a));!d.isLoaded()&&b=="onLoad"&&c=="player"&&(h=h||document.getElementById(y),A=d._swfHeight(),j(f,function(){this._fireEvent("onLoad")}),j(q,function(a,b){b._fireEvent("onUpdate")}),v._fireEvent("onLoad"));if(!(b=="onLoad"&&c!="player")){if(b=="onError"&&(typeof c=="string"||typeof c=="number"&&typeof p=="number"))c=p,p=u;if(b=="onContextMenu")j(e.contextMenu[c],
function(a,b){b.call(d)});else if(b=="onPluginEvent"||b=="onBeforePluginEvent"){if(u=q[c.name||c])return u._fireEvent("onUpdate",c),u._fireEvent(p,a.slice(3))}else{if(b=="onPlaylistReplace"){f=[];var m=0;j(c,function(){f.push(new g(this,m++,d))})}if(b=="onClipAdd"){if(c.isInStream)return;c=new g(c,p,d);f.splice(p,0,c);for(i=p+1;i<f.length;i++)f[i].index++}var l=!0;if(typeof c=="number"&&c<f.length&&(z=c,(a=f[c])&&(l=a._fireEvent(b,p,u)),!a||l!==!1))l=v._fireEvent(b,p,u,a);j(s[b],function(){l=this.call(d,
c,p);this.cached&&s[b].splice(i,1);if(l===!1)return!1;i++});return l}}};if(typeof a=="string"){var w=document.getElementById(a);if(!w)throw"Flowplayer cannot access element: "+a;a=w}(function(){function h(a){var b=d.hasiPadSupport&&d.hasiPadSupport();if(/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(f[0].url)&&!b)return!0;!d.isLoaded()&&d._fireEvent("onBeforeClick")!==!1&&d.load();return i(a)}$f(a)?($f(a).getParent().innerHTML="",x=$f(a).getIndex(),c[x]=d):(c.push(d),x=c.length-1);
r=parseInt(a.style.height,10)||a.clientHeight;u=a.id||"fp"+t();y=p.id||u+"_api";p.id=y;e.playerId=u;typeof e=="string"&&(e={clip:{url:e}});if(typeof e.clip=="string")e.clip={url:e.clip};e.clip=e.clip||{};if(a.getAttribute("href",2)&&!e.clip.url)e.clip.url=a.getAttribute("href",2);v=new g(e.clip,-1,d);e.playlist=e.playlist||[e.clip];var m=0;j(e.playlist,function(){var a=this;typeof a=="object"&&a.length&&(a={url:""+a});j(e.clip,function(b,f){f!==void 0&&a[b]===void 0&&typeof f!="function"&&(a[b]=f)});
e.playlist[m]=a;a=new g(a,m,d);f.push(a);m++});j(e,function(a,b){if(typeof b=="function"){if(v[a])v[a](b);else o(s,a,b);delete e[a]}});j(e.plugins,function(a,f){f&&(q[a]=new b(a,f,d))});if(!e.plugins||e.plugins.controls===void 0)q.controls=new b("controls",null,d);q.canvas=new b("canvas",null,d);l=a.innerHTML;setTimeout(function(){l.replace(/\s/g,"")!==""?a.addEventListener?a.addEventListener("click",h,!1):a.attachEvent&&a.attachEvent("onclick",h):(a.addEventListener&&a.addEventListener("click",i,
!1),d.load())},0)})()}function l(a){this.length=a.length;this.each=function(b){j(a,b)};this.size=function(){return a.length}}var g=function(a,b,e){var c=this,h={},i={};c.index=b;typeof a=="string"&&(a={url:a});n(this,a,!0);j("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop".split(","),function(){var a="on"+this;if(a.indexOf("*")!=-1){var a=a.slice(0,a.length-1),f="onBefore"+a.slice(2);c[f]=function(a){o(i,f,a);return c}}c[a]=function(b){o(i,a,b);
return c};b==-1&&(c[f]&&(e[f]=c[f]),c[a]&&(e[a]=c[a]))});n(this,{onCuepoint:function(a,f){if(arguments.length==1)return h.embedded=[null,a],c;typeof a=="number"&&(a=[a]);var q=t();h[q]=[a,f];e.isLoaded()&&e._api().fp_addCuepoints(a,b,q);return c},update:function(a){n(c,a);e.isLoaded()&&e._api().fp_updateClip(a,b);var f=e.getConfig();n(b==-1?f.clip:f.playlist[b],a,!0)},_fireEvent:function(a,f,q,s){if(a=="onLoad")return j(h,function(a,f){f[0]&&e._api().fp_addCuepoints(f[0],b,a)}),!1;s=s||c;if(a=="onCuepoint"){var u=
h[f];if(u)return u[1].call(e,s,q)}if(f&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(a)!=-1&&(n(s,f),f.metaData))s.duration?s.fullDuration=f.metaData.duration:s.duration=f.metaData.duration;var g=!0;j(i[a],function(){g=this.call(e,s,f,q)});return g}});if(a.onCuepoint){var g=a.onCuepoint;c.onCuepoint.apply(c,typeof g=="function"?[g]:g);delete a.onCuepoint}j(a,function(b,f){typeof f=="function"&&(o(i,b,f),delete a[b])});if(b==-1)e.onCuepoint=this.onCuepoint},b=function(a,b,c,d){var h=
this,g={},i=!1;d&&n(g,d);j(b,function(a,c){typeof c=="function"&&(g[a]=c,delete b[a])});n(this,{animate:function(d,f,q){if(!d)return h;typeof f=="function"&&(q=f,f=500);if(typeof d=="string"){var s=d,d={};d[s]=f;f=500}if(q){var i=t();g[i]=q}f===void 0&&(f=500);b=c._api().fp_animate(a,d,f,i);return h},css:function(d,f){if(f!==void 0){var q={};q[d]=f;d=q}b=c._api().fp_css(a,d);n(h,b);return h},show:function(){this.display="block";c._api().fp_showPlugin(a);return h},hide:function(){this.display="none";
c._api().fp_hidePlugin(a);return h},toggle:function(){this.display=c._api().fp_togglePlugin(a);return h},fadeTo:function(b,f,d){typeof f=="function"&&(d=f,f=500);if(d){var p=t();g[p]=d}this.display=c._api().fp_fadeTo(a,b,f,p);this.opacity=b;return h},fadeIn:function(a,b){return h.fadeTo(1,a,b)},fadeOut:function(a,b){return h.fadeTo(0,a,b)},getName:function(){return a},getPlayer:function(){return c},_fireEvent:function(b,f){if(b=="onUpdate"){var d=c._api().fp_getPlugin(a);if(!d)return;n(h,d);delete h.methods;
i||(j(d.methods,function(){var b=""+this;h[b]=function(){var f=[].slice.call(arguments),f=c._api().fp_invoke(a,b,f);return f==="undefined"||f===void 0?h:f}}),i=!0)}return(d=g[b])?(d=d.apply(h,f),b.slice(0,1)=="_"&&delete g[b],d):h}})},c=[];window.flowplayer=window.$f=function(){var a=null,b=arguments[0];if(!arguments.length)return j(c,function(){if(this.isLoaded())return a=this,!1}),a||c[0];if(arguments.length==1)if(typeof b=="number")return c[b];else{if(b=="*")return new l(c);j(c,function(){if(this.id()==
b.id||this.id()==b||this.getParent()==b)return a=this,!1});return a}if(arguments.length>1){var e=arguments[1],d=arguments.length==3?arguments[2]:{};typeof e=="string"&&(e={src:e});e=n({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:!1},e);if(typeof b=="string")if(b.indexOf(".")!=-1){var h=[];j(r(b),function(){h.push(new m(this,k(e),k(d)))});return new l(h)}else{var g=document.getElementById(b);return new m(g!==null?g:b,e,d)}else if(b)return new m(b,
e,d)}return null};n(window.$f,{fireEvent:function(){var a=[].slice.call(arguments),b=$f(a[0]);return b?b._fireEvent(a.slice(1)):null},addPlugin:function(a,b){m.prototype[a]=b;return $f},each:j,extend:n});if(typeof jQuery=="function")jQuery.fn.flowplayer=function(a,b){if(!arguments.length||typeof arguments[0]=="number"){var c=[];this.each(function(){var a=$f(this);a&&c.push(a)});return arguments.length?c[arguments[0]]:new l(c)}return this.each(function(){$f(this,k(a),b?k(b):{})})}})();
(function(){function k(){if(g.done)return!1;var b=document;if(b&&b.getElementsByTagName&&b.getElementById&&b.body){clearInterval(g.timer);g.timer=null;for(b=0;b<g.ready.length;b++)g.ready[b].call();g.ready=null;g.done=!0}}function j(b,c){if(c)for(key in c)c.hasOwnProperty(key)&&(b[key]=c[key]);return b}function n(b){switch(r(b)){case "string":return b=b.replace(RegExp('(["\\\\])',"g"),"\\$1"),b=b.replace(/^\s?(\d+)%/,"$1pct"),'"'+b+'"';case "array":return"["+i(b,function(a){return n(a)}).join(",")+
"]";case "function":return'"function()"';case "object":var c=[],a;for(a in b)b.hasOwnProperty(a)&&c.push('"'+a+'":'+n(b[a]));return"{"+c.join(",")+"}"}return String(b).replace(/\s/g," ").replace(/\'/g,'"')}function r(b){if(b===null||b===void 0)return!1;var c=typeof b;return c=="object"&&b.push?"array":c}function i(b,c){var a=[],g;for(g in b)b.hasOwnProperty(g)&&(a[g]=c(b[g]));return a}function o(b,c){var a=j({},b),g=document.all,e='<object width="'+a.width+'" height="'+a.height+'"';if(g&&!a.id)a.id=
"_"+(""+Math.random()).substring(9);a.id&&(e+=' id="'+a.id+'"');a.cachebusting&&(a.src+=(a.src.indexOf("?")!=-1?"&":"?")+Math.random());e+=a.w3c||!g?' data="'+a.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';e+=">";if(a.w3c||g)e+='<param name="movie" value="'+a.src+'" />';a.width=a.height=a.id=a.w3c=a.src=null;for(var d in a)a[d]!==null&&(e+='<param name="'+d+'" value="'+a[d]+'" />');a="";if(c){for(var h in c)c[h]!==null&&(a+=h+"="+(typeof c[h]==
"object"?n(c[h]):c[h])+"&");a=a.substring(0,a.length-1);e+='<param name="flashvars" value=\''+a+"' />"}e+="</object>";return e}function t(b,c,a){var g=flashembed.getVersion();j(this,{getContainer:function(){return b},getConf:function(){return c},getVersion:function(){return g},getFlashvars:function(){return a},getApi:function(){return b.firstChild},getHTML:function(){return o(c,a)}});var e=c.version,d=c.expressInstall,h=!e||flashembed.isSupported(e);if(h)c.onFail=c.version=c.expressInstall=null,b.innerHTML=
o(c,a);else if(e&&d&&flashembed.isSupported([6,65]))j(c,{src:d}),a={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title},b.innerHTML=o(c,a);else if(b.innerHTML.replace(/\s/g,"")===""&&(b.innerHTML="<h2>Flash version "+e+" or greater is required</h2><h3>"+(g[0]>0?"Your version is "+g:"You have no flash plugin installed")+"</h3>"+(b.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>"),
b.tagName=="A"))b.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"};if(!h&&c.onFail&&(e=c.onFail.call(this),typeof e=="string"))b.innerHTML=e;document.all&&(window[c.id]=document.getElementById(c.id))}var m=typeof jQuery=="function",l={width:"100%",height:"100%",allowfullscreen:!0,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:!1,cachebusting:!1};if(m)jQuery.tools=jQuery.tools||{},jQuery.tools.flashembed={version:"1.0.4",conf:l};
var g=m?jQuery:function(b){if(g.done)return b();g.timer?g.ready.push(b):(g.ready=[b],g.timer=setInterval(k,13))};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});window.flashembed=function(b,c,a){if(typeof b=="string"){var i=document.getElementById(b);if(i)b=i;else{g(function(){flashembed(b,c,a)});return}}if(b)return typeof c=="string"&&(c={src:c}),i=j({},l),j(i,c),new t(b,i,a)};j(window.flashembed,{getVersion:function(){var b=
[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var c=navigator.plugins["Shockwave Flash"].description;typeof c!="undefined"&&(c=c.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),b=parseInt(c.replace(/^(.*)\..*$/,"$1"),10),c=/r/.test(c)?parseInt(c.replace(/^.*r(.*)$/,"$1"),10):0,b=[b,c])}else if(window.ActiveXObject){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(a){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),b=[6,0],c.AllowScriptAccess="always"}catch(g){if(b[0]==
6)return b}try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}typeof c=="object"&&(c=c.GetVariable("$version"),typeof c!="undefined"&&(c=c.replace(/^\S+\s+(.*)$/,"$1").split(","),b=[parseInt(c[0],10),parseInt(c[2],10)]))}return b},isSupported:function(b){var c=flashembed.getVersion();return c[0]>b[0]||c[0]==b[0]&&c[1]>=b[1]},domReady:g,asString:n,getHTML:o});if(m)jQuery.fn.flashembed=function(b,c){var a=null;this.each(function(){a=flashembed(this,b,c)});return b.api===!1?this:a}})();(function(){function k(){if(!m&&(m=!0,l)){for(var g=0;g<l.length;g++)l[g].call(window,[]);l=[]}}function j(g){var b=window.onload;window.onload=typeof window.onload!="function"?g:function(){b&&b();g()}}function n(){if(!t){t=!0;document.addEventListener&&!o.opera&&document.addEventListener("DOMContentLoaded",k,!1);o.msie&&window==top&&function(){if(!m){try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}k()}}();o.opera&&document.addEventListener("DOMContentLoaded",
function(){if(!m){for(var b=0;b<document.styleSheets.length;b++)if(document.styleSheets[b].disabled){setTimeout(arguments.callee,0);return}k()}},!1);if(o.safari){var g;(function(){if(!m)if(document.readyState!="loaded"&&document.readyState!="complete")setTimeout(arguments.callee,0);else{if(g===void 0){for(var b=document.getElementsByTagName("link"),c=0;c<b.length;c++)b[c].getAttribute("rel")=="stylesheet"&&g++;b=document.getElementsByTagName("style");g+=b.length}document.styleSheets.length!=g?setTimeout(arguments.callee,
0):k()}})()}j(k)}}var r=window.DomReady={},i=navigator.userAgent.toLowerCase(),o={version:(i.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(i),opera:/opera/.test(i),msie:/msie/.test(i)&&!/opera/.test(i),mozilla:/mozilla/.test(i)&&!/(compatible|webkit)/.test(i)},t=!1,m=!1,l=[];r.ready=function(g){n();m?g.call(window,[]):l.push(function(){return g.call(window,[])})};n()})();(function(k,j){function n(b,c){return b.canPlayType(c)||a&&c.search("mp4")>-1}function r(b){for(var c=j.getElementsByTagName(b),d=[],e=0;e<c.length;e++)d.push(c[e]);for(e=0;e<d.length;e++){var c=d[e],g=!0;if(c.canPlayType)if(c.src)n(c,t(b,c.src))&&(g=!1);else for(var h=c.getElementsByTagName("source"),l=0;l<h.length;l++){var m=h[l];if(n(c,t(b,m.src,m.type))){g=!1;break}}g||i.forceFallback(b,c)?i.createFallback(b,c):a&&c.addEventListener("click",function(){this.play()},!1)}}function i(){r("video");
r("audio")}function o(a){return a.split("/").slice(0,-1).join("/")+"/"}function t(a,b,c){return c||B[a][b.split(".").slice(-1)[0]]||d[a]}function m(a,b){var c=a.getAttribute(b);return c==!0||typeof c=="string"}function l(a){return a.substr(0,1)=="/"?C+a:a.substr(0,1)=="."||!a.match(/^\s*\w+:\/\//)?v+a:a}function g(a,b,c){var d=a.getAttribute(b);if(d)return d+"px";if(a.currentStyle)a=a.currentStyle[b];else if(k.getComputedStyle)a=j.defaultView.getComputedStyle(a,null).getPropertyValue(b);else return c;
return a=="auto"?c:a}function b(a){return a.match(/\s*([\w-]+\/[\w-]+)(;|\s|$)/)[1]}function c(a,c){return b(a)==b(c)}j.createElement("video").canPlayType||(j.createElement("audio"),j.createElement("source"));var a=k.navigator.userAgent.toLowerCase().match(/android 2\.[12]/)!==null,p=k.navigator.userAgent.toLowerCase().match(/opera/)!==null;i.forceFallback=function(){return!1};var e=function(){for(var a=j.getElementsByTagName("script"),b=0;b<a.length;b++){var c=a[b];if(c.src.match(/html5media(\.min|)\.js/))return o(c.src)}return""}();
i.flowplayerSwf=e+"flowplayer.swf";i.flowplayerAudioSwf=e+"flowplayer.audio.swf";i.flowplayerControlsSwf=e+"flowplayer.controls.swf";i.expressInstallSwf=e+"expressInstall.swf";var d={video:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',audio:"audio/mpeg;"},h=['video/mp4; codecs="avc1.42E01E, mp4a.40.2"',"audio/x-m4a;","audio/mpeg;"],B={video:{ogg:'video/ogg; codecs="theora, vorbis"',ogv:'video/ogg; codecs="theora, vorbis"',avi:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',mp4:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',
mkv:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',h264:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',264:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',avc:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',m4v:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',"3gp":'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',"3gpp":'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',"3g2":'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',mpg:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',mpeg:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',webm:"video/webm;"},
audio:{ogg:'audio/ogg; codecs="vorbis"',oga:'audio/ogg; codecs="vorbis"',aac:"audio/x-m4a;",m4a:"audio/x-m4a;",mp3:"audio/mpeg;",wav:'audio/wav; codecs="1"'}},C=k.location.protocol+"//"+k.location.host,v=String(k.location),v=o(function(){for(var a=j.getElementsByTagName("base"),b=0;b<a.length;b++){var c=a[0];if(c.href)return c.href}return String(k.location)}());i.configureFlowplayer=function(a,b){return b};i.createFallback=function(a,b){var d=m(b,"controls"),e=b.getAttribute("poster")||"",n=b.getAttribute("src")||
"";if(!n)for(var k=b.getElementsByTagName("source"),o=0;o<k.length;o++){var r=k[o],v=r.getAttribute("src");if(v)for(var w=0;w<h.length;w++)if(c(h[w],t(a,v,r.getAttribute("type")))){n=v;break}if(n)break}if(n){k=j.createElement("span");k.id=b.id;k.style.cssText=b.style.cssText;k.className=b.className;k.title=b.title;k.style.display="block";k.style.width=g(b,"width","300px");k.style.height=a=="audio"?"26px":g(b,"height","200px");b.parentNode.replaceChild(k,b);r=(b.getAttribute("preload")||"").toLowerCase();
o=[];e&&o.push({url:l(e)});n&&o.push({url:l(n),autoPlay:m(b,"autoplay"),autoBuffering:m(b,"autobuffer")||m(b,"preload")&&(r==""||r=="auto"),onBeforeFinish:function(){return!m(b,"loop")}});e={controls:d&&{url:l(i.flowplayerControlsSwf),opacity:0.8,backgroundColor:"#181818",backgroundGradient:"none",fullscreen:a=="video",autoHide:a=="video"&&{fullscreenOnly:!1,enabled:!0,hideStyle:"fade",mouseOutDelay:0}||{enabled:!1}}||null};if(p&&e.controls)e.controls.autoHide.enabled=!1;if(a=="audio"){e.audio={url:l(i.flowplayerAudioSwf)};
if(!d)e.controls={url:l(i.flowplayerControlsSwf),display:"none"},k.style.height=0;o[o.length-1].autoBuffering=!1}d={play:null,playlist:o,clip:{scaling:"fit",fadeInSpeed:0,fadeOutSpeed:0},canvas:{backgroundGradient:"none",backgroundColor:"#000000"},plugins:e};d=i.configureFlowplayer(b,d);flowplayer(k,{src:l(i.flowplayerSwf),expressInstall:l(i.expressInstallSwf),wmode:"opaque"},d)}};DomReady.ready(i);k.html5media=i})(this,document);