diff options
author | Bharat Mediratta <bharat@menalto.com> | 2013-03-09 14:33:47 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2013-03-09 14:33:47 -0800 |
commit | 0899528ff5e0057c9bd6436a9e79dc6bac9726d6 (patch) | |
tree | f4be903c605f6dda066d4000026f01691fbbf65e | |
parent | e2cc29a61a0cb2c60e015841af983d3a6572a9d9 (diff) | |
parent | 7d9276963e99ab74143e1e2af3d83ff674bd49a3 (diff) |
Merge pull request #196 from shadlaws/fix_2046
#2046 - Change Gallery over to using MediaElementJS as its movie player
40 files changed, 227 insertions, 1123 deletions
diff --git a/lib/flowplayer-flash/flowplayer.controls.swf b/lib/flowplayer-flash/flowplayer.controls.swf Binary files differdeleted file mode 100644 index 8809004d..00000000 --- a/lib/flowplayer-flash/flowplayer.controls.swf +++ /dev/null diff --git a/lib/flowplayer-flash/flowplayer.js b/lib/flowplayer-flash/flowplayer.js deleted file mode 100644 index 04c47db1..00000000 --- a/lib/flowplayer-flash/flowplayer.js +++ /dev/null @@ -1,75 +0,0 @@ -/*! - * flowplayer.js 3.2.12. The Flowplayer API - * - * Copyright 2009-2011 Flowplayer Oy - * - * This file is part of Flowplayer. - * - * Flowplayer is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Flowplayer is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Flowplayer. If not, see <http://www.gnu.org/licenses/>. - * - * Date: 2013-03-04 - * Revision: 3.2.12, patched for use with Gallery 3 - */ -!function(){function m(a){if(!a||"object"!=typeof a)return a;var e=new a.constructor,d;for(d in a)a.hasOwnProperty(d)&&(e[d]=m(a[d]));return e}function l(a,e){if(a){var d,f=0,b=a.length;if(void 0===b)for(d in a){if(!1===e.call(a[d],d,a[d]))break}else for(d=a[0];f<b&&!1!==e.call(d,f,d);d=a[++f]);return a}}function h(a,e,d){if("object"!=typeof e)return a;a&&e&&l(e,function(f,e){if(!d||"function"!=typeof e)a[f]=e});return a}function E(a){a=a||window.event;a.preventDefault?(a.stopPropagation(),a.preventDefault()): -(a.returnValue=!1,a.cancelBubble=!0);return!1}function p(a,e,d){a[e]=a[e]||[];a[e].push(d)}function F(a){return a.replace(/&/g,"%26").replace(/&/g,"%26").replace(/=/g,"%3D")}function s(){return"_"+(""+Math.random()).slice(2,10)}function r(a,e,d){var f=this,j=null,g=!1,k,C,n=[],A={},u={},q,r,t,c,y,J;h(f,{id:function(){return q},isLoaded:function(){return null!==j&&void 0!==j.fp_play&&!g},getParent:function(){return a},hide:function(B){B&&(a.style.height="0px");f.isLoaded()&&(j.style.height="0px"); -return f},show:function(){a.style.height=J+"px";f.isLoaded()&&(j.style.height=y+"px");return f},isHidden:function(){return f.isLoaded()&&0===parseInt(j.style.height,10)},load:function(B){if(!f.isLoaded()&&!1!==f._fireEvent("onBeforeLoad")){var c=0;l(b,function(){this.unload(function(){++c==b.length&&(k&&!flashembed.isSupported(e.version)&&(a.innerHTML=""),B&&(B.cached=!0,p(u,"onLoad",B)),flashembed(a,e,{config:d}))})})}return f},unload:function(B){if(""!==k.replace(/\s/g,"")){if(!1===f._fireEvent("onBeforeUnload"))return B&& -B(!1),f;g=!0;try{j&&(j.fp_isFullscreen()&&j.fp_toggleFullscreen(),j.fp_close(),f._fireEvent("onUnload"))}catch(c){}var d=function(){j=null;a.innerHTML=k;g=!1;B&&B(!0)};/WebKit/i.test(navigator.userAgent)&&!/Chrome/i.test(navigator.userAgent)?setTimeout(d,0):d()}else B&&B(!1);return f},getClip:function(a){void 0===a&&(a=c);return n[a]},getCommonClip:function(){return C},getPlaylist:function(){return n},getPlugin:function(a){var c=A[a];if(!c&&f.isLoaded()){var d=f._api().fp_getPlugin(a);d&&(c=new z(a, -d,f),A[a]=c)}return c},getScreen:function(){return f.getPlugin("screen")},getControls:function(){return f.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return f.getPlugin("logo")._fireEvent("onUpdate")}catch(a){}},getPlay:function(){return f.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(a){return a?m(d):d},getFlashParams:function(){return e},loadPlugin:function(a,c,d,e){"function"==typeof d&&(e=d,d={});var b=e?s():"_";f._api().fp_loadPlugin(a,c,d,b);c={};c[b]= -e;e=new z(a,null,f,c);return A[a]=e},getState:function(){return f.isLoaded()?j.fp_getState():-1},play:function(a,c){var d=function(){void 0!==a?f._api().fp_play(a,c):f._api().fp_play()};f.isLoaded()?d():g?setTimeout(function(){f.play(a,c)},50):f.load(function(){d()});return f},getVersion:function(){if(f.isLoaded()){var a=j.fp_getVersion();a.push("flowplayer.js 3.2.12");return a}return"flowplayer.js 3.2.12"},_api:function(){if(!f.isLoaded())throw"Flowplayer "+f.id()+" not loaded when calling an API method"; -return j},setClip:function(c){l(c,function(d,f){if("function"==typeof f)p(u,d,f),delete c[d];else if("onCuepoint"==d)$f(a).getCommonClip().onCuepoint(c[d][0],c[d][1])});f.setPlaylist([c]);return f},getIndex:function(){return t},bufferAnimate:function(a){j.fp_bufferAnimate(void 0===a||a);return f},_swfHeight:function(){return j.clientHeight}});l("Click* Load* Unload* Keypress* Volume* Mute* Unmute* PlaylistReplace ClipAdd Fullscreen* FullscreenExit Error MouseOver MouseOut".split(" "),function(){var a= -"on"+this;if(-1!=a.indexOf("*")){var a=a.slice(0,a.length-1),c="onBefore"+a.slice(2);f[c]=function(a){p(u,c,a);return f}}f[a]=function(c){p(u,a,c);return f}});l("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;f[a]=function(c,d){if(!f.isLoaded())return f;var e= -null,e=void 0!==c&&void 0!==d?j["fp_"+a](c,d):void 0===c?j["fp_"+a]():j["fp_"+a](c);return"undefined"===e||void 0===e?f:e}});f._fireEvent=function(a){"string"==typeof a&&(a=[a]);var e=a[0],b=a[1],g=a[2],h=a[3],x=0;d.debug&&console.log("$f.fireEvent",[].slice.call(a));!f.isLoaded()&&("onLoad"==e&&"player"==b)&&(j=j||document.getElementById(r),y=f._swfHeight(),l(n,function(){this._fireEvent("onLoad")}),l(A,function(a,c){c._fireEvent("onUpdate")}),C._fireEvent("onLoad"));if(!("onLoad"==e&&"player"!= -b)){if("onError"==e&&("string"==typeof b||"number"==typeof b&&"number"==typeof g))b=g,g=h;if("onContextMenu"==e)l(d.contextMenu[b],function(a,c){c.call(f)});else if("onPluginEvent"==e||"onBeforePluginEvent"==e){if(h=A[b.name||b])return h._fireEvent("onUpdate",b),h._fireEvent(g,a.slice(3))}else{if("onPlaylistReplace"==e){n=[];var D=0;l(b,function(){n.push(new v(this,D++,f))})}if("onClipAdd"==e){if(b.isInStream)return;b=new v(b,g,f);n.splice(g,0,b);for(x=g+1;x<n.length;x++)n[x].index++}var k=!0;if("number"== -typeof b&&b<n.length&&(c=b,(a=n[b])&&(k=a._fireEvent(e,g,h)),!a||!1!==k))k=C._fireEvent(e,g,h,a);l(u[e],function(){k=this.call(f,b,g);this.cached&&u[e].splice(x,1);if(!1===k)return!1;x++});return k}}};if("string"==typeof a){var K=document.getElementById(a);if(!K)throw"Flowplayer cannot access element: "+a;a=K}var G=function(a){if(/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(n[0].url)&&(!f.hasiPadSupport||!f.hasiPadSupport()))return!0;!f.isLoaded()&&!1!==f._fireEvent("onBeforeClick")&& -f.load();return E(a)};$f(a)?($f(a).getParent().innerHTML="",t=$f(a).getIndex(),b[t]=f):(b.push(f),t=b.length-1);J=parseInt(a.style.height,10)||a.clientHeight;q=a.id||"fp"+s();r=e.id||q+"_api";e.id=r;k=a.innerHTML;"string"==typeof d&&(d={clip:{url:d}});d.playerId=q;d.clip=d.clip||{};a.getAttribute("href",2)&&!d.clip.url&&(d.clip.url=a.getAttribute("href",2));d.clip.url&&(d.clip.url=F(d.clip.url));C=new v(d.clip,-1,f);d.playlist=d.playlist||[d.clip];var I=0;l(d.playlist,function(){var a=this;"object"== -typeof a&&a.length&&(a={url:""+a});a.url&&(a.url=F(a.url));l(d.clip,function(c,d){void 0!==d&&(void 0===a[c]&&"function"!=typeof d)&&(a[c]=d)});d.playlist[I]=a;a=new v(a,I,f);n.push(a);I++});l(d,function(a,c){if("function"==typeof c){if(C[a])C[a](c);else p(u,a,c);delete d[a]}});l(d.plugins,function(a,c){c&&(A[a]=new z(a,c,f))});if(!d.plugins||void 0===d.plugins.controls)A.controls=new z("controls",null,f);A.canvas=new z("canvas",null,f);k=a.innerHTML;setTimeout(function(){""!==k.replace(/\s/g,"")? -a.addEventListener?a.addEventListener("click",G,!1):a.attachEvent&&a.attachEvent("onclick",G):(a.addEventListener&&(!f.hasiPadSupport||!f.hasiPadSupport())&&a.addEventListener("click",E,!1),f.load())},0)}function t(a){this.length=a.length;this.each=function(d){l(a,d)};this.size=function(){return a.length};var e=this;for(name in r.prototype)e[name]=function(){var a=arguments;e.each(function(){this[name].apply(this,a)})}}var v=function(a,e,d){var f=this,b={},g={};f.index=e;"string"==typeof a&&(a={url:a}); -h(this,a,!0);l("Begin* Start Pause* Resume* Seek* Stop* Finish* LastSecond Update BufferFull BufferEmpty BufferStop".split(" "),function(){var a="on"+this;if(-1!=a.indexOf("*")){var a=a.slice(0,a.length-1),b="onBefore"+a.slice(2);f[b]=function(a){p(g,b,a);return f}}f[a]=function(d){p(g,a,d);return f};-1==e&&(f[b]&&(d[b]=f[b]),f[a]&&(d[a]=f[a]))});h(this,{onCuepoint:function(a,g){if(1==arguments.length)return b.embedded=[null,a],f;"number"==typeof a&&(a=[a]);var h=s();b[h]=[a,g];d.isLoaded()&&d._api().fp_addCuepoints(a, -e,h);return f},update:function(a){h(f,a);d.isLoaded()&&d._api().fp_updateClip(a,e);var b=d.getConfig();h(-1==e?b.clip:b.playlist[e],a,!0)},_fireEvent:function(a,n,k,u){if("onLoad"==a)return l(b,function(a,c){c[0]&&d._api().fp_addCuepoints(c[0],e,a)}),!1;u=u||f;if("onCuepoint"==a){var q=b[n];if(q)return q[1].call(d,u,k)}n&&-1!="onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(a)&&(h(u,n),n.metaData&&(u.duration?u.fullDuration=n.metaData.duration:u.duration=n.metaData.duration));var m=!0; -l(g[a],function(){m=this.call(d,u,n,k)});return m}});if(a.onCuepoint){var k=a.onCuepoint;f.onCuepoint.apply(f,"function"==typeof k?[k]:k);delete a.onCuepoint}l(a,function(d,b){"function"==typeof b&&(p(g,d,b),delete a[d])});-1==e&&(d.onCuepoint=this.onCuepoint)},z=function(a,b,d,f){var j=this,g={},k=!1;f&&h(g,f);l(b,function(a,d){"function"==typeof d&&(g[a]=d,delete b[a])});h(this,{animate:function(f,h,k){if(!f)return j;"function"==typeof h&&(k=h,h=500);if("string"==typeof f){var l=f;f={};f[l]=h;h= -500}if(k){var q=s();g[q]=k}void 0===h&&(h=500);b=d._api().fp_animate(a,f,h,q);return j},css:function(f,g){if(void 0!==g){var k={};k[f]=g;f=k}b=d._api().fp_css(a,f);h(j,b);return j},show:function(){this.display="block";d._api().fp_showPlugin(a);return j},hide:function(){this.display="none";d._api().fp_hidePlugin(a);return j},toggle:function(){this.display=d._api().fp_togglePlugin(a);return j},fadeTo:function(b,f,e){"function"==typeof f&&(e=f,f=500);if(e){var h=s();g[h]=e}this.display=d._api().fp_fadeTo(a, -b,f,h);this.opacity=b;return j},fadeIn:function(a,d){return j.fadeTo(1,a,d)},fadeOut:function(a,d){return j.fadeTo(0,a,d)},getName:function(){return a},getPlayer:function(){return d},_fireEvent:function(b,f){if("onUpdate"==b){var e=d._api().fp_getPlugin(a);if(!e)return;h(j,e);delete j.methods;k||(l(e.methods,function(){var b=""+this;j[b]=function(){var f=[].slice.call(arguments),f=d._api().fp_invoke(a,b,f);return"undefined"===f||void 0===f?j:f}}),k=!0)}return(e=g[b])?(e=e.apply(j,f),"_"==b.slice(0, -1)&&delete g[b],e):j}})},b=[];window.flowplayer=window.$f=function(){var a=null,e=arguments[0];if(!arguments.length)return l(b,function(){if(this.isLoaded())return a=this,!1}),a||b[0];if(1==arguments.length){if("number"==typeof e)return b[e];if("*"==e)return new t(b);l(b,function(){if(this.id()==e.id||this.id()==e||this.getParent()==e)return a=this,!1});return a}if(1<arguments.length){var d=arguments[1],f=3==arguments.length?arguments[2]:{};"string"==typeof d&&(d={src:d});d=h({bgcolor:"#000000",version:[10, -1],expressInstall:"http://releases.flowplayer.org/swf/expressinstall.swf",cachebusting:!1},d);if("string"==typeof e){if(-1!=e.indexOf(".")){var j=[],g;g=e.indexOf(".");if(-1!=g){var k=e.slice(0,g)||"*",p=e.slice(g+1,e.length),n=[];l(document.getElementsByTagName(k),function(){this.className&&-1!=this.className.indexOf(p)&&n.push(this)});g=n}else g=void 0;l(g,function(){j.push(new r(this,m(d),m(f)))});return new t(j)}g=document.getElementById(e);return new r(null!==g?g:m(e),m(d),m(f))}if(e)return new r(e, -m(d),m(f))}return null};h(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){r.prototype[a]=b;return $f},each:l,extend:h});"function"==typeof jQuery&&(jQuery.fn.flowplayer=function(a,b){if(!arguments.length||"number"==typeof arguments[0]){var d=[];this.each(function(){var a=$f(this);a&&d.push(a)});return arguments.length?d[arguments[0]]:new t(d)}return this.each(function(){$f(this,m(a),b?m(b):{})})})}(); -!function(){function m(b,a){if(a)for(var e in a)a.hasOwnProperty(e)&&(b[e]=a[e]);return b}function l(b,a,e){if(r.isSupported(a.version))b.innerHTML=r.getHTML(a,e);else if(a.expressInstall&&r.isSupported([6,65]))b.innerHTML=r.getHTML(m(a,{src:a.expressInstall}),{MMredirectURL:encodeURIComponent(location.href),MMplayerType:"PlugIn",MMdoctitle:document.title});else{if(!b.innerHTML.replace(/\s/g,"")&&(b.innerHTML="<h2>Flash version "+a.version+" or greater is required</h2><h3>"+(0<t[0]?"Your version is "+ -t:"You have no flash plugin installed")+"</h3>"+("A"==b.tagName?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+E+"'>here</a></p>"),"A"==b.tagName||"DIV"==b.tagName))b.onclick=function(){location.href=E};if(a.onFail){var d=a.onFail.call(this);"string"==typeof d&&(b.innerHTML=d)}}h&&(window[a.id]=document.getElementById(a.id));m(this,{getRoot:function(){return b},getOptions:function(){return a},getConf:function(){return e},getApi:function(){return b.firstChild}})} -var h=document.all,E="http://get.adobe.com/flashplayer",p="function"==typeof jQuery,F=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,s={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:!0,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:!1,cachebusting:!1};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});window.flashembed=function(b,a,e){"string"==typeof b&& -(b=document.getElementById(b.replace("#","")));if(b)return"string"==typeof a&&(a={src:a}),new l(b,m(m({},s),a),e)};var r=m(window.flashembed,{conf:s,getVersion:function(){var b,a;try{a=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(e){try{a=(b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"))&&b.GetVariable("$version")}catch(d){try{a=(b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"))&&b.GetVariable("$version")}catch(f){}}}return(a=F.exec(a))?[1*a[1],1*a[9<1*a[1]?2:3]]: -[0,0]},asString:function(b){if(null===b||void 0===b)return null;var a=typeof b;"object"==a&&b.push&&(a="array");switch(a){case "string":return v.lastIndex=0,v.test(b)?'"'+b.replace(v,function(a){var b=z[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+b+'"';case "array":var e=[],d;for(d in b)b.hasOwnProperty(d)&&(e[d]=r.asString(b[d]));return"["+e.join(",")+"]";case "function":return'"function()"';case "object":d=[];for(e in b)b.hasOwnProperty(e)&&d.push('"'+ -e+'":'+r.asString(b[e]));return"{"+d.join(",")+"}"}return String(b).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(b,a){b=m({},b);var e='<object width="'+b.width+'" height="'+b.height+'" id="'+b.id+'" name="'+b.id+'"';b.cachebusting&&(b.src+=(-1!=b.src.indexOf("?")?"&":"?")+Math.random());e=b.w3c||!h?e+(' data="'+b.src+'" type="application/x-shockwave-flash"'):e+' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';e+=">";if(b.w3c||h)e+='<param name="movie" value="'+b.src+'" />';b.width= -b.height=b.id=b.w3c=b.src=null;b.onFail=b.version=b.expressInstall=null;for(var d in b)b[d]&&(e+='<param name="'+d+'" value="'+b[d]+'" />');d="";if(a){for(var f in a)if(a[f]){var j=a[f];d+=encodeURIComponent(f)+"="+encodeURIComponent(/function|object/.test(typeof j)?r.asString(j):j)+"&"}d=d.slice(0,-1);e+='<param name="flashvars" value="'+d+'" />'}return e+"</object>"},isSupported:function(b){return t[0]>b[0]||t[0]==b[0]&&t[1]>=b[1]}}),t=r.getVersion(),v=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, -z={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};p&&(jQuery.tools=jQuery.tools||{version:"@VERSION"},jQuery.tools.flashembed={conf:s},jQuery.fn.flashembed=function(b,a){return this.each(function(){$(this).data("flashembed",flashembed(this,b,a))})})}(); -$f.addPlugin("ipad",function(m){function l(a,c,b){if(c)for(key in c)if(key&&(!c[key]||"function"!=typeof c[key]||b))if(c[key]&&"object"==typeof c[key]&&void 0===c[key].length){var d={};l(d,c[key]);a[key]=d}else a[key]=c[key];return a}function h(){if(y.debug)if(M){var a=[].splice.call(arguments,0).join(", ");console.log.apply(console,[a])}else console.log.apply(console,arguments)}function E(a){switch(a){case -1:return"UNLOADED";case 0:return"LOADED";case 1:return"UNSTARTED";case 2:return"BUFFERING"; -case 3:return"PLAYING";case 4:return"PAUSED";case 5:return"ENDED"}return"UNKOWN"}function p(c){return!1!==$f.fireEvent(a.id(),"onBefore"+c,g)}function F(a){a.stopPropagation();a.preventDefault();return!1}function s(a,c){if(q!=v||c)H=q,q=a,clearInterval(G),G=null,a==b&&(G||(console.log("starting tracker"),G=setInterval(t,100),t())),h(E(a))}function r(){c.fp_stop();j=f=d=!1;s(z);s(z)}function t(){function b(c,x){c=0<=c?c:f-Math.abs(c);for(var D=0;D<x.length;D++)if(x[D].lastTimeFired>e)x[D].lastTimeFired= --1;else if(!(x[D].lastTimeFired+500>e)&&(c==d||d-500<c&&d>c))x[D].lastTimeFired=e,$f.fireEvent(a.id(),"onCuepoint",g,x[D].fnId,x[D].parameters)}var d=100*Math.floor(10*c.fp_getTime()),f=100*Math.floor(10*c.duration),e=(new Date).time;$f.each(a.getCommonClip().cuepoints,b);$f.each(k[g].cuepoints,b)}var v=-1,z=1,b=3,a=this,e=1,d=!1,f=!1,j=!1,g=0,k=[],C,n=null,A=0,u={accelerated:!1,autoBuffering:!1,autoPlay:!0,baseUrl:null,bufferLength:3,connectionProvider:null,cuepointMultiplier:1E3,cuepoints:[],controls:{}, -duration:0,extension:"",fadeInSpeed:1E3,fadeOutSpeed:1E3,image:!1,linkUrl:null,linkWindow:"_self",live:!1,metaData:{},originalUrl:null,position:0,playlist:[],provider:"http",scaling:"scale",seekableOnBegin:!1,start:0,url:null,urlResolvers:[]},q=v,H=v,M=/iPad|iPhone|iPod/i.test(navigator.userAgent),c=null,y={simulateiDevice:!1,controlsSizeRatio:1.5,controls:!0,debug:!1,validExtensions:"mov|m4v|mp4|avi|mp3|m4a|aac|m3u8|m3u|pls",posterExtensions:"png|jpg"};l(y,m);var J=y.validExtensions?RegExp("^.("+ -y.validExtensions+")$","i"):null,K=RegExp("^.("+y.posterExtensions+")$","i"),G=null;if(M||y.simulateiDevice){window.flashembed.__replaced||(m=window.flashembed,window.flashembed=function(a,c,b){"string"==typeof a&&(a=document.getElementById(a.replace("#","")));if(a){for(var d=window.getComputedStyle(a,null),f=parseInt(d.width),d=parseInt(d.height);a.firstChild;)a.removeChild(a.firstChild);var e=document.createElement("div"),g=document.createElement("video");e.appendChild(g);a.appendChild(e);e.style.height= -d+"px";e.style.width=f+"px";e.style.display="block";e.style.position="relative";e.style.background="-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.7)))";e.style.cursor="default";e.style.webkitUserDrag="none";g.style.height="100%";g.style.width="100%";g.style.display="block";g.id=c.id;g.name=c.id;g.style.cursor="pointer";g.style.webkitUserDrag="none";g.type="video/mp4";g.playerConfig=b.config;$f.fireEvent(b.config.playerId,"onLoad","player")}},flashembed.getVersion= -m.getVersion,flashembed.asString=m.asString,flashembed.isSupported=function(){return!0},flashembed.__replaced=!0);var I=a._fireEvent;a._fireEvent=function(m){if("onLoad"==m[0]&&"player"==m[1]){c=a.getParent().querySelector("video");y.controls&&(c.controls="controls");var t=function(c){var b={};l(b,u);l(b,a.getCommonClip());l(b,c);b.ipadUrl?url=decodeURIComponent(b.ipadUrl):b.url&&(url=b.url);url&&-1==url.indexOf("://")&&b.ipadBaseUrl?url=b.ipadBaseUrl+"/"+url:url&&(-1==url.indexOf("://")&&b.baseUrl)&& -(url=b.baseUrl+"/"+url);b.originalUrl=b.url;b.completeUrl=url;b.extension=b.completeUrl.substr(b.completeUrl.lastIndexOf("."));c=b.extension.indexOf("?");-1<c&&(b.extension=b.extension.substr(0,c));b.type="video";delete b.index;h("fixed clip",b);return b};console.log(c);c.fp_play=function(b,d,f,e){var j=null,l=!0,m=!0;h("Calling play() "+b,b);if(d)h("ERROR: inStream clips not yet supported");else if(void 0!==b){if("number"==typeof b){if(g>=k.length)return;g=b}else"string"==typeof b&&(b={url:b}),c.fp_setPlaylist(void 0!== -b.length?b:[b]);if(0==g&&1<k.length&&K.test(k[g].extension))e=k[g].url,console.log("Poster image available with url "+e),++g,console.log("Not last clip in the playlist, moving to next one"),c.fp_play(g,!1,!0,e);else if(!J||J.test(k[g].extension)){b=k[g];j=b.completeUrl;void 0!==b.autoBuffering&&!1===b.autoBuffering&&(l=!1);m=void 0===b.autoPlay||!0===b.autoPlay||!0===f?l=!0:!1;h("about to play "+j,l,m);r();j&&(h("Changing SRC attribute"+j),c.setAttribute("src",j));if(l){if(!p("Begin"))return!1;e&& -(m=b.autoPlay,c.setAttribute("poster",e),c.setAttribute("preload","none"));$f.fireEvent(a.id(),"onBegin",g);h("calling video.load()");c.load()}m&&(h("calling video.play()"),c.play())}}else h("clip was not given, simply calling video.play, if not already buffering"),2!=q&&c.play()};c.fp_pause=function(){h("pause called");if(!p("Pause"))return!1;c.pause()};c.fp_resume=function(){h("resume called");if(!p("Resume"))return!1;c.play()};c.fp_stop=function(){h("stop called");if(!p("Stop"))return!1;f=!0;c.pause(); -try{c.currentTime=0}catch(a){}};c.fp_seek=function(a){h("seek called "+a);if(!p("Seek"))return!1;var b=0;a+="";"%"==a.charAt(a.length-1)?(a=parseInt(a.substr(0,a.length-1))/100,b=c.duration*a):b=a;try{c.currentTime=b}catch(d){h("Wrong seek time")}};c.fp_getTime=function(){return c.currentTime};c.fp_mute=function(){h("mute called");if(!p("Mute"))return!1;e=c.volume;c.volume=0};c.fp_unmute=function(){if(!p("Unmute"))return!1;c.volume=e};c.fp_getVolume=function(){return 100*c.volume};c.fp_setVolume= -function(a){if(!p("Volume"))return!1;c.volume=a/100};c.fp_toggle=function(){h("toggle called");5==a.getState()?(r(),j=!0,c.fp_seek(0)):c.paused?c.fp_play():c.fp_pause()};c.fp_isPaused=function(){return c.paused};c.fp_isPlaying=function(){return!c.paused};c.fp_getPlugin=function(b){if("canvas"==b||"controls"==b){var c=a.getConfig();return c.plugins&&c.plugins[b]?c.plugins[b]:null}h("ERROR: no support for "+b+" plugin on iDevices");return null};c.fp_close=function(){s(v);c.parentNode.removeChild(c); -c=null};c.fp_getStatus=function(){var a=0,b=0;try{a=c.buffered.start(),b=c.buffered.end()}catch(d){}return{bufferStart:a,bufferEnd:b,state:q,time:c.fp_getTime(),muted:c.muted,volume:c.fp_getVolume()}};c.fp_getState=function(){return q};c.fp_startBuffering=function(){q==z&&c.load()};c.fp_setPlaylist=function(b){h("Setting playlist");for(var c=g=0;c<b.length;c++)b[c]=t(b[c]);k=b;$f.fireEvent(a.id(),"onPlaylistReplace",b)};c.fp_addClip=function(b,c){b=t(b);k.splice(c,0,b);$f.fireEvent(a.id(),"onClipAdd", -b,c)};c.fp_updateClip=function(a,b){l(k[b],a);return k[b]};c.fp_getVersion=function(){return"3.2.3"};c.fp_isFullscreen=function(){var a=c.webkitDisplayingFullscreen;return void 0!==a?a:!1};c.fp_toggleFullscreen=function(){c.fp_isFullscreen()?c.webkitExitFullscreen():c.webkitEnterFullscreen()};c.fp_addCuepoints=function(b,c,d){c=-1==c?a.getCommonClip():k[c];c.cuepoints=c.cuepoints||{};b=b instanceof Array?b:[b];for(var e=0;e<b.length;e++){var f="object"==typeof b[e]?b[e].time||null:b[e];if(null!=f){var g= -f=100*Math.floor(f/100);"object"==typeof b[e]&&(g=l({},b[e],!1),void 0===g.time&&delete g.time,void 0!==g.parameters&&(l(g,g.parameters,!1),delete g.parameters));c.cuepoints[f]=c.cuepoints[f]||[];c.cuepoints[f].push({fnId:d,lastTimeFired:-1,parameters:g})}}};$f.each("toggleFullscreen stopBuffering reset playFeed setKeyboardShortcutsEnabled isKeyboardShortcutsEnabled css animate showPlugin hidePlugin togglePlugin fadeTo invoke loadPlugin".split(" "),function(){var a=this;c["fp_"+a]=function(){h("ERROR: unsupported API on iDevices "+ -a);return!1}});for(var w="abort canplay canplaythrough durationchange emptied ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend volumechange waiting".split(" "),G=function(a){h("Got event "+a.type,a)},L=0;L<w.length;L++)c.addEventListener(w[L],G,!1);w=function(b){h("got onBufferEmpty event "+b.type);s(2);$f.fireEvent(a.id(),"onBufferEmpty",g)};c.addEventListener("emptied",w,!1);c.addEventListener("waiting",w,!1);w=function(){H==z|| -2==H||(h("Restoring old state "+E(H)),s(H));$f.fireEvent(a.id(),"onBufferFull",g)};c.addEventListener("canplay",w,!1);c.addEventListener("canplaythrough",w,!1);w=function(){var b;A=k[g].start;0<k[g].duration?(b=k[g].duration,n=b+A):(b=c.duration,n=null);c.fp_updateClip({duration:b,metaData:{duration:c.duration}},g);k[g].duration=c.duration;k[g].metaData={duration:c.duration};$f.fireEvent(a.id(),"onMetaData",g,k[g])};c.addEventListener("loadedmetadata",w,!1);c.addEventListener("durationchange",w,!1); -c.addEventListener("timeupdate",function(a){if(n&&c.currentTime>n)return c.fp_seek(A),r(),F(a)},!1);c.addEventListener("playing",function(e){if(4==q){if(!p("Resume"))return h("Resume disallowed, pausing"),c.fp_pause(),F(e);$f.fireEvent(a.id(),"onResume",g)}s(b);d||(d=!0,$f.fireEvent(a.id(),"onStart",g))},!1);c.addEventListener("play",function(){C=setInterval(function(){c.fp_getTime()>=c.duration-1&&($f.fireEvent(a.id(),"onLastSecond",g),clearInterval(C))},100)},!1);c.addEventListener("ended",function(b){if(!p("Finish"))return 1== -k.length?(h("Active playlist only has one clip, onBeforeFinish returned false. Replaying"),r(),j=!0,c.fp_seek(0)):g!=k.length-1?(h("Not the last clip in the playlist, but onBeforeFinish returned false. Returning to the beginning of current clip"),c.fp_seek(0)):(h("Last clip in playlist, but onBeforeFinish returned false, start again from the beginning"),c.fp_play(0)),F(b);s(5);$f.fireEvent(a.id(),"onFinish",g);1<k.length&&g<k.length-1&&(h("Not last clip in the playlist, moving to next one"),c.fp_play(++g, -!1,!0))},!1);c.addEventListener("error",function(){s(0,!0);$f.fireEvent(a.id(),"onError",g,201);y.onFail&&y.onFail instanceof Function&&y.onFail.apply(a,[])},!1);c.addEventListener("pause",function(b){h("got pause event from player"+a.id());if(!f)if(2==q&&H==z)h("forcing play"),setTimeout(function(){c.play()},0);else{if(!p("Pause"))return c.fp_resume(),F(b);clearInterval(C);s(4);$f.fireEvent(a.id(),"onPause",g)}},!1);c.addEventListener("seeking",function(){$f.fireEvent(a.id(),"onBeforeSeek",g)},!1); -c.addEventListener("seeked",function(){f?(f=!1,$f.fireEvent(a.id(),"onStop",g)):$f.fireEvent(a.id(),"onSeek",g);h("seek done, currentState",E(q));j?(j=!1,c.fp_play()):q!=b&&c.fp_pause()},!1);c.addEventListener("volumechange",function(){$f.fireEvent(a.id(),"onVolume",c.fp_getVolume())},!1);s(0,!0);c.fp_setPlaylist(c.playerConfig.playlist);c.fp_play(0);I.apply(a,[m])}w=q!=v;q==v&&"string"==typeof m&&(w=!0);if(w)return I.apply(a,[m])};a._swfHeight=function(){return parseInt(c.style.height)};a.hasiPadSupport= -function(){return!0}}return a});
diff --git a/lib/flowplayer-flash/flowplayer.pseudostreaming-byterange.swf b/lib/flowplayer-flash/flowplayer.pseudostreaming-byterange.swf Binary files differdeleted file mode 100644 index c35a3e20..00000000 --- a/lib/flowplayer-flash/flowplayer.pseudostreaming-byterange.swf +++ /dev/null diff --git a/lib/flowplayer-flash/flowplayer.pseudostreaming.swf b/lib/flowplayer-flash/flowplayer.pseudostreaming.swf Binary files differdeleted file mode 100644 index 74663e85..00000000 --- a/lib/flowplayer-flash/flowplayer.pseudostreaming.swf +++ /dev/null diff --git a/lib/flowplayer-flash/flowplayer.swf b/lib/flowplayer-flash/flowplayer.swf Binary files differdeleted file mode 100644 index a7f1e5cf..00000000 --- a/lib/flowplayer-flash/flowplayer.swf +++ /dev/null diff --git a/lib/flowplayer-html5/flowplayer.js b/lib/flowplayer-html5/flowplayer.js deleted file mode 100644 index 1ba19163..00000000 --- a/lib/flowplayer-html5/flowplayer.js +++ /dev/null @@ -1,5 +0,0 @@ -/*! - - Flowplayer v5.3.2 (Monday, 28. January 2013 10:02AM) | flowplayer.org/license - -*/!function(e){function o(t,n){var r="obj"+(""+Math.random()).slice(2,15),i='<object class="fp-engine" id="'+r+'" name="'+r+'" ';i+=e.browser.msie?'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">':' data="'+t+'" type="application/x-shockwave-flash">';var s={width:"100%",height:"100%",allowscriptaccess:"always",wmode:"transparent",quality:"high",flashvars:"",movie:t+(e.browser.msie?"?"+r:""),name:r};return e.each(n,function(e,t){s.flashvars+=e+"="+t+"&"}),e.each(s,function(e,t){i+='<param name="'+e+'" value="'+t+'"/>'}),i+="</object>",e(i)}function f(e){return Math.round(e*100)/100}function l(e){return/mpegurl/i.test(e)?"application/x-mpegurl":"video/"+e}function c(e){return/^(video|application)/.test(e)||(e=l(e)),!!u.canPlayType(e).replace("no","")}function v(e){var t=e.attr("src"),n=e.attr("type")||"",r=t.split(d)[1];return n=/mpegurl/.test(n)?"mpegurl":n.replace("video/",""),{src:t,suffix:r||n,type:n||r}}function m(t){var n=this,r=[];e("source",t).each(function(){r.push(v(e(this)))}),r.length||r.push(v(t)),n.initialSources=r,n.resolve=function(t){return t?(e.isArray(t)?t={sources:e.map(t,function(t){var n;return e.each(t,function(e,t){n=e}),t.type=n,t.src=t[n],delete t[n],t})}:typeof t=="string"&&(t={src:t,sources:[]},e.each(r,function(e,n){n.type!="flash"&&t.sources.push({type:n.type,src:t.src.replace(d,"")+"."+n.suffix})})),t):{sources:r}}}function g(e){return e=parseInt(e,10),e>=10?e:"0"+e}function y(e){e=e||0;var t=Math.floor(e/3600),n=Math.floor(e/60);return e-=n*60,t>=1?(n-=t*60,t+":"+g(n)+":"+g(e)):g(n)+":"+g(e)}!function(e){if(!e.browser){var t=e.browser={},n=navigator.userAgent.toLowerCase(),r=/(chrome)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];r[1]&&(t[r[1]]=!0,t.version=r[2]||"0")}}(jQuery),e(function(){typeof e.fn.flowplayer=="function"&&e("video").parent(".flowplayer").flowplayer()});var t=[],n=[],r=navigator.userAgent,i=/Android/.test(r)&&/Firefox/.test(r);window.flowplayer=function(r){return i?0:e.isFunction(r)?n.push(r):typeof r=="number"||r===undefined?t[r||0]:e(r).data("flowplayer")},e.extend(flowplayer,{version:"5.3.2",engine:{},conf:{},support:{},defaults:{debug:!1,disabled:!1,engine:"html5",fullscreen:window==window.top,keyboard:!0,ratio:9/16,flashfit:!1,rtmp:0,splash:!1,swf:"http://releases.flowplayer.org/5.3.2/flowplayer.swf",speeds:[.25,.5,1,1.5,2],tooltip:!0,volume:1,errors:["","Video loading aborted","Network error","Video not properly encoded","Video file not found","Unsupported video","Skin not found","SWF file not found","Subtitles not found","Invalid RTMP URL","Unsupported video format. Try installing Adobe Flash."],errorUrls:["","","","","","","","","","","http://get.adobe.com/flashplayer/"]}});if(i)return e(function(){e("video").attr("controls","controls")});var s=0;e.fn.flowplayer=function(r,i){return typeof r=="string"&&(r={swf:r}),e.isFunction(r)&&(i=r,r={}),!r&&this.data("flowplayer")||this.each(function(){var o=e(this).addClass("is-loading"),u=e.extend({},flowplayer.defaults,flowplayer.conf,r,o.data()),a=e("video",o).addClass("fp-engine").removeAttr("controls"),f=new m(a),l={},c,h;o.data("fp-player_id",o.data("fp-player_id")||s++);try{l=window.localStorage||l}catch(p){}var d={conf:u,currentSpeed:1,volumeLevel:l.volume*1||u.volume,video:{},disabled:!1,finished:!1,loading:!1,muted:l.muted=="true"||u.muted,paused:!1,playing:!1,ready:!1,splash:!1,load:function(t,n){if(d.error||d.loading||d.disabled)return;t=f.resolve(t),e.extend(t,h.pick(t.sources));if(t.src){var r=e.Event("load");o.trigger(r,[d,t,h]),r.isDefaultPrevented()||(h.load(t),e.isFunction(t)&&(n=t),n&&o.one("ready",n))}return d},pause:function(e){return d.ready&&!d.seeking&&!d.disabled&&!d.loading&&(h.pause(),d.one("pause",e)),d},resume:function(){return d.ready&&d.paused&&!d.disabled&&(h.resume(),d.finished&&(d.trigger("resume"),d.finished=!1)),d},toggle:function(){return d.ready?d.paused?d.resume():d.pause():d.load()},seek:function(t,n){if(d.ready){if(typeof t=="boolean"){var r=d.video.duration*.1;t=d.video.time+(t?r:-r)}t=c=Math.min(Math.max(t,0),d.video.duration),h.seek(t),e.isFunction(n)&&o.one("seek",n)}return d},seekTo:function(e,t){var n=e===undefined?c:d.video.duration*.1*e;return d.seek(n,t)},mute:function(e){e==undefined&&(e=!d.muted),l.muted=d.muted=e,d.volume(e?0:l.volume),d.trigger("mute",e)},volume:function(e){return d.ready&&(e=Math.min(Math.max(e,0),1),l.volume=e,h.volume(e)),d},speed:function(t,n){return d.ready&&(typeof t=="boolean"&&(t=u.speeds[e.inArray(d.currentSpeed,u.speeds)+(t?1:-1)]||d.currentSpeed),h.speed(t),n&&o.one("speed",n)),d},stop:function(){return d.ready&&(d.pause(),d.seek(0,function(){o.trigger("stop")})),d},unload:function(){return o.hasClass("is-embedding")||(u.splash?(d.trigger("unload"),h.unload()):d.stop()),d},disable:function(e){e===undefined&&(e=!d.disabled),e!=d.disabled&&(d.disabled=e,d.trigger("disable",e))}};e.each(["bind","one","unbind"],function(e,t){d[t]=function(e,n){return o[t](e,n),d}}),d.trigger=function(e,t){return o.trigger(e,[d,t]),d},o.bind("boot",function(){e.each(["autoplay","loop","preload","poster"],function(e,t){var n=a.attr(t);n!==undefined&&(u[t]=n?n:!0)});if(u.splash||o.hasClass("is-splash")||!flowplayer.support.firstframe)d.splash=u.splash=u.autoplay=!0,o.addClass("is-splash"),a.attr("preload","none");e.each(n,function(e){this(d,o)}),h=flowplayer.engine[u.engine],h&&(h=h(d,o)),h.pick(f.initialSources)?d.engine=u.engine:e.each(flowplayer.engine,function(e,t){if(e!=u.engine)return h=this(d,o),h.pick(f.initialSources)&&(d.engine=e),!1});if(!d.engine)return d.trigger("error",{code:flowplayer.support.flash?5:10});u.splash?d.unload():d.load(),u.disabled&&d.disable(),o.one("ready",i),t.push(d)}).bind("load",function(t,n,r){u.splash&&e(".flowplayer").filter(".is-ready, .is-loading").not(o).each(function(){var t=e(this).data("flowplayer");t.conf.splash&&t.unload()}),o.addClass("is-loading"),n.loading=!0}).bind("ready",function(e,t,n){function r(){o.removeClass("is-loading"),t.loading=!1}n.time=0,t.video=n,u.splash?o.one("progress",r):r(),t.muted?t.mute(!0):t.volume(t.volumeLevel)}).bind("unload",function(e){u.splash&&a.remove(),o.removeClass("is-loading"),d.loading=!1}).bind("ready unload",function(e){var t=e.type=="ready";o.toggleClass("is-splash",!t).toggleClass("is-ready",t),d.ready=t,d.splash=!t}).bind("progress",function(e,t,n){t.video.time=n}).bind("speed",function(e,t,n){t.currentSpeed=n}).bind("volume",function(e,t,n){t.volumeLevel=Math.round(n*100)/100,t.muted?n&&t.mute(!1):l.volume=n}).bind("beforeseek seek",function(e){d.seeking=e.type=="beforeseek",o.toggleClass("is-seeking",d.seeking)}).bind("ready pause resume unload finish stop",function(e,t,n){d.paused=/pause|finish|unload|stop/.test(e.type),e.type=="ready"&&n&&(d.paused=!n.duration||!u.autoplay&&(u.preload!="none"||d.engine=="flash")),d.playing=!d.paused,o.toggleClass("is-paused",d.paused).toggleClass("is-playing",d.playing),d.load.ed||d.pause()}).bind("finish",function(e){d.finished=!0}).bind("error",function(){a.remove()}),o.trigger("boot",[d,o]).data("flowplayer",d)})},!function(){var t=flowplayer.support,n=e.browser,r=e("<video loop autoplay preload/>")[0],i=n.msie,s=navigator.userAgent,o=/iPad|MeeGo/.test(s),u=/iP(hone|od)/i.test(s),a=/Android/.test(s),f=/Silk/.test(s),l=o?parseFloat(/Version\/(\d\.\d)/.exec(s)[1],10):0;e.extend(t,{video:!!r.canPlayType,subtitles:!!r.addTextTrack,fullscreen:typeof document.webkitCancelFullScreen=="function"&&!/Mac OS X 10_5.+Version\/5\.0\.\d Safari/.test(s)||document.mozFullScreenEnabled,fullscreen_keyboard:!n.safari||n.version>"536",inlineBlock:!(i&&n.version<8),touch:"ontouchstart"in window,dataload:!o&&!u,zeropreload:!i&&!a,volume:!o&&!a&&!u&&!f,cachedVideoTag:!o&&!u,firstframe:!u&&!o&&!a&&!f});try{var c=i?(new ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version"):navigator.plugins["Shockwave Flash"].description;c=c.split(/\D+/),c.length&&!c[0]&&(c=c.slice(1)),t.flashVideo=c[0]>9||c[0]==9&&c[3]>=115}catch(h){}t.animation=function(){var t=["","Webkit","Moz","O","ms","Khtml"],n=e("<p/>")[0];for(var r=0;r<t.length;r++)if(n.style[t[r]+"AnimationName"]!=="undefined")return!0}()}(),window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_savedUnloadHandler=__flash_unloadHandler=function(){}}),flowplayer.engine.flash=function(t,n){var r=t.conf,i=t.video,s,u,a,f={pick:function(t){if(flowplayer.support.flashVideo){var n=e.grep(t,function(e){return e.type=="flash"})[0];if(n)return n;for(var r=0,i;r<t.length;r++){i=t[r];if(/mp4|flv/.test(i.type))return i}}},load:function(i){var f=e("video",n),l=i.src.replace(/&/g,"%26").replace(/&/g,"%26").replace(/=/g,"%3D"),c=/^https?:/.test(l);f.length>0&&flowplayer.support.video&&f[0].pause(),f.remove(),!c&&!r.rtmp&&(l=e("<a/>").attr("href",l)[0].href);if(a)a.__play(l);else{s="fp"+(""+Math.random()).slice(3,15);var h={hostname:r.embedded?r.hostname:location.hostname,url:l,callback:"jQuery."+s};c&&delete r.rtmp,e.each(["key","autoplay","preload","rtmp","loop","debug"],function(e,t){r[t]&&(h[t]=r[t])}),u=o(r.swf,h),u.prependTo(n),a=u[0],setTimeout(function(){try{if(!a.PercentLoaded())return n.trigger("error",[t,{code:7,url:r.swf}])}catch(e){}},5e3),e[s]=function(n,s){r.debug&&n!="status"&&console.log("--",n,s);var o=e.Event(n);switch(n){case"ready":s=e.extend(i,s);break;case"click":o.flash=!0;break;case"keydown":o.which=s;break;case"seek":i.time=s;break;case"buffered":i.buffered=!0;break;case"status":t.trigger("progress",s.time),s.buffer<=i.bytes&&!i.buffered?(i.buffer=s.buffer/i.bytes*i.duration,t.trigger("buffer",i.buffer)):i.buffered&&t.trigger("buffered")}setTimeout(function(){t.trigger(o,s)},1)}}},speed:e.noop,unload:function(){a&&a.__unload&&a.__unload(),delete e[s],e("object",n).remove(),a=0}};e.each("pause,resume,seek,volume".split(","),function(e,n){f[n]=function(e){t.ready&&(n=="seek"&&t.video.time&&!t.paused&&t.trigger("beforeseek"),e===undefined?a["__"+n]():a["__"+n](e))}});var l=e(window),c=n.height(),h=n.width();return t.bind("ready fullscreen fullscreen-exit",function(r){if(t.conf.flashfit||/full/.test(r.type)){var i=t.isFullscreen,s=i&&C,o=!flowplayer.support.inlineBlock,u=i?s?screen.availWidth:l.width():h,a=i?s?screen.availHeight:l.height():c,f=s?screen.width-screen.availWidth:0,p=s?screen.height-screen.availHeight:0,d=o?h:"",v=o?c:"",m,g;if(t.conf.flashfit||r.type==="fullscreen")m=t.video.width/t.video.height,g=t.video.height/t.video.width,v=Math.max(g*u),d=Math.max(m*a),v=v>a?d*g:v,v=Math.min(Math.round(v),a),d=d>u?v*m:d,d=Math.min(Math.round(d),u),p=Math.max(Math.round((a+p-v)/2),0),f=Math.max(Math.round((u+f-d)/2),0);e("object",n).css({width:d,height:v,marginTop:p,marginLeft:f})}}),f};var u=e("<video/>")[0],a={ended:"finish",pause:"pause",play:"resume",progress:"buffer",timeupdate:"progress",volumechange:"volume",ratechange:"speed",seeking:"beforeseek",seeked:"seek",loadeddata:"ready",error:"error",dataunavailable:"error"},h,p=function(t){return h?h.attr({type:l(t.type),src:t.src}):h=e("<video/>",{src:t.src,type:l(t.type),"class":"fp-engine",autoplay:"autoplay",preload:"none"})};flowplayer.engine.html5=function(t,n){function v(r,i,s){if(r.listeners&&r.listeners.hasOwnProperty(n.data("fp-player_id")))return;(r.listeners||(r.listeners={}))[n.data("fp-player_id")]=!0,i.bind("error",function(n){try{if(n.originalEvent&&e(n.originalEvent.originalTarget).is("img"))return n.preventDefault();c(e(n.target).attr("type"))&&t.trigger("error",{code:4})}catch(r){}}),e.each(a,function(i,u){r.addEventListener(i,function(a){u=="progress"&&a.srcElement&&a.srcElement.readyState===0&&setTimeout(function(){t.video.duration||(u="error",t.trigger(u,{code:4}))},1e4),o.debug&&!/progress/.test(u)&&console.log(i,"->",u,a);if(!t.ready&&!/ready|error/.test(u)||!u||!e("video",n).length)return;var c=e.Event(u),h;switch(u){case"ready":h=e.extend(s,{duration:r.duration,width:r.videoWidth,height:r.videoHeight,url:r.currentSrc,src:r.currentSrc});try{h.seekable=r.seekable&&r.seekable.end(null)}catch(p){}l=l||setInterval(function(){try{h.buffer=r.buffered.end(null)}catch(e){}h.buffer&&(h.buffer<=h.duration&&!h.buffered?t.trigger("buffer",a):h.buffered||(h.buffered=!0,t.trigger("buffer",a).trigger("buffered",a),clearInterval(l),l=0))},250);break;case"progress":case"seek":var d=t.video.duration;if(r.currentTime>0){h=Math.max(r.currentTime,0),d&&h&&h>=d&&(c.type="finish");break}if(u=="progress")return;case"speed":h=f(r.playbackRate);break;case"volume":h=f(r.volume);break;case"error":try{h=(a.srcElement||a.originalTarget).error}catch(v){return}}t.trigger(c,h)},!1)})}var r=e("video",n),i=flowplayer.support,s=e("track",r),o=t.conf,u,l,d;return u={pick:function(e){if(i.video)for(var t=0,n;t<e.length;t++)if(c(e[t].type))return e[t]},load:function(u){if(o.splash&&!d)r=p(u).prependTo(n),s.length&&r.append(s.attr("default","")),o.loop&&r.attr("loop","loop"),d=r[0];else{d=r[0];if(t.video.src&&u.src!=t.video.src)r.attr("autoplay","autoplay"),d.src=u.src;else if(o.preload=="none"||!i.dataload)i.zeropreload?t.trigger("ready",u).trigger("pause").one("ready",function(){n.trigger("resume")}):t.one("ready",function(){n.trigger("pause")})}v(d,e("source",r).add(r),u),(o.preload!="none"||!i.zeropreload||!i.dataload)&&d.load(),o.splash&&d.load()},pause:function(){d.pause()},resume:function(){d.play()},speed:function(e){d.playbackRate=e},seek:function(e){try{d.currentTime=e}catch(t){}},volume:function(e){d.volume=e},unload:function(){e("video",n).remove(),i.cachedVideoTag||(h=null),l=clearInterval(l),d=0}}};var d=/.(\w{3,4})$/i;e.throttle=function(e,t){var n;return function(){n||(e.apply(this,arguments),n=1,setTimeout(function(){n=0},t))}},e.fn.slider2=function(){var t=/iPad/.test(navigator.userAgent);return this.each(function(){var n=e(this),r=e(document),i=n.children(":last"),s,o,u,a,f,l,c,h,p=function(){o=n.offset(),u=n.width(),a=n.height(),l=f?a:u,h=g(c)},d=function(e){!s&&e!=y.value&&(!c||e<c)&&(n.trigger("slide",[e]),y.value=e)},v=function(e){var t=f?e.pageY-o.top:e.pageX-o.left;t=Math.max(0,Math.min(h||l,t));var n=t/l;return f&&(n=1-n),m(n,0,!0)},m=function(e,n){n===undefined&&(n=0),e>1&&(e=1);var r=Math.round(e*1e3)/10+"%";if(!c||e<=c)t||i.stop(),i.animate(f?{height:r}:{width:r},n,"linear");return e},g=function(e){return Math.max(0,Math.min(l,f?(1-e)*a:e*u))},y={max:function(e){c=e},disable:function(e){s=e},slide:function(e,t,n){p(),n&&d(e),m(e,t)}};p(),n.data("api",y).bind("mousedown.sld",function(t){t.preventDefault();if(!s){var n=e.throttle(d,100);p(),y.dragging=!0,d(v(t)),r.bind("mousemove.sld",function(e){e.preventDefault(),n(v(e))}).one("mouseup",function(){y.dragging=!1,r.unbind("mousemove.sld")})}})})},flowplayer(function(t,n){function o(t){return e(".fp-"+t,n)}function T(t){parseInt(v,10)||h.css("paddingTop",t*100+"%"),i.inlineBlock||e("object",n).height(n.height())}function N(e){n.toggleClass("is-mouseover",e).toggleClass("is-mouseout",!e)}var r=t.conf,i=flowplayer.support,s;n.addClass("flowplayer").append(' <div class="ratio"/> <div class="ui"> <div class="waiting"><em/><em/><em/></div> <a class="fullscreen"/> <a class="unload"/> <p class="speed"/> <div class="controls"> <a class="play"></a> <div class="timeline"> <div class="buffer"/> <div class="progress"/> </div> <div class="volume"> <a class="mute"></a> <div class="volumeslider"> <div class="volumelevel"/> </div> </div> </div> <div class="time"> <em class="elapsed">00:00</em> <em class="remaining"/> <em class="duration">00:00</em> </div> <div class="message"><h2/><p/></div> </div>'.replace(/class="/g,'class="fp-'));var u=o("progress"),a=o("buffer"),f=o("elapsed"),l=o("remaining"),c=o("waiting"),h=o("ratio"),p=o("speed"),d=o("duration"),v=h.css("paddingTop"),m=o("timeline").slider2(),g=m.data("api"),b=o("volume"),w=o("fullscreen"),E=o("volumeslider").slider2(),S=E.data("api"),x=n.is(".fixed-controls, .no-toggle");i.animation||c.html("<p>loading …</p>"),T(r.ratio);try{r.fullscreen||w.remove()}catch(C){w.remove()}t.bind("ready",function(){var e=t.video.duration;g.disable(!e),T(t.video.videoHeight/t.video.videoWidth),d.add(l).html(y(e)),e>=3600&&n.addClass("is-long")||n.removeClass("is-long"),S.slide(t.volumeLevel)}).bind("unload",function(){v||h.css("paddingTop","")}).bind("buffer",function(){var e=t.video,n=e.buffer/e.duration;e.seekable||g.max(n),n<1?a.css("width",n*100+"%"):a.css({width:"100%"})}).bind("speed",function(e,t,n){p.text(n+"x").addClass("fp-hilite"),setTimeout(function(){p.removeClass("fp-hilite")},1e3)}).bind("buffered",function(){a.css({width:"100%"}),g.max(1)}).bind("progress",function(){var e=t.video.time,n=t.video.duration;g.dragging||g.slide(e/n,t.seeking?0:250),f.html(y(e)),l.html("-"+y(n-e))}).bind("finish resume seek",function(e){n.toggleClass("is-finished",e.type=="finish")}).bind("stop",function(){f.html(y(0)),g.slide(0,100)}).bind("finish",function(){f.html(y(t.video.duration)),g.slide(1,100),n.removeClass("is-seeking")}).bind("beforeseek",function(){u.stop()}).bind("volume",function(){S.slide(t.volumeLevel)}).bind("disable",function(){var e=t.disabled;g.disable(e),S.disable(e),n.toggleClass("is-disabled",t.disabled)}).bind("mute",function(e,t,r){n.toggleClass("is-muted",r)}).bind("error",function(t,i,s){n.removeClass("is-loading").addClass("is-error");if(s){s.message=r.errors[s.code],i.error=!0;var o=e(".fp-message",n);e("h2",o).text(i.engine+": "+s.message),e("p",o).text(s.url||i.video.url||i.video.src||r.errorUrls[s.code]),n.unbind("mouseenter click").removeClass("is-mouseover")}}).bind("mouseenter mouseleave",function(e){if(x)return;var t=e.type=="mouseenter",r;N(t),t?(n.bind("pause.x mousemove.x volume.x",function(){N(!0),r=new Date}),s=setInterval(function(){new Date-r>5e3&&(N(!1),r=new Date)},100)):(n.unbind(".x"),clearInterval(s))}).bind("mouseleave",function(){(g.dragging||S.dragging)&&n.addClass("is-mouseover").removeClass("is-mouseout")}).bind("click.player",function(n){if(e(n.target).is(".fp-ui, .fp-engine")||n.flash)return n.preventDefault(),t.toggle()}),r.poster&&n.css("backgroundImage","url("+r.poster+")");var k=n.css("backgroundColor"),L=n.css("backgroundImage")!="none"||k&&k!="rgba(0, 0, 0, 0)"&&k!="transparent";L&&!r.splash&&!r.autoplay&&t.bind("ready stop",function(){n.addClass("is-poster").one("ready progress",function(){n.removeClass("is-poster")})}),!L&&!i.firstframe&&n.css("backgroundColor","#555"),e(".fp-toggle, .fp-play",n).click(t.toggle),e.each(["mute","fullscreen","unload"],function(e,n){o(n).click(function(){t[n]()})}),m.bind("slide",function(e,n){t.seeking=!0,t.seek(n*t.video.duration)}),E.bind("slide",function(e,n){t.volume(n)}),o("time").click(function(t){e(this).toggleClass("is-inverted")}),N(x)});var b,w,E="is-help";e(document).bind("keydown.fp",function(t){var n=b,r=t.ctrlKey||t.metaKey||t.altKey,i=t.which,s=n&&n.conf;if(!n||!s.keyboard||n.disabled)return;if(e.inArray(i,[63,187,191,219])!=-1)return w.toggleClass(E),!1;if(i==27&&w.hasClass(E))return w.toggleClass(E),!1;if(!r&&n.ready){t.preventDefault();if(t.shiftKey){i==39?n.speed(!0):i==37&&n.speed(!1);return}if(i<58&&i>47)return n.seekTo(i-48);switch(i){case 38:case 75:n.volume(n.volumeLevel+.15);break;case 40:case 74:n.volume(n.volumeLevel-.15);break;case 39:case 76:n.seeking=!0,n.seek(!0);break;case 37:case 72:n.seeking=!0,n.seek(!1);break;case 190:n.seekTo();break;case 32:n.toggle();break;case 70:s.fullscreen&&n.fullscreen();break;case 77:n.mute();break;case 27:n[n.isFullscreen?"fullscreen":"unload"]()}}}),flowplayer(function(t,n){if(!t.conf.keyboard)return;n.bind("mouseenter mouseleave",function(e){b=!t.disabled&&e.type=="mouseenter"?t:0,b&&(w=n)}),n.append(' <div class="fp-help"> <a class="fp-close"></a> <div class="fp-help-section fp-help-basics"> <p><em>space</em>play / pause</p> <p><em>esc</em>stop</p> <p><em>f</em>fullscreen</p> <p><em>shift</em> + <em>←</em><em>→</em>slower / faster <small>(latest Chrome and Safari)</small></p> </div> <div class="fp-help-section"> <p><em>↑</em><em>↓</em>volume</p> <p><em>m</em>mute</p> </div> <div class="fp-help-section"> <p><em>←</em><em>→</em>seek</p> <p><em> . </em>seek to previous </p><p><em>1</em><em>2</em>…<em>6</em> seek to 10%, 20%, …60% </p> </div> </div> '),t.conf.tooltip&&e(".fp-ui",n).attr("title","Hit ? for help").on("mouseout.tip",function(){e(this).removeAttr("title").off("mouseout.tip")}),e(".fp-close",n).click(function(){n.toggleClass(E)})});var S=e.browser.mozilla?"moz":"webkit",x="fullscreen",T="fullscreen-exit",N,C=flowplayer.support.fullscreen;e(document).bind(S+"fullscreenchange",function(t){var n=e(document.webkitCurrentFullScreenElement||document.mozFullScreenElement);n.length?N=n.trigger(x,[n]):N.trigger(T,[N])}),flowplayer(function(t,n){if(!t.conf.fullscreen)return;var r=e(window),i={pos:0,play:!1},s;t.isFullscreen=!1,t.fullscreen=function(e){if(t.disabled)return;return e===undefined&&(e=!t.isFullscreen),e&&(s=r.scrollTop()),C?e?n[0][S+"RequestFullScreen"](flowplayer.support.fullscreen_keyboard?Element.ALLOW_KEYBOARD_INPUT:undefined):document[S+"CancelFullScreen"]():(t.engine==="flash"&&t.conf.rtmp&&(i={pos:t.video.time,play:t.playing}),t.trigger(e?x:T,[t])),t};var o;n.bind("mousedown.fs",function(){+(new Date)-o<150&&t.ready&&t.fullscreen(),o=+(new Date)}),t.bind(x,function(e){n.addClass("is-fullscreen"),t.isFullscreen=!0}).bind(T,function(e){n.removeClass("is-fullscreen"),t.isFullscreen=!1,r.scrollTop(s)}).bind("ready",function(){i.pos&&!isNaN(i.pos)&&setTimeout(function(){t.play(),t.seek(i.pos),i.play||setTimeout(function(){t.pause()},100),i={pos:0,play:!1}},250)})}),flowplayer(function(t,n){function s(){return e(r.query,n)}function o(){return e(r.query+"."+i,n)}var r=e.extend({active:"is-active",advance:!0,query:".fp-playlist a"},t.conf),i=r.active;t.play=function(e){return e===undefined?t.resume():typeof e!="number"?t.load.apply(null,arguments):s().eq(e).click(),t};if(s().length){n.on("click",r.query,function(n){var s=e(n.target).closest(r.query);s.is("."+i)?t.toggle():t.load(s.attr("href")),n.preventDefault()}),t.conf.loop=!1;var u=s().filter("[data-cuepoints]").length;t.bind("load",function(r,a,f){var l=o().removeClass(i),c=e("a[href*='"+f.src.replace(d,"")+".']",n).addClass(i),h=s(),p=h.index(c),v=p==h.length-1;n.removeClass("video"+h.index(l)).addClass("video"+p).toggleClass("last-video",v),f.index=p,f.is_last=v,u&&(t.cuepoints=c.data("cuepoints"))}).bind("unload.pl",function(){o().toggleClass(i)}),e.each(["next","prev"],function(r,i){t[i]=function(e){e&&e.preventDefault();var t=o()[i]();t.length||(t=s().filter(i=="next"?":first":":last")),t.click()},e(".fp-"+i,n).click(t[i])}),r.advance&&n.unbind("finish.pl").bind("finish.pl",function(){o().next().length||r.loop?t.next():(n.addClass("is-playing"),t.one("resume",function(){return t.next(),!1}))})}});var k=/ ?cue\d+ ?/;flowplayer(function(t,n){function i(e){n[0].className=n[0].className.replace(k," "),e>=0&&n.addClass("cue"+e)}var r=0;t.cuepoints=t.conf.cuepoints||[],t.bind("progress",function(e,s,o){if(r&&o-r<.015)return r=o;r=o;var u=t.cuepoints||[];for(var a=0,f;a<u.length;a++)f=u[a],1*f&&(f={time:f}),f.time<0&&(f.time=t.video.duration+f.time),f.index=a,Math.abs(f.time-o)<.125*t.currentSpeed&&(i(a),n.trigger("cuepoint",[t,f]))}).bind("unload seek",i),t.conf.generate_cuepoints&&t.bind("ready",function(){var r=t.cuepoints||[],i=t.video.duration,s=e(".fp-timeline",n).css("overflow","visible");e.each(r,function(n,r){var o=r.time||r;o<0&&(o=i+r);var u=e("<a/>").addClass("fp-cuepoint fp-cuepoint"+n).css("left",o/i*100+"%");u.appendTo(s).mousedown(function(){return t.seek(o),!1})})})}),flowplayer(function(t,n,r){function u(e){var t=e.split(":");return t.length==2&&t.unshift(0),t[0]*60*60+t[1]*60+parseFloat(t[2].replace(",","."))}var i=e("track",n),s=t.conf;if(flowplayer.support.subtitles){t.subtitles=i.length&&i[0].track;if(s.nativesubtitles&&s.engine=="html5")return}i.remove();var o=/^(([0-9]{2}:)?[0-9]{2}:[0-9]{2}[,.]{1}[0-9]{3}) --\> (([0-9]{2}:)?[0-9]{2}:[0-9]{2}[,.]{1}[0-9]{3})(.*)/;t.subtitles=[];var a=i.attr("src");if(!a)return;e.get(a,function(n){for(var r=0,i=n.split("\n"),s=i.length,a={},f,l,c,h;r<s;r++){l=o.exec(i[r]);if(l){f=i[r-1],c="<p>"+i[++r]+"</p><br/>";while(e.trim(i[++r])&&r<i.length)c+="<p>"+i[r]+"</p><br/>";a={title:f,startTime:u(l[1]),endTime:u(l[2]||l[3]),text:c},h={time:a.startTime,subtitle:a},t.subtitles.push(a),t.cuepoints.push(h),t.cuepoints.push({time:a.endTime,subtitleEnd:f}),a.startTime===0&&t.trigger("cuepoint",h)}}}).fail(function(){return t.trigger("error",{code:8,url:a}),!1});var f=e("<div class='fp-subtitle'/>",n).appendTo(n),l;t.bind("cuepoint",function(e,t,n){n.subtitle?(l=n.index,f.html(n.subtitle.text).addClass("fp-active")):n.subtitleEnd&&f.removeClass("fp-active")}).bind("seek",function(n,r,i){e.each(t.cuepoints||[],function(e,n){var r=n.subtitle;r&&l!=n.index&&(i>=n.time&&i<=r.endTime?t.trigger("cuepoint",n):f.removeClass("fp-active"))})})}),flowplayer(function(t,n){var r=t.conf.analytics,i=0,s=0;if(r){typeof _gat=="undefined"&&e.getScript("http://www.google-analytics.com/ga.js");function o(e){if(i&&typeof _gat!="undefined"){var s=_gat._getTracker(r),o=t.video;s._setAllowLinker(!0),s._trackEvent("Video / Seconds played",t.engine+"/"+o.type,n.attr("title")||o.src.split("/").slice(-1)[0].replace(d,""),Math.round(i/1e3)),i=0}}t.bind("load unload",o).bind("progress",function(){t.seeking||(i+=s?+(new Date)-s:0,s=+(new Date))}).bind("pause",function(){s=0}),e(window).unload(o)}}),flowplayer.support.touch&&flowplayer(function(t,n){var i=/Android/.test(r),s=/Silk/.test(r);flowplayer.support.volume||n.addClass("no-volume no-mute"),n.one("touchstart",function(){i&&t.toggle()}).bind("touchstart",function(e){if(t.playing&&!n.hasClass("is-mouseover"))return n.addClass("is-mouseover").removeClass("is-mouseout"),!1;t.paused&&n.hasClass("is-mouseout")&&t.toggle()}),t.conf.native_fullscreen&&e.browser.webkit&&(t.fullscreen=function(){e("video",n)[0].webkitEnterFullScreen()}),(i||s)&&t.bind("ready",function(){var r=e("video",n);r.one("canplay",function(){r[0].play()}),r[0].play(),t.bind("progress.dur",function(){var i=r[0].duration;i!==1&&(t.video.duration=i,e(".fp-duration",n).html(y(i)),t.unbind("progress.dur"))})})}),flowplayer(function(t,n){if(t.conf.embed===!1)return;var r=t.conf,i=e(".fp-ui",n),s=e("<a/>",{"class":"fp-embed",title:"Copy to your site"}).appendTo(i),o=e("<div/>",{"class":"fp-embed-code"}).append("<label>Paste this HTML code on your site to embed.</label><textarea/>").appendTo(i),u=e("textarea",o);t.embedCode=function(){var i=t.video,s=i.width||n.width(),o=i.height||n.height(),u=e("<div/>",{"class":"flowplayer",css:{width:s,height:o}}),a=e("<video/>").appendTo(u);e.each(["origin","analytics","logo","key","rtmp"],function(e,t){r[t]&&u.attr("data-"+t,r[t])}),e.each(i.sources,function(t,n){a.append(e("<source/>",{type:"video/"+n.type,src:n.src}))});var f=e("<foo/>",{src:"http://embed.flowplayer.org/5.3.2/embed.min.js"}).append(u);return e("<p/>").append(f).html().replace(/<(\/?)foo/g,"<$1script")},n.fptip(".fp-embed","is-embedding"),u.click(function(){this.select()}),s.click(function(){u.text(t.embedCode()),u[0].focus(),u[0].select()})}),e.fn.fptip=function(t,n){return this.each(function(){function i(){r.removeClass(n),e(document).unbind(".st")}var r=e(this);e(t||"a",this).click(function(t){t.preventDefault(),r.toggleClass(n),r.hasClass(n)&&e(document).bind("keydown.st",function(e){e.which==27&&i()}).bind("click.st",function(t){e(t.target).parents("."+n).length||i()})})})}}(jQuery),flowplayer(function(e,t){function n(e){var t=r("<a/>")[0];return t.href=e,t.hostname}var r=jQuery,i=e.conf,s=i.swf.indexOf("flowplayer.org")&&i.e&&i.origin,o=s?n(s):location.hostname,u=i.key;location.protocol=="file:"&&(o="localhost"),e.load.ed=1,i.hostname=o,i.origin=s||location.href,s&&t.addClass("is-embedded"),typeof u=="string"&&(u=u.split(/,\s*/));if(u&&typeof key_check=="function"&&key_check(u,o))i.logo&&t.append(r("<a>",{"class":"fp-logo",href:s,target:"_top"}).append(r("<img/>",{src:i.logo})));else{var a=r("<a/>",{href:"http://flowplayer.org",target:"_top"}).appendTo(t),f=r(".fp-controls",t);e.bind("pause resume finish unload",function(t){/pause|resume/.test(t.type)&&e.engine!="flash"?(a.show().css({position:"absolute",left:16,bottom:36,zIndex:99999,width:100,height:20,backgroundImage:"url("+[".png","logo","/",".org",".flowplayer","stream","//"].reverse().join("")+")"}),e.load.ed=a.is(":visible")):a.hide()})}});flowplayer(function(a,b){function j(a){var b=c("<a/>")[0];return b.href=a,b.hostname}var c=jQuery,d=a.conf,e=d.swf.indexOf("flowplayer.org")&&d.e&&d.origin,f=e?j(e):location.hostname,g=d.key;location.protocol=="file:"&&(f="localhost"),a.load.ed=1,d.hostname=f,d.origin=e||location.href,e&&b.addClass("is-embedded"),typeof g=="string"&&(g=g.split(/,\s*/));if(g&&typeof key_check=="function"&&key_check(g,f))d.logo&&b.append(c("<a>",{"class":"fp-logo",href:e,target:"_top"}).append(c("<img/>",{src:d.logo})));else{var h=c("<a/>",{href:"http://flowplayer.org",target:"_top"}).appendTo(b),i=c(".fp-controls",b);a.bind("pause resume finish unload",function(b){/pause|resume/.test(b.type)&&a.engine!="flash"?(h.show().css({position:"absolute",left:16,bottom:36,zIndex:99999,width:100,height:20,backgroundImage:"url("+[".png","logo","/",".org",".flowplayer","stream","//"].reverse().join("")+")"}),a.load.ed=h.is(":visible")):h.hide()})}});
\ No newline at end of file diff --git a/lib/flowplayer-html5/flowplayer.swf b/lib/flowplayer-html5/flowplayer.swf Binary files differdeleted file mode 100644 index fcb4d8fb..00000000 --- a/lib/flowplayer-html5/flowplayer.swf +++ /dev/null diff --git a/lib/flowplayer-html5/skin/all-skins.css b/lib/flowplayer-html5/skin/all-skins.css deleted file mode 100644 index 19141c33..00000000 --- a/lib/flowplayer-html5/skin/all-skins.css +++ /dev/null @@ -1,475 +0,0 @@ -.minimalist{position:relative;width:100%;text-align:left;background-size:contain;background-repeat:no-repeat;background-position:center center;display:inline-block;} -.minimalist *{font-weight:inherit;font-family:inherit;font-style:inherit;text-decoration:inherit;font-size:100%;padding:0;border:0;margin:0;list-style-type:none} -.minimalist a:focus{outline:0} -.minimalist video{width:100%} -.minimalist.is-ipad video{-webkit-transform:translateX(-2048px);} -.is-ready.minimalist.is-ipad video{-webkit-transform:translateX(0)} -.minimalist .fp-engine,.minimalist .fp-ui,.minimalist .fp-message{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer;z-index:1} -.minimalist .fp-message{display:none;text-align:center;padding-top:5%;cursor:default;} -.minimalist .fp-message h2{font-size:120%;margin-bottom:1em} -.minimalist .fp-message p{color:#666;font-size:95%} -.minimalist .fp-controls{position:absolute;bottom:0;width:100%;} -.no-background.minimalist .fp-controls{background-color:transparent !important;background-image:-moz-linear-gradient(transparent,transparent) !important;background-image:-webkit-gradient(linear,0 0,0 100%,from(transparent),to(transparent)) !important} -.is-fullscreen.minimalist .fp-controls{bottom:3px} -.is-mouseover.minimalist .fp-controls{bottom:0} -.minimalist .fp-waiting{display:none;margin:19% auto;text-align:center;} -.minimalist .fp-waiting *{-webkit-box-shadow:0 0 5px #333;-moz-box-shadow:0 0 5px #333;box-shadow:0 0 5px #333} -.minimalist .fp-waiting em{width:1em;height:1em;-webkit-border-radius:1em;-moz-border-radius:1em;border-radius:1em;background-color:rgba(255,255,255,0.8);display:inline-block;-webkit-animation:pulse .6s infinite;-moz-animation:pulse .6s infinite;animation:pulse .6s infinite;margin:.3em;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);} -.minimalist .fp-waiting em:nth-child(1){-webkit-animation-delay:.3s;-moz-animation-delay:.3s;animation-delay:.3s} -.minimalist .fp-waiting em:nth-child(2){-webkit-animation-delay:.45s;-moz-animation-delay:.45s;animation-delay:.45s} -.minimalist .fp-waiting em:nth-child(3){-webkit-animation-delay:.6s;-moz-animation-delay:.6s;animation-delay:.6s} -.minimalist .fp-waiting p{color:#ccc;font-weight:bold} -.minimalist .fp-speed{font-size:30px;background-color:#333;background-color:rgba(51,51,51,0.8);color:#eee;margin:0 auto;text-align:center;width:120px;padding:.1em 0 0;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .5s;-moz-transition:opacity .5s;transition:opacity .5s;} -.minimalist .fp-speed.fp-hilite{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.minimalist .fp-help{position:absolute;top:0;left:-9999em;z-index:100;background-color:#333;background-color:rgba(51,51,51,0.9);width:100%;height:100%;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .2s;-moz-transition:opacity .2s;transition:opacity .2s;text-align:center;} -.is-help.minimalist .fp-help{left:0;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.minimalist .fp-help .fp-help-section{margin:3%} -.minimalist .fp-help .fp-help-basics{margin-top:6%} -.minimalist .fp-help p{color:#eee;margin:.5em 0;font-size:14px;line-height:1.5;display:inline-block;margin:1% 2%} -.minimalist .fp-help em{background:#eee;-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em;margin-right:.4em;padding:.3em .6em;color:#333} -.minimalist .fp-help small{font-size:90%;color:#aaa} -.minimalist .fp-help .fp-close{display:block} -@media (max-width: 600px){.minimalist .fp-help p{font-size:9px} -}.minimalist .fp-subtitle{position:absolute;bottom:40px;left:-99999em;z-index:10;text-align:center;width:100%;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .3s;-moz-transition:opacity .3s;transition:opacity .3s;} -.minimalist .fp-subtitle p{display:inline;background-color:#333;background-color:rgba(51,51,51,0.9);color:#eee;padding:.1em .4em;font-size:16px;line-height:1.6;} -.minimalist .fp-subtitle p:after{content:'';clear:both} -.minimalist .fp-subtitle.fp-active{left:0;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.minimalist .fp-fullscreen,.minimalist .fp-unload,.minimalist .fp-mute,.minimalist .fp-embed,.minimalist .fp-close,.minimalist .fp-play{background-image:url(img/white.png);background-size:37px 300px;} -.color-light.minimalist .fp-fullscreen,.color-light.minimalist .fp-unload,.color-light.minimalist .fp-mute,.color-light.minimalist .fp-embed,.color-light.minimalist .fp-close,.color-light.minimalist .fp-play{background-image:url(img/black.png);} -@media (-webkit-min-device-pixel-ratio: 2){.color-light.minimalist .fp-fullscreen,.color-light.minimalist .fp-unload,.color-light.minimalist .fp-mute,.color-light.minimalist .fp-embed,.color-light.minimalist .fp-close,.color-light.minimalist .fp-play{background-image:url(img/black@x2.png)} -}@media (-webkit-min-device-pixel-ratio: 2){.minimalist .fp-fullscreen,.minimalist .fp-unload,.minimalist .fp-mute,.minimalist .fp-embed,.minimalist .fp-close,.minimalist .fp-play{background-image:url(img/white@x2.png)} -}.is-splash.minimalist .fp-ui,.is-paused.minimalist .fp-ui{background:url(img/play_white.png) center no-repeat;background-size:12%;} -@media (-webkit-min-device-pixel-ratio: 2){.is-splash.minimalist .fp-ui,.is-paused.minimalist .fp-ui{background:url(img/play_white@x2.png) center no-repeat;background-size:12%} -}.color-light.is-splash.minimalist .fp-ui,.color-light.is-paused.minimalist .fp-ui{background-image:url(img/play_black.png)} -@media (-webkit-min-device-pixel-ratio: 2){.color-light.is-splash.minimalist .fp-ui,.color-light.is-paused.minimalist .fp-ui{background-image:url(img/play_black@x2.png)} -}.is-fullscreen.minimalist .fp-ui{background-size:auto} -.is-seeking.minimalist .fp-ui,.is-loading.minimalist .fp-ui{background-image:none} -.minimalist .fp-logo{position:absolute;top:auto;left:15px;bottom:30px;cursor:pointer;display:none;z-index:100;} -.minimalist .fp-logo img{width:100%} -.is-embedded.minimalist .fp-logo{display:block} -.fixed-controls.minimalist .fp-logo{bottom:15px} -.minimalist .fp-fullscreen,.minimalist .fp-unload,.minimalist .fp-close{position:absolute;top:5px;left:auto;right:5px;display:block;width:30px;height:23px;background-position:12px -197px;cursor:pointer} -.minimalist .fp-unload,.minimalist .fp-close{background-position:14px -175px;display:none} -.minimalist .fp-play{display:none;width:27px;height:20px;background-position:9px -24px;position:absolute;bottom:0;left:0;} -.play-button.minimalist .fp-play{display:block} -.is-paused.minimalist .fp-play{background-position:9px 7px} -.minimalist.is-ready.is-closeable .fp-unload{display:block} -.minimalist.is-ready.is-closeable .fp-fullscreen{display:none} -.minimalist.is-fullscreen .fp-fullscreen{background-position:10px -217px;display:block !important} -.minimalist.is-fullscreen .fp-unload,.minimalist.is-fullscreen .fp-close{display:none !important} -.minimalist .fp-timeline{height:3px;position:relative;overflow:hidden;top:5px;height:10px;margin:0 150px 0 45px;} -.no-volume.minimalist .fp-timeline{margin-right:60px} -.no-mute.minimalist .fp-timeline{margin-right:45px} -.play-button.minimalist .fp-timeline{margin-left:67px} -.is-long.minimalist .fp-timeline{margin:0 180px 0 75px;} -.no-volume.is-long.minimalist .fp-timeline{margin-right:90px} -.no-mute.is-long.minimalist .fp-timeline{margin-right:75px} -.play-button.is-long.minimalist .fp-timeline{margin-left:97px} -.aside-time.minimalist .fp-timeline,.no-time.minimalist .fp-timeline{margin:0 110px 0 5px} -.aside-time.no-volume.minimalist .fp-timeline,.no-time.no-volume.minimalist .fp-timeline{margin-right:20px} -.aside-time.no-mute.minimalist .fp-timeline,.no-time.no-mute.minimalist .fp-timeline{margin-right:5px} -.play-button.no-time.minimalist .fp-timeline,.play-button.aside-time.minimalist .fp-timeline{margin-left:27px} -.minimalist .fp-buffer,.minimalist .fp-progress{position:absolute;top:0;left:auto;height:100%;cursor:col-resize} -.minimalist .fp-buffer{-webkit-transition:width .25s linear;-moz-transition:width .25s linear;transition:width .25s linear} -.minimalist .fp-volume{position:absolute;top:7.5px;right:5px} -.minimalist .fp-mute{width:10px;height:15px;float:left;position:relative;top:-5px;left:;cursor:pointer;background-position:-2px -99px;} -.no-mute.minimalist .fp-mute{display:none} -.minimalist .fp-volumeslider{width:90px;height:5px;cursor:col-resize;float:left;} -.no-volume.minimalist .fp-volumeslider{display:none} -.minimalist .fp-volumelevel{height:100%} -.minimalist .fp-time{text-shadow:0 0 1px #000;font-size:12px;font-weight:bold;color:#fff;width:100%;} -.minimalist .fp-time.is-inverted .fp-duration{display:none} -.minimalist .fp-time.is-inverted .fp-remaining{display:inline} -.minimalist .fp-time em{width:35px;height:10px;line-height:10px;text-align:center;position:absolute;bottom:5px} -.no-time.minimalist .fp-time{display:none} -.is-long.minimalist .fp-time em{width:65px} -.minimalist .fp-elapsed{left:5px;} -.play-button.minimalist .fp-elapsed{left:27px} -.minimalist .fp-remaining,.minimalist .fp-duration{right:110px;color:#eee;} -.no-volume.minimalist .fp-remaining,.no-volume.minimalist .fp-duration{right:20px} -.no-mute.minimalist .fp-remaining,.no-mute.minimalist .fp-duration{right:5px} -.minimalist .fp-remaining{display:none} -.minimalist.color-light .fp-time{color:#222;text-shadow:0 0 1px #fff} -.minimalist.color-light .fp-remaining,.minimalist.color-light .fp-duration{color:#666} -.minimalist.aside-time .fp-time{position:absolute;top:5px;left:5px;bottom:auto !important;width:85px;} -.minimalist.aside-time .fp-time strong,.minimalist.aside-time .fp-time em{position:static} -.minimalist.aside-time .fp-time .fp-elapsed{margin-right:5px} -.minimalist.is-long.aside-time .fp-time{width:130px} -.minimalist.is-splash,.minimalist.is-poster{cursor:pointer;} -.minimalist.is-splash .fp-controls,.minimalist.is-poster .fp-controls,.minimalist.is-splash .fp-fullscreen,.minimalist.is-poster .fp-fullscreen,.minimalist.is-splash .fp-unload,.minimalist.is-poster .fp-unload,.minimalist.is-splash .fp-time,.minimalist.is-poster .fp-time,.minimalist.is-splash .fp-embed,.minimalist.is-poster .fp-embed{display:none !important} -.minimalist.is-poster .fp-engine{top:-9999em} -.minimalist.is-loading .fp-waiting{display:block} -.minimalist.is-loading .fp-controls,.minimalist.is-loading .fp-time{display:none} -.minimalist.is-loading .fp-ui{background-position:-9999em} -.minimalist.is-seeking .fp-waiting{display:block} -.minimalist.is-fullscreen{position:fixed !important;top:0 !important;left:0 !important;border:0 !important;margin:0 !important;width:100% !important;height:100% !important;max-width:100% !important;z-index:99999 !important;-webkit-box-shadow:0 !important;-moz-box-shadow:0 !important;box-shadow:0 !important;background-image:none !important;background-color:#333} -.minimalist.is-error{border:1px solid #909090;background:#fdfdfd !important;} -.minimalist.is-error h2{font-weight:bold;font-size:large;margin-top:10%} -.minimalist.is-error .fp-message{display:block} -.minimalist.is-error object,.minimalist.is-error video,.minimalist.is-error .fp-controls,.minimalist.is-error .fp-time,.minimalist.is-error .fp-subtitle{display:none} -.minimalist.is-ready.is-muted .fp-mute{opacity:.5;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=50)} -.minimalist.is-mouseout .fp-controls{height:0;-webkit-transition:height .15s .3s;-moz-transition:height .15s .3s;transition:height .15s .3s} -.minimalist.is-mouseout .fp-timeline{margin:0 !important} -.minimalist.is-mouseout .fp-timeline{-webkit-transition:height .15s .3s,top .15s .3s,margin .15s .3s;-moz-transition:height .15s .3s,top .15s .3s,margin .15s .3s;transition:height .15s .3s,top .15s .3s,margin .15s .3s;height:4px;top:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0} -.minimalist.is-mouseout .fp-fullscreen,.minimalist.is-mouseout .fp-unload,.minimalist.is-mouseout .fp-elapsed,.minimalist.is-mouseout .fp-remaining,.minimalist.is-mouseout .fp-duration,.minimalist.is-mouseout .fp-embed,.minimalist.is-mouseout .fp-volume,.minimalist.is-mouseout .fp-play{opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .15s .3s;-moz-transition:opacity .15s .3s;transition:opacity .15s .3s} -.minimalist.is-mouseover .fp-controls,.minimalist.fixed-controls .fp-controls{height:20px} -.minimalist.is-mouseover .fp-fullscreen,.minimalist.fixed-controls .fp-fullscreen,.minimalist.is-mouseover .fp-unload,.minimalist.fixed-controls .fp-unload,.minimalist.is-mouseover .fp-elapsed,.minimalist.fixed-controls .fp-elapsed,.minimalist.is-mouseover .fp-remaining,.minimalist.fixed-controls .fp-remaining,.minimalist.is-mouseover .fp-duration,.minimalist.fixed-controls .fp-duration,.minimalist.is-mouseover .fp-embed,.minimalist.fixed-controls .fp-embed,.minimalist.is-mouseover .fp-logo,.minimalist.fixed-controls .fp-logo,.minimalist.is-mouseover .fp-volume,.minimalist.fixed-controls .fp-volume,.minimalist.is-mouseover .fp-play,.minimalist.fixed-controls .fp-play{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.minimalist.fixed-controls .fp-volume{display:block} -.minimalist.fixed-controls .fp-controls{bottom:-20px;} -.is-fullscreen.minimalist.fixed-controls .fp-controls{bottom:0} -.minimalist.fixed-controls .fp-time em{bottom:-15px;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);} -.is-fullscreen.minimalist.fixed-controls .fp-time em{bottom:5px} -.minimalist.is-disabled .fp-progress{background-color:#999} -.minimalist .fp-embed{position:absolute;top:5px;left:5px;display:block;width:25px;height:20px;background-position:3px -237px} -.minimalist .fp-embed-code{position:absolute;display:none;top:10px;left:40px;background-color:#333;padding:3px 5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 0 3px #ccc;-moz-box-shadow:0 0 3px #ccc;box-shadow:0 0 3px #ccc;font-size:12px;} -.minimalist .fp-embed-code:before{content:'';width:0;height:0;position:absolute;top:2px;left:-10px;border:5px solid transparent;border-right-color:#333} -.minimalist .fp-embed-code textarea{width:400px;height:16px;font-family:monaco,"courier new",verdana;color:#777;white-space:nowrap;resize:none;overflow:hidden;border:0;outline:0;background-color:transparent;color:#ccc} -.minimalist .fp-embed-code label{display:block;color:#999} -.minimalist.is-embedding .fp-embed,.minimalist.is-embedding .fp-embed-code{display:block;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.minimalist.aside-time .fp-embed{left:85px} -.minimalist.aside-time .fp-embed-code{left:115px} -.minimalist.aside-time.is-embedding .fp-time{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.minimalist.is-long.aside-time .fp-embed{left:130px} -.minimalist.no-time .fp-embed{left:5px !important} -@-moz-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@-webkit-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@-o-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@-ms-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@keyframes pulse{0%{opacity:0} -100%{opacity:1} -}.minimalist .fp-controls{background-color:#333;background-color:rgba(51,51,51,0.6)} -.minimalist.fixed-controls .fp-controls{background-color:#333} -.minimalist .fp-timeline{background-color:#666} -.minimalist .fp-buffer{background-color:#eee} -.minimalist .fp-progress{background-color:#00a7c8} -.minimalist .fp-volumeslider{background-color:#000} -.minimalist .fp-volumelevel{background-color:#fff} -.minimalist .fp-play{height:24px} -.minimalist.color-light .fp-controls{background-color:rgba(255,255,255,0.6)} -.minimalist.color-light.fixed-controls .fp-controls{background-color:#fff} -.minimalist.color-light .fp-volumeslider{background-color:#ddd} -.minimalist.color-light .fp-volumelevel{background-color:#222} -.minimalist.color-alt .fp-progress{background-color:#fff} -.minimalist.color-alt .fp-buffer{background-color:#999} -.minimalist.color-alt2 .fp-progress{background-color:#900} -.functional{position:relative;width:100%;text-align:left;background-size:contain;background-repeat:no-repeat;background-position:center center;display:inline-block;} -.functional *{font-weight:inherit;font-family:inherit;font-style:inherit;text-decoration:inherit;font-size:100%;padding:0;border:0;margin:0;list-style-type:none} -.functional a:focus{outline:0} -.functional video{width:100%} -.functional.is-ipad video{-webkit-transform:translateX(-2048px);} -.is-ready.functional.is-ipad video{-webkit-transform:translateX(0)} -.functional .fp-engine,.functional .fp-ui,.functional .fp-message{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer;z-index:1} -.functional .fp-message{display:none;text-align:center;padding-top:5%;cursor:default;} -.functional .fp-message h2{font-size:120%;margin-bottom:1em} -.functional .fp-message p{color:#666;font-size:95%} -.functional .fp-controls{position:absolute;bottom:0;width:100%;} -.no-background.functional .fp-controls{background-color:transparent !important;background-image:-moz-linear-gradient(transparent,transparent) !important;background-image:-webkit-gradient(linear,0 0,0 100%,from(transparent),to(transparent)) !important} -.is-fullscreen.functional .fp-controls{bottom:3px} -.is-mouseover.functional .fp-controls{bottom:0} -.functional .fp-waiting{display:none;margin:19% auto;text-align:center;} -.functional .fp-waiting *{-webkit-box-shadow:0 0 5px #333;-moz-box-shadow:0 0 5px #333;box-shadow:0 0 5px #333} -.functional .fp-waiting em{width:1em;height:1em;-webkit-border-radius:1em;-moz-border-radius:1em;border-radius:1em;background-color:rgba(255,255,255,0.8);display:inline-block;-webkit-animation:pulse .6s infinite;-moz-animation:pulse .6s infinite;animation:pulse .6s infinite;margin:.3em;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);} -.functional .fp-waiting em:nth-child(1){-webkit-animation-delay:.3s;-moz-animation-delay:.3s;animation-delay:.3s} -.functional .fp-waiting em:nth-child(2){-webkit-animation-delay:.45s;-moz-animation-delay:.45s;animation-delay:.45s} -.functional .fp-waiting em:nth-child(3){-webkit-animation-delay:.6s;-moz-animation-delay:.6s;animation-delay:.6s} -.functional .fp-waiting p{color:#ccc;font-weight:bold} -.functional .fp-speed{font-size:30px;background-color:#333;background-color:rgba(51,51,51,0.8);color:#eee;margin:0 auto;text-align:center;width:120px;padding:.1em 0 0;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .5s;-moz-transition:opacity .5s;transition:opacity .5s;} -.functional .fp-speed.fp-hilite{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.functional .fp-help{position:absolute;top:0;left:-9999em;z-index:100;background-color:#333;background-color:rgba(51,51,51,0.9);width:100%;height:100%;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .2s;-moz-transition:opacity .2s;transition:opacity .2s;text-align:center;} -.is-help.functional .fp-help{left:0;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.functional .fp-help .fp-help-section{margin:3%} -.functional .fp-help .fp-help-basics{margin-top:6%} -.functional .fp-help p{color:#eee;margin:.5em 0;font-size:14px;line-height:1.5;display:inline-block;margin:1% 2%} -.functional .fp-help em{background:#eee;-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em;margin-right:.4em;padding:.3em .6em;color:#333} -.functional .fp-help small{font-size:90%;color:#aaa} -.functional .fp-help .fp-close{display:block} -@media (max-width: 600px){.functional .fp-help p{font-size:9px} -}.functional .fp-subtitle{position:absolute;bottom:40px;left:-99999em;z-index:10;text-align:center;width:100%;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .3s;-moz-transition:opacity .3s;transition:opacity .3s;} -.functional .fp-subtitle p{display:inline;background-color:#333;background-color:rgba(51,51,51,0.9);color:#eee;padding:.1em .4em;font-size:16px;line-height:1.6;} -.functional .fp-subtitle p:after{content:'';clear:both} -.functional .fp-subtitle.fp-active{left:0;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.functional .fp-fullscreen,.functional .fp-unload,.functional .fp-mute,.functional .fp-embed,.functional .fp-close,.functional .fp-play{background-image:url(img/white.png);background-size:37px 300px;} -.color-light.functional .fp-fullscreen,.color-light.functional .fp-unload,.color-light.functional .fp-mute,.color-light.functional .fp-embed,.color-light.functional .fp-close,.color-light.functional .fp-play{background-image:url(img/black.png);} -@media (-webkit-min-device-pixel-ratio: 2){.color-light.functional .fp-fullscreen,.color-light.functional .fp-unload,.color-light.functional .fp-mute,.color-light.functional .fp-embed,.color-light.functional .fp-close,.color-light.functional .fp-play{background-image:url(img/black@x2.png)} -}@media (-webkit-min-device-pixel-ratio: 2){.functional .fp-fullscreen,.functional .fp-unload,.functional .fp-mute,.functional .fp-embed,.functional .fp-close,.functional .fp-play{background-image:url(img/white@x2.png)} -}.is-splash.functional .fp-ui,.is-paused.functional .fp-ui{background:url(img/play_white.png) center no-repeat;background-size:12%;} -@media (-webkit-min-device-pixel-ratio: 2){.is-splash.functional .fp-ui,.is-paused.functional .fp-ui{background:url(img/play_white@x2.png) center no-repeat;background-size:12%} -}.color-light.is-splash.functional .fp-ui,.color-light.is-paused.functional .fp-ui{background-image:url(img/play_black.png)} -@media (-webkit-min-device-pixel-ratio: 2){.color-light.is-splash.functional .fp-ui,.color-light.is-paused.functional .fp-ui{background-image:url(img/play_black@x2.png)} -}.is-fullscreen.functional .fp-ui{background-size:auto} -.is-seeking.functional .fp-ui,.is-loading.functional .fp-ui{background-image:none} -.functional .fp-logo{position:absolute;top:auto;left:15px;bottom:40px;cursor:pointer;display:none;z-index:100;} -.functional .fp-logo img{width:100%} -.is-embedded.functional .fp-logo{display:block} -.fixed-controls.functional .fp-logo{bottom:15px} -.functional .fp-fullscreen,.functional .fp-unload,.functional .fp-close{position:absolute;top:10px;left:auto;right:10px;display:block;width:30px;height:23px;background-position:12px -197px;cursor:pointer} -.functional .fp-unload,.functional .fp-close{background-position:14px -175px;display:none} -.functional .fp-play{display:none;width:27px;height:30px;background-position:9px -24px;position:absolute;bottom:0;left:0;} -.play-button.functional .fp-play{display:block} -.is-paused.functional .fp-play{background-position:9px 7px} -.functional.is-ready.is-closeable .fp-unload{display:block} -.functional.is-ready.is-closeable .fp-fullscreen{display:none} -.functional.is-fullscreen .fp-fullscreen{background-position:10px -217px;display:block !important} -.functional.is-fullscreen .fp-unload,.functional.is-fullscreen .fp-close{display:none !important} -.functional .fp-timeline{height:3px;position:relative;overflow:hidden;top:10px;height:10px;margin:0 165px 0 55px;} -.no-volume.functional .fp-timeline{margin-right:75px} -.no-mute.functional .fp-timeline{margin-right:55px} -.play-button.functional .fp-timeline{margin-left:72px} -.is-long.functional .fp-timeline{margin:0 195px 0 85px;} -.no-volume.is-long.functional .fp-timeline{margin-right:105px} -.no-mute.is-long.functional .fp-timeline{margin-right:85px} -.play-button.is-long.functional .fp-timeline{margin-left:102px} -.aside-time.functional .fp-timeline,.no-time.functional .fp-timeline{margin:0 120px 0 10px} -.aside-time.no-volume.functional .fp-timeline,.no-time.no-volume.functional .fp-timeline{margin-right:30px} -.aside-time.no-mute.functional .fp-timeline,.no-time.no-mute.functional .fp-timeline{margin-right:10px} -.play-button.no-time.functional .fp-timeline,.play-button.aside-time.functional .fp-timeline{margin-left:27px} -.functional .fp-buffer,.functional .fp-progress{position:absolute;top:0;left:auto;height:100%;cursor:col-resize} -.functional .fp-buffer{-webkit-transition:width .25s linear;-moz-transition:width .25s linear;transition:width .25s linear} -.functional .fp-volume{position:absolute;top:11px;right:10px} -.functional .fp-mute{width:10px;height:15px;float:left;position:relative;top:-3.5px;left:;cursor:pointer;background-position:-2px -99px;} -.no-mute.functional .fp-mute{display:none} -.functional .fp-volumeslider{width:90px;height:8px;cursor:col-resize;float:left;} -.no-volume.functional .fp-volumeslider{display:none} -.functional .fp-volumelevel{height:100%} -.functional .fp-time{text-shadow:0 0 1px #000;font-size:12px;font-weight:bold;color:#fff;width:100%;} -.functional .fp-time.is-inverted .fp-duration{display:none} -.functional .fp-time.is-inverted .fp-remaining{display:inline} -.functional .fp-time em{width:35px;height:10px;line-height:10px;text-align:center;position:absolute;bottom:10px} -.no-time.functional .fp-time{display:none} -.is-long.functional .fp-time em{width:65px} -.functional .fp-elapsed{left:10px;} -.play-button.functional .fp-elapsed{left:27px} -.functional .fp-remaining,.functional .fp-duration{right:120px;color:#eee;} -.no-volume.functional .fp-remaining,.no-volume.functional .fp-duration{right:30px} -.no-mute.functional .fp-remaining,.no-mute.functional .fp-duration{right:10px} -.functional .fp-remaining{display:none} -.functional.color-light .fp-time{color:#222;text-shadow:0 0 1px #fff} -.functional.color-light .fp-remaining,.functional.color-light .fp-duration{color:#666} -.functional.aside-time .fp-time{position:absolute;top:10px;left:10px;bottom:auto !important;width:100px;} -.functional.aside-time .fp-time strong,.functional.aside-time .fp-time em{position:static} -.functional.aside-time .fp-time .fp-elapsed{margin-right:10px} -.functional.is-long.aside-time .fp-time{width:130px} -.functional.is-splash,.functional.is-poster{cursor:pointer;} -.functional.is-splash .fp-controls,.functional.is-poster .fp-controls,.functional.is-splash .fp-fullscreen,.functional.is-poster .fp-fullscreen,.functional.is-splash .fp-unload,.functional.is-poster .fp-unload,.functional.is-splash .fp-time,.functional.is-poster .fp-time,.functional.is-splash .fp-embed,.functional.is-poster .fp-embed{display:none !important} -.functional.is-poster .fp-engine{top:-9999em} -.functional.is-loading .fp-waiting{display:block} -.functional.is-loading .fp-controls,.functional.is-loading .fp-time{display:none} -.functional.is-loading .fp-ui{background-position:-9999em} -.functional.is-seeking .fp-waiting{display:block} -.functional.is-fullscreen{position:fixed !important;top:0 !important;left:0 !important;border:0 !important;margin:0 !important;width:100% !important;height:100% !important;max-width:100% !important;z-index:99999 !important;-webkit-box-shadow:0 !important;-moz-box-shadow:0 !important;box-shadow:0 !important;background-image:none !important;background-color:#333} -.functional.is-error{border:1px solid #909090;background:#fdfdfd !important;} -.functional.is-error h2{font-weight:bold;font-size:large;margin-top:10%} -.functional.is-error .fp-message{display:block} -.functional.is-error object,.functional.is-error video,.functional.is-error .fp-controls,.functional.is-error .fp-time,.functional.is-error .fp-subtitle{display:none} -.functional.is-ready.is-muted .fp-mute{opacity:.5;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=50)} -.functional.is-mouseout .fp-controls{height:0;-webkit-transition:height .15s .3s;-moz-transition:height .15s .3s;transition:height .15s .3s} -.functional.is-mouseout .fp-timeline{margin:0 !important} -.functional.is-mouseout .fp-timeline{-webkit-transition:height .15s .3s,top .15s .3s,margin .15s .3s;-moz-transition:height .15s .3s,top .15s .3s,margin .15s .3s;transition:height .15s .3s,top .15s .3s,margin .15s .3s;height:4px;top:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0} -.functional.is-mouseout .fp-fullscreen,.functional.is-mouseout .fp-unload,.functional.is-mouseout .fp-elapsed,.functional.is-mouseout .fp-remaining,.functional.is-mouseout .fp-duration,.functional.is-mouseout .fp-embed,.functional.is-mouseout .fp-volume,.functional.is-mouseout .fp-play{opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .15s .3s;-moz-transition:opacity .15s .3s;transition:opacity .15s .3s} -.functional.is-mouseover .fp-controls,.functional.fixed-controls .fp-controls{height:30px} -.functional.is-mouseover .fp-fullscreen,.functional.fixed-controls .fp-fullscreen,.functional.is-mouseover .fp-unload,.functional.fixed-controls .fp-unload,.functional.is-mouseover .fp-elapsed,.functional.fixed-controls .fp-elapsed,.functional.is-mouseover .fp-remaining,.functional.fixed-controls .fp-remaining,.functional.is-mouseover .fp-duration,.functional.fixed-controls .fp-duration,.functional.is-mouseover .fp-embed,.functional.fixed-controls .fp-embed,.functional.is-mouseover .fp-logo,.functional.fixed-controls .fp-logo,.functional.is-mouseover .fp-volume,.functional.fixed-controls .fp-volume,.functional.is-mouseover .fp-play,.functional.fixed-controls .fp-play{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.functional.fixed-controls .fp-volume{display:block} -.functional.fixed-controls .fp-controls{bottom:-30px;} -.is-fullscreen.functional.fixed-controls .fp-controls{bottom:0} -.functional.fixed-controls .fp-time em{bottom:-20px;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);} -.is-fullscreen.functional.fixed-controls .fp-time em{bottom:10px} -.functional.is-disabled .fp-progress{background-color:#999} -.functional .fp-embed{position:absolute;top:10px;left:10px;display:block;width:25px;height:20px;background-position:3px -237px} -.functional .fp-embed-code{position:absolute;display:none;top:10px;left:40px;background-color:#333;padding:3px 5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 0 3px #ccc;-moz-box-shadow:0 0 3px #ccc;box-shadow:0 0 3px #ccc;font-size:12px;} -.functional .fp-embed-code:before{content:'';width:0;height:0;position:absolute;top:2px;left:-10px;border:5px solid transparent;border-right-color:#333} -.functional .fp-embed-code textarea{width:400px;height:16px;font-family:monaco,"courier new",verdana;color:#777;white-space:nowrap;resize:none;overflow:hidden;border:0;outline:0;background-color:transparent;color:#ccc} -.functional .fp-embed-code label{display:block;color:#999} -.functional.is-embedding .fp-embed,.functional.is-embedding .fp-embed-code{display:block;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.functional.aside-time .fp-embed{left:100px} -.functional.aside-time .fp-embed-code{left:130px} -.functional.aside-time.is-embedding .fp-time{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.functional.is-long.aside-time .fp-embed{left:130px} -.functional.no-time .fp-embed{left:10px !important} -@-moz-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@-webkit-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@-o-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@-ms-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@keyframes pulse{0%{opacity:0} -100%{opacity:1} -}.functional .fp-controls{background-color:#111} -.functional .fp-timeline{background-color:#555} -.functional .fp-buffer{background-color:#eee} -.functional .fp-progress{background-color:#4da5d8} -.functional .fp-volumelevel{background-color:#fff} -.functional .fp-volumeslider{background-color:#555} -.functional .fp-timeline,.functional .fp-volumeslider{border:1px inset;border-color:rgba(0,0,0,0.2) rgba(17,17,17,0.05)} -.functional .fp-controls,.functional .fp-progress{background-image:-moz-linear-gradient(rgba(255,255,255,0.4),rgba(255,255,255,0.01));background-image:-webkit-gradient(linear,0 0,0 100%,from(rgba(255,255,255,0.4)),to(rgba(255,255,255,0.01)))} -.functional .fp-timeline,.functional .fp-buffer,.functional .fp-progress,.functional .fp-volumeslider,.functional .fp-volumelevel{-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px} -.functional.color-light .fp-controls{background-color:#eee;background-image:-moz-linear-gradient(rgba(0,0,0,0.01),rgba(0,0,0,0.3));background-image:-webkit-gradient(linear,0 0,0 100%,from(rgba(0,0,0,0.01)),to(rgba(0,0,0,0.3)))} -.functional.color-light .fp-timeline,.functional.color-light .fp-volumeslider{border-color:#eee #ccc} -.functional.color-light .fp-timeline,.functional.color-light .fp-volumeslider{background-color:#ccc;font-size:10px} -.functional.color-alt .fp-progress{background-image:-moz-linear-gradient(#999,#111);background-image:-webkit-gradient(linear,0 0,0 100%,from(#999),to(#111))} -.functional.color-alt .fp-timeline,.functional.color-alt .fp-volumeslider{background-color:#111} -.functional.color-alt2 .fp-progress{background-color:#900} -.playful{position:relative;width:100%;text-align:left;background-size:contain;background-repeat:no-repeat;background-position:center center;display:inline-block;} -.playful *{font-weight:inherit;font-family:inherit;font-style:inherit;text-decoration:inherit;font-size:100%;padding:0;border:0;margin:0;list-style-type:none} -.playful a:focus{outline:0} -.playful video{width:100%} -.playful.is-ipad video{-webkit-transform:translateX(-2048px);} -.is-ready.playful.is-ipad video{-webkit-transform:translateX(0)} -.playful .fp-engine,.playful .fp-ui,.playful .fp-message{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer;z-index:1} -.playful .fp-message{display:none;text-align:center;padding-top:5%;cursor:default;} -.playful .fp-message h2{font-size:120%;margin-bottom:1em} -.playful .fp-message p{color:#666;font-size:95%} -.playful .fp-controls{position:absolute;bottom:0;width:100%;} -.no-background.playful .fp-controls{background-color:transparent !important;background-image:-moz-linear-gradient(transparent,transparent) !important;background-image:-webkit-gradient(linear,0 0,0 100%,from(transparent),to(transparent)) !important} -.is-fullscreen.playful .fp-controls{bottom:3px} -.is-mouseover.playful .fp-controls{bottom:0} -.playful .fp-waiting{display:none;margin:19% auto;text-align:center;} -.playful .fp-waiting *{-webkit-box-shadow:0 0 5px #333;-moz-box-shadow:0 0 5px #333;box-shadow:0 0 5px #333} -.playful .fp-waiting em{width:1em;height:1em;-webkit-border-radius:1em;-moz-border-radius:1em;border-radius:1em;background-color:rgba(255,255,255,0.8);display:inline-block;-webkit-animation:pulse .6s infinite;-moz-animation:pulse .6s infinite;animation:pulse .6s infinite;margin:.3em;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);} -.playful .fp-waiting em:nth-child(1){-webkit-animation-delay:.3s;-moz-animation-delay:.3s;animation-delay:.3s} -.playful .fp-waiting em:nth-child(2){-webkit-animation-delay:.45s;-moz-animation-delay:.45s;animation-delay:.45s} -.playful .fp-waiting em:nth-child(3){-webkit-animation-delay:.6s;-moz-animation-delay:.6s;animation-delay:.6s} -.playful .fp-waiting p{color:#ccc;font-weight:bold} -.playful .fp-speed{font-size:30px;background-color:#333;background-color:rgba(51,51,51,0.8);color:#eee;margin:0 auto;text-align:center;width:120px;padding:.1em 0 0;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .5s;-moz-transition:opacity .5s;transition:opacity .5s;} -.playful .fp-speed.fp-hilite{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.playful .fp-help{position:absolute;top:0;left:-9999em;z-index:100;background-color:#333;background-color:rgba(51,51,51,0.9);width:100%;height:100%;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .2s;-moz-transition:opacity .2s;transition:opacity .2s;text-align:center;} -.is-help.playful .fp-help{left:0;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.playful .fp-help .fp-help-section{margin:3%} -.playful .fp-help .fp-help-basics{margin-top:6%} -.playful .fp-help p{color:#eee;margin:.5em 0;font-size:14px;line-height:1.5;display:inline-block;margin:1% 2%} -.playful .fp-help em{background:#eee;-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em;margin-right:.4em;padding:.3em .6em;color:#333} -.playful .fp-help small{font-size:90%;color:#aaa} -.playful .fp-help .fp-close{display:block} -@media (max-width: 600px){.playful .fp-help p{font-size:9px} -}.playful .fp-subtitle{position:absolute;bottom:40px;left:-99999em;z-index:10;text-align:center;width:100%;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .3s;-moz-transition:opacity .3s;transition:opacity .3s;} -.playful .fp-subtitle p{display:inline;background-color:#333;background-color:rgba(51,51,51,0.9);color:#eee;padding:.1em .4em;font-size:16px;line-height:1.6;} -.playful .fp-subtitle p:after{content:'';clear:both} -.playful .fp-subtitle.fp-active{left:0;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.playful .fp-fullscreen,.playful .fp-unload,.playful .fp-mute,.playful .fp-embed,.playful .fp-close,.playful .fp-play{background-image:url(img/playful_white.png);background-size:37px 300px;} -.color-light.playful .fp-fullscreen,.color-light.playful .fp-unload,.color-light.playful .fp-mute,.color-light.playful .fp-embed,.color-light.playful .fp-close,.color-light.playful .fp-play{background-image:url(img/playful_black.png);} -@media (-webkit-min-device-pixel-ratio: 2){.color-light.playful .fp-fullscreen,.color-light.playful .fp-unload,.color-light.playful .fp-mute,.color-light.playful .fp-embed,.color-light.playful .fp-close,.color-light.playful .fp-play{background-image:url(img/playful_black@x2.png)} -}@media (-webkit-min-device-pixel-ratio: 2){.playful .fp-fullscreen,.playful .fp-unload,.playful .fp-mute,.playful .fp-embed,.playful .fp-close,.playful .fp-play{background-image:url(img/playful_white@x2.png)} -}.is-splash.playful .fp-ui,.is-paused.playful .fp-ui{background:url(img/play_white.png) center no-repeat;background-size:12%;} -@media (-webkit-min-device-pixel-ratio: 2){.is-splash.playful .fp-ui,.is-paused.playful .fp-ui{background:url(img/play_white@x2.png) center no-repeat;background-size:12%} -}.color-light.is-splash.playful .fp-ui,.color-light.is-paused.playful .fp-ui{background-image:url(img/play_black.png)} -@media (-webkit-min-device-pixel-ratio: 2){.color-light.is-splash.playful .fp-ui,.color-light.is-paused.playful .fp-ui{background-image:url(img/play_black@x2.png)} -}.is-fullscreen.playful .fp-ui{background-size:auto} -.is-seeking.playful .fp-ui,.is-loading.playful .fp-ui{background-image:none} -.playful .fp-logo{position:absolute;top:auto;left:15px;bottom:45px;cursor:pointer;display:none;z-index:100;} -.playful .fp-logo img{width:100%} -.is-embedded.playful .fp-logo{display:block} -.fixed-controls.playful .fp-logo{bottom:15px} -.playful .fp-fullscreen,.playful .fp-unload,.playful .fp-close{position:absolute;top:12px;left:auto;right:12px;display:block;width:30px;height:23px;background-position:12px -197px;cursor:pointer} -.playful .fp-unload,.playful .fp-close{background-position:14px -175px;display:none} -.playful .fp-play{display:none;width:27px;height:35px;background-position:9px -24px;position:absolute;bottom:0;left:0;} -.play-button.playful .fp-play{display:block} -.is-paused.playful .fp-play{background-position:9px 7px} -.playful.is-ready.is-closeable .fp-unload{display:block} -.playful.is-ready.is-closeable .fp-fullscreen{display:none} -.playful.is-fullscreen .fp-fullscreen{background-position:10px -217px;display:block !important} -.playful.is-fullscreen .fp-unload,.playful.is-fullscreen .fp-close{display:none !important} -.playful .fp-timeline{height:3px;position:relative;overflow:hidden;top:12px;height:11px;margin:0 199px 0 59px;} -.no-volume.playful .fp-timeline{margin-right:109px} -.no-mute.playful .fp-timeline{margin-right:59px} -.play-button.playful .fp-timeline{margin-left:74px} -.is-long.playful .fp-timeline{margin:0 229px 0 89px;} -.no-volume.is-long.playful .fp-timeline{margin-right:139px} -.no-mute.is-long.playful .fp-timeline{margin-right:89px} -.play-button.is-long.playful .fp-timeline{margin-left:104px} -.aside-time.playful .fp-timeline,.no-time.playful .fp-timeline{margin:0 152px 0 12px} -.aside-time.no-volume.playful .fp-timeline,.no-time.no-volume.playful .fp-timeline{margin-right:62px} -.aside-time.no-mute.playful .fp-timeline,.no-time.no-mute.playful .fp-timeline{margin-right:12px} -.play-button.no-time.playful .fp-timeline,.play-button.aside-time.playful .fp-timeline{margin-left:27px} -.playful .fp-buffer,.playful .fp-progress{position:absolute;top:0;left:auto;height:100%;cursor:col-resize} -.playful .fp-buffer{-webkit-transition:width .25s linear;-moz-transition:width .25s linear;transition:width .25s linear} -.playful .fp-volume{position:absolute;top:12px;right:12px} -.playful .fp-mute{width:38px;height:20px;float:left;position:relative;top:-4.5px;left:;cursor:pointer;background-position:-2px -99px;} -.no-mute.playful .fp-mute{display:none} -.playful .fp-volumeslider{width:90px;height:11px;cursor:col-resize;float:left;} -.no-volume.playful .fp-volumeslider{display:none} -.playful .fp-volumelevel{height:100%} -.playful .fp-time{text-shadow:0 0 1px #000;font-size:12px;font-weight:bold;color:#fff;width:100%;} -.playful .fp-time.is-inverted .fp-duration{display:none} -.playful .fp-time.is-inverted .fp-remaining{display:inline} -.playful .fp-time em{width:35px;height:11px;line-height:11px;text-align:center;position:absolute;bottom:12px} -.no-time.playful .fp-time{display:none} -.is-long.playful .fp-time em{width:65px} -.playful .fp-elapsed{left:12px;} -.play-button.playful .fp-elapsed{left:27px} -.playful .fp-remaining,.playful .fp-duration{right:152px;color:#eee;} -.no-volume.playful .fp-remaining,.no-volume.playful .fp-duration{right:62px} -.no-mute.playful .fp-remaining,.no-mute.playful .fp-duration{right:12px} -.playful .fp-remaining{display:none} -.playful.color-light .fp-time{color:#222;text-shadow:0 0 1px #fff} -.playful.color-light .fp-remaining,.playful.color-light .fp-duration{color:#666} -.playful.aside-time .fp-time{position:absolute;top:12px;left:12px;bottom:auto !important;width:110px;} -.playful.aside-time .fp-time strong,.playful.aside-time .fp-time em{position:static} -.playful.aside-time .fp-time .fp-elapsed{margin-right:12px} -.playful.is-long.aside-time .fp-time{width:130px} -.playful.is-splash,.playful.is-poster{cursor:pointer;} -.playful.is-splash .fp-controls,.playful.is-poster .fp-controls,.playful.is-splash .fp-fullscreen,.playful.is-poster .fp-fullscreen,.playful.is-splash .fp-unload,.playful.is-poster .fp-unload,.playful.is-splash .fp-time,.playful.is-poster .fp-time,.playful.is-splash .fp-embed,.playful.is-poster .fp-embed{display:none !important} -.playful.is-poster .fp-engine{top:-9999em} -.playful.is-loading .fp-waiting{display:block} -.playful.is-loading .fp-controls,.playful.is-loading .fp-time{display:none} -.playful.is-loading .fp-ui{background-position:-9999em} -.playful.is-seeking .fp-waiting{display:block} -.playful.is-fullscreen{position:fixed !important;top:0 !important;left:0 !important;border:0 !important;margin:0 !important;width:100% !important;height:100% !important;max-width:100% !important;z-index:99999 !important;-webkit-box-shadow:0 !important;-moz-box-shadow:0 !important;box-shadow:0 !important;background-image:none !important;background-color:#333} -.playful.is-error{border:1px solid #909090;background:#fdfdfd !important;} -.playful.is-error h2{font-weight:bold;font-size:large;margin-top:10%} -.playful.is-error .fp-message{display:block} -.playful.is-error object,.playful.is-error video,.playful.is-error .fp-controls,.playful.is-error .fp-time,.playful.is-error .fp-subtitle{display:none} -.playful.is-ready.is-muted .fp-mute{opacity:.5;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=50)} -.playful.is-mouseout .fp-controls{height:0;-webkit-transition:height .15s .3s;-moz-transition:height .15s .3s;transition:height .15s .3s} -.playful.is-mouseout .fp-timeline{margin:0 !important} -.playful.is-mouseout .fp-timeline{-webkit-transition:height .15s .3s,top .15s .3s,margin .15s .3s;-moz-transition:height .15s .3s,top .15s .3s,margin .15s .3s;transition:height .15s .3s,top .15s .3s,margin .15s .3s;height:4px;top:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0} -.playful.is-mouseout .fp-fullscreen,.playful.is-mouseout .fp-unload,.playful.is-mouseout .fp-elapsed,.playful.is-mouseout .fp-remaining,.playful.is-mouseout .fp-duration,.playful.is-mouseout .fp-embed,.playful.is-mouseout .fp-volume,.playful.is-mouseout .fp-play{opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .15s .3s;-moz-transition:opacity .15s .3s;transition:opacity .15s .3s} -.playful.is-mouseover .fp-controls,.playful.fixed-controls .fp-controls{height:35px} -.playful.is-mouseover .fp-fullscreen,.playful.fixed-controls .fp-fullscreen,.playful.is-mouseover .fp-unload,.playful.fixed-controls .fp-unload,.playful.is-mouseover .fp-elapsed,.playful.fixed-controls .fp-elapsed,.playful.is-mouseover .fp-remaining,.playful.fixed-controls .fp-remaining,.playful.is-mouseover .fp-duration,.playful.fixed-controls .fp-duration,.playful.is-mouseover .fp-embed,.playful.fixed-controls .fp-embed,.playful.is-mouseover .fp-logo,.playful.fixed-controls .fp-logo,.playful.is-mouseover .fp-volume,.playful.fixed-controls .fp-volume,.playful.is-mouseover .fp-play,.playful.fixed-controls .fp-play{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.playful.fixed-controls .fp-volume{display:block} -.playful.fixed-controls .fp-controls{bottom:-35px;} -.is-fullscreen.playful.fixed-controls .fp-controls{bottom:0} -.playful.fixed-controls .fp-time em{bottom:-23px;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);} -.is-fullscreen.playful.fixed-controls .fp-time em{bottom:12px} -.playful.is-disabled .fp-progress{background-color:#999} -.playful .fp-embed{position:absolute;top:12px;left:12px;display:block;width:25px;height:20px;background-position:3px -237px} -.playful .fp-embed-code{position:absolute;display:none;top:10px;left:40px;background-color:#333;padding:3px 5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 0 3px #ccc;-moz-box-shadow:0 0 3px #ccc;box-shadow:0 0 3px #ccc;font-size:12px;} -.playful .fp-embed-code:before{content:'';width:0;height:0;position:absolute;top:2px;left:-10px;border:5px solid transparent;border-right-color:#333} -.playful .fp-embed-code textarea{width:400px;height:16px;font-family:monaco,"courier new",verdana;color:#777;white-space:nowrap;resize:none;overflow:hidden;border:0;outline:0;background-color:transparent;color:#ccc} -.playful .fp-embed-code label{display:block;color:#999} -.playful.is-embedding .fp-embed,.playful.is-embedding .fp-embed-code{display:block;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.playful.aside-time .fp-embed{left:110px} -.playful.aside-time .fp-embed-code{left:140px} -.playful.aside-time.is-embedding .fp-time{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.playful.is-long.aside-time .fp-embed{left:130px} -.playful.no-time .fp-embed{left:12px !important} -@-moz-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@-webkit-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@-o-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@-ms-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@keyframes pulse{0%{opacity:0} -100%{opacity:1} -}.playful .fp-controls{background-color:#111} -.playful .fp-timeline,.playful .fp-volumeslider{background-color:#555;background-image:-moz-linear-gradient(rgba(255,255,255,0.01),rgba(255,255,255,0.3));background-image:-webkit-gradient(linear,0 0,0 100%,from(rgba(255,255,255,0.01)),to(rgba(255,255,255,0.3)))} -.playful .fp-buffer{background-color:#eee} -.playful .fp-progress{background-color:#008000} -.playful .fp-volumelevel{background-color:#fff} -.playful .fp-mute{display:block;width:38px;height:20px;background-position:0 -79px;} -.is-muted.playful .fp-mute{background-position:0 -109px;opacity:.85;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=85)} -.playful .fp-play{background-position:9px -20px;} -.is-paused.playful .fp-play{background-position:9px 11px} -.playful .fp-timeline,.playful .fp-volumeslider{border:1px inset;border-color:rgba(0,0,0,0.3) rgba(17,17,17,0.05)} -.playful .fp-controls,.playful .fp-progress{background-image:-moz-linear-gradient(rgba(255,255,255,0.3),rgba(255,255,255,0.01));background-image:-webkit-gradient(linear,0 0,0 100%,from(rgba(255,255,255,0.3)),to(rgba(255,255,255,0.01)))} -.playful .fp-timeline,.playful .fp-progress,.playful .fp-buffer,.playful .fp-volumeslider,.playful .fp-volumelevel{-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px} -.playful.color-light .fp-controls{background-color:#eee;background-image:-moz-linear-gradient(rgba(0,0,0,0.01),rgba(0,0,0,0.3));background-image:-webkit-gradient(linear,0 0,0 100%,from(rgba(0,0,0,0.01)),to(rgba(0,0,0,0.3)))} -.playful.color-light .fp-timeline,.playful.color-light .fp-volumeslider{border-color:#eee #ccc} -.playful.color-alt .fp-progress,.playful.color-alt .fp-volumelevel{background-color:#111} -.playful.color-alt2 .fp-progress,.playful.color-alt2 .fp-volumelevel{background-color:#900} diff --git a/lib/flowplayer-html5/skin/functional.css b/lib/flowplayer-html5/skin/functional.css deleted file mode 100644 index df98b4ea..00000000 --- a/lib/flowplayer-html5/skin/functional.css +++ /dev/null @@ -1,158 +0,0 @@ -.flowplayer{position:relative;width:100%;text-align:left;background-size:contain;background-repeat:no-repeat;background-position:center center;display:inline-block;} -.flowplayer *{font-weight:inherit;font-family:inherit;font-style:inherit;text-decoration:inherit;font-size:100%;padding:0;border:0;margin:0;list-style-type:none} -.flowplayer a:focus{outline:0} -.flowplayer video{width:100%} -.flowplayer.is-ipad video{-webkit-transform:translateX(-2048px);} -.is-ready.flowplayer.is-ipad video{-webkit-transform:translateX(0)} -.flowplayer .fp-engine,.flowplayer .fp-ui,.flowplayer .fp-message{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer;z-index:1} -.flowplayer .fp-message{display:none;text-align:center;padding-top:5%;cursor:default;} -.flowplayer .fp-message h2{font-size:120%;margin-bottom:1em} -.flowplayer .fp-message p{color:#666;font-size:95%} -.flowplayer .fp-controls{position:absolute;bottom:0;width:100%;} -.no-background.flowplayer .fp-controls{background-color:transparent !important;background-image:-moz-linear-gradient(transparent,transparent) !important;background-image:-webkit-gradient(linear,0 0,0 100%,from(transparent),to(transparent)) !important} -.is-fullscreen.flowplayer .fp-controls{bottom:3px} -.is-mouseover.flowplayer .fp-controls{bottom:0} -.flowplayer .fp-waiting{display:none;margin:19% auto;text-align:center;} -.flowplayer .fp-waiting *{-webkit-box-shadow:0 0 5px #333;-moz-box-shadow:0 0 5px #333;box-shadow:0 0 5px #333} -.flowplayer .fp-waiting em{width:1em;height:1em;-webkit-border-radius:1em;-moz-border-radius:1em;border-radius:1em;background-color:rgba(255,255,255,0.8);display:inline-block;-webkit-animation:pulse .6s infinite;-moz-animation:pulse .6s infinite;animation:pulse .6s infinite;margin:.3em;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);} -.flowplayer .fp-waiting em:nth-child(1){-webkit-animation-delay:.3s;-moz-animation-delay:.3s;animation-delay:.3s} -.flowplayer .fp-waiting em:nth-child(2){-webkit-animation-delay:.45s;-moz-animation-delay:.45s;animation-delay:.45s} -.flowplayer .fp-waiting em:nth-child(3){-webkit-animation-delay:.6s;-moz-animation-delay:.6s;animation-delay:.6s} -.flowplayer .fp-waiting p{color:#ccc;font-weight:bold} -.flowplayer .fp-speed{font-size:30px;background-color:#333;background-color:rgba(51,51,51,0.8);color:#eee;margin:0 auto;text-align:center;width:120px;padding:.1em 0 0;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .5s;-moz-transition:opacity .5s;transition:opacity .5s;} -.flowplayer .fp-speed.fp-hilite{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.flowplayer .fp-help{position:absolute;top:0;left:-9999em;z-index:100;background-color:#333;background-color:rgba(51,51,51,0.9);width:100%;height:100%;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .2s;-moz-transition:opacity .2s;transition:opacity .2s;text-align:center;} -.is-help.flowplayer .fp-help{left:0;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.flowplayer .fp-help .fp-help-section{margin:3%} -.flowplayer .fp-help .fp-help-basics{margin-top:6%} -.flowplayer .fp-help p{color:#eee;margin:.5em 0;font-size:14px;line-height:1.5;display:inline-block;margin:1% 2%} -.flowplayer .fp-help em{background:#eee;-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em;margin-right:.4em;padding:.3em .6em;color:#333} -.flowplayer .fp-help small{font-size:90%;color:#aaa} -.flowplayer .fp-help .fp-close{display:block} -@media (max-width: 600px){.flowplayer .fp-help p{font-size:9px} -}.flowplayer .fp-subtitle{position:absolute;bottom:40px;left:-99999em;z-index:10;text-align:center;width:100%;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .3s;-moz-transition:opacity .3s;transition:opacity .3s;} -.flowplayer .fp-subtitle p{display:inline;background-color:#333;background-color:rgba(51,51,51,0.9);color:#eee;padding:.1em .4em;font-size:16px;line-height:1.6;} -.flowplayer .fp-subtitle p:after{content:'';clear:both} -.flowplayer .fp-subtitle.fp-active{left:0;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.flowplayer .fp-fullscreen,.flowplayer .fp-unload,.flowplayer .fp-mute,.flowplayer .fp-embed,.flowplayer .fp-close,.flowplayer .fp-play{background-image:url(img/white.png);background-size:37px 300px;} -.color-light.flowplayer .fp-fullscreen,.color-light.flowplayer .fp-unload,.color-light.flowplayer .fp-mute,.color-light.flowplayer .fp-embed,.color-light.flowplayer .fp-close,.color-light.flowplayer .fp-play{background-image:url(img/black.png);} -@media (-webkit-min-device-pixel-ratio: 2){.color-light.flowplayer .fp-fullscreen,.color-light.flowplayer .fp-unload,.color-light.flowplayer .fp-mute,.color-light.flowplayer .fp-embed,.color-light.flowplayer .fp-close,.color-light.flowplayer .fp-play{background-image:url(img/black@x2.png)} -}@media (-webkit-min-device-pixel-ratio: 2){.flowplayer .fp-fullscreen,.flowplayer .fp-unload,.flowplayer .fp-mute,.flowplayer .fp-embed,.flowplayer .fp-close,.flowplayer .fp-play{background-image:url(img/white@x2.png)} -}.is-splash.flowplayer .fp-ui,.is-paused.flowplayer .fp-ui{background:url(img/play_white.png) center no-repeat;background-size:12%;} -@media (-webkit-min-device-pixel-ratio: 2){.is-splash.flowplayer .fp-ui,.is-paused.flowplayer .fp-ui{background:url(img/play_white@x2.png) center no-repeat;background-size:12%} -}.color-light.is-splash.flowplayer .fp-ui,.color-light.is-paused.flowplayer .fp-ui{background-image:url(img/play_black.png)} -@media (-webkit-min-device-pixel-ratio: 2){.color-light.is-splash.flowplayer .fp-ui,.color-light.is-paused.flowplayer .fp-ui{background-image:url(img/play_black@x2.png)} -}.is-fullscreen.flowplayer .fp-ui{background-size:auto} -.is-seeking.flowplayer .fp-ui,.is-loading.flowplayer .fp-ui{background-image:none} -.flowplayer .fp-logo{position:absolute;top:auto;left:15px;bottom:40px;cursor:pointer;display:none;z-index:100;} -.flowplayer .fp-logo img{width:100%} -.is-embedded.flowplayer .fp-logo{display:block} -.fixed-controls.flowplayer .fp-logo{bottom:15px} -.flowplayer .fp-fullscreen,.flowplayer .fp-unload,.flowplayer .fp-close{position:absolute;top:10px;left:auto;right:10px;display:block;width:30px;height:23px;background-position:12px -197px;cursor:pointer} -.flowplayer .fp-unload,.flowplayer .fp-close{background-position:14px -175px;display:none} -.flowplayer .fp-play{display:none;width:27px;height:30px;background-position:9px -24px;position:absolute;bottom:0;left:0;} -.play-button.flowplayer .fp-play{display:block} -.is-paused.flowplayer .fp-play{background-position:9px 7px} -.flowplayer.is-ready.is-closeable .fp-unload{display:block} -.flowplayer.is-ready.is-closeable .fp-fullscreen{display:none} -.flowplayer.is-fullscreen .fp-fullscreen{background-position:10px -217px;display:block !important} -.flowplayer.is-fullscreen .fp-unload,.flowplayer.is-fullscreen .fp-close{display:none !important} -.flowplayer .fp-timeline{height:3px;position:relative;overflow:hidden;top:10px;height:10px;margin:0 165px 0 55px;} -.no-volume.flowplayer .fp-timeline{margin-right:75px} -.no-mute.flowplayer .fp-timeline{margin-right:55px} -.play-button.flowplayer .fp-timeline{margin-left:72px} -.is-long.flowplayer .fp-timeline{margin:0 195px 0 85px;} -.no-volume.is-long.flowplayer .fp-timeline{margin-right:105px} -.no-mute.is-long.flowplayer .fp-timeline{margin-right:85px} -.play-button.is-long.flowplayer .fp-timeline{margin-left:102px} -.aside-time.flowplayer .fp-timeline,.no-time.flowplayer .fp-timeline{margin:0 120px 0 10px} -.aside-time.no-volume.flowplayer .fp-timeline,.no-time.no-volume.flowplayer .fp-timeline{margin-right:30px} -.aside-time.no-mute.flowplayer .fp-timeline,.no-time.no-mute.flowplayer .fp-timeline{margin-right:10px} -.play-button.no-time.flowplayer .fp-timeline,.play-button.aside-time.flowplayer .fp-timeline{margin-left:27px} -.flowplayer .fp-buffer,.flowplayer .fp-progress{position:absolute;top:0;left:auto;height:100%;cursor:col-resize} -.flowplayer .fp-buffer{-webkit-transition:width .25s linear;-moz-transition:width .25s linear;transition:width .25s linear} -.flowplayer .fp-volume{position:absolute;top:11px;right:10px} -.flowplayer .fp-mute{width:10px;height:15px;float:left;position:relative;top:-3.5px;left:;cursor:pointer;background-position:-2px -99px;} -.no-mute.flowplayer .fp-mute{display:none} -.flowplayer .fp-volumeslider{width:90px;height:8px;cursor:col-resize;float:left;} -.no-volume.flowplayer .fp-volumeslider{display:none} -.flowplayer .fp-volumelevel{height:100%} -.flowplayer .fp-time{text-shadow:0 0 1px #000;font-size:12px;font-weight:bold;color:#fff;width:100%;} -.flowplayer .fp-time.is-inverted .fp-duration{display:none} -.flowplayer .fp-time.is-inverted .fp-remaining{display:inline} -.flowplayer .fp-time em{width:35px;height:10px;line-height:10px;text-align:center;position:absolute;bottom:10px} -.no-time.flowplayer .fp-time{display:none} -.is-long.flowplayer .fp-time em{width:65px} -.flowplayer .fp-elapsed{left:10px;} -.play-button.flowplayer .fp-elapsed{left:27px} -.flowplayer .fp-remaining,.flowplayer .fp-duration{right:120px;color:#eee;} -.no-volume.flowplayer .fp-remaining,.no-volume.flowplayer .fp-duration{right:30px} -.no-mute.flowplayer .fp-remaining,.no-mute.flowplayer .fp-duration{right:10px} -.flowplayer .fp-remaining{display:none} -.flowplayer.color-light .fp-time{color:#222;text-shadow:0 0 1px #fff} -.flowplayer.color-light .fp-remaining,.flowplayer.color-light .fp-duration{color:#666} -.flowplayer.aside-time .fp-time{position:absolute;top:10px;left:10px;bottom:auto !important;width:100px;} -.flowplayer.aside-time .fp-time strong,.flowplayer.aside-time .fp-time em{position:static} -.flowplayer.aside-time .fp-time .fp-elapsed{margin-right:10px} -.flowplayer.is-long.aside-time .fp-time{width:130px} -.flowplayer.is-splash,.flowplayer.is-poster{cursor:pointer;} -.flowplayer.is-splash .fp-controls,.flowplayer.is-poster .fp-controls,.flowplayer.is-splash .fp-fullscreen,.flowplayer.is-poster .fp-fullscreen,.flowplayer.is-splash .fp-unload,.flowplayer.is-poster .fp-unload,.flowplayer.is-splash .fp-time,.flowplayer.is-poster .fp-time,.flowplayer.is-splash .fp-embed,.flowplayer.is-poster .fp-embed{display:none !important} -.flowplayer.is-poster .fp-engine{top:-9999em} -.flowplayer.is-loading .fp-waiting{display:block} -.flowplayer.is-loading .fp-controls,.flowplayer.is-loading .fp-time{display:none} -.flowplayer.is-loading .fp-ui{background-position:-9999em} -.flowplayer.is-seeking .fp-waiting{display:block} -.flowplayer.is-fullscreen{position:fixed !important;top:0 !important;left:0 !important;border:0 !important;margin:0 !important;width:100% !important;height:100% !important;max-width:100% !important;z-index:99999 !important;-webkit-box-shadow:0 !important;-moz-box-shadow:0 !important;box-shadow:0 !important;background-image:none !important;background-color:#333} -.flowplayer.is-error{border:1px solid #909090;background:#fdfdfd !important;} -.flowplayer.is-error h2{font-weight:bold;font-size:large;margin-top:10%} -.flowplayer.is-error .fp-message{display:block} -.flowplayer.is-error object,.flowplayer.is-error video,.flowplayer.is-error .fp-controls,.flowplayer.is-error .fp-time,.flowplayer.is-error .fp-subtitle{display:none} -.flowplayer.is-ready.is-muted .fp-mute{opacity:.5;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=50)} -.flowplayer.is-mouseout .fp-controls{height:0;-webkit-transition:height .15s .3s;-moz-transition:height .15s .3s;transition:height .15s .3s} -.flowplayer.is-mouseout .fp-timeline{margin:0 !important} -.flowplayer.is-mouseout .fp-timeline{-webkit-transition:height .15s .3s,top .15s .3s,margin .15s .3s;-moz-transition:height .15s .3s,top .15s .3s,margin .15s .3s;transition:height .15s .3s,top .15s .3s,margin .15s .3s;height:4px;top:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0} -.flowplayer.is-mouseout .fp-fullscreen,.flowplayer.is-mouseout .fp-unload,.flowplayer.is-mouseout .fp-elapsed,.flowplayer.is-mouseout .fp-remaining,.flowplayer.is-mouseout .fp-duration,.flowplayer.is-mouseout .fp-embed,.flowplayer.is-mouseout .fp-volume,.flowplayer.is-mouseout .fp-play{opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .15s .3s;-moz-transition:opacity .15s .3s;transition:opacity .15s .3s} -.flowplayer.is-mouseover .fp-controls,.flowplayer.fixed-controls .fp-controls{height:30px} -.flowplayer.is-mouseover .fp-fullscreen,.flowplayer.fixed-controls .fp-fullscreen,.flowplayer.is-mouseover .fp-unload,.flowplayer.fixed-controls .fp-unload,.flowplayer.is-mouseover .fp-elapsed,.flowplayer.fixed-controls .fp-elapsed,.flowplayer.is-mouseover .fp-remaining,.flowplayer.fixed-controls .fp-remaining,.flowplayer.is-mouseover .fp-duration,.flowplayer.fixed-controls .fp-duration,.flowplayer.is-mouseover .fp-embed,.flowplayer.fixed-controls .fp-embed,.flowplayer.is-mouseover .fp-logo,.flowplayer.fixed-controls .fp-logo,.flowplayer.is-mouseover .fp-volume,.flowplayer.fixed-controls .fp-volume,.flowplayer.is-mouseover .fp-play,.flowplayer.fixed-controls .fp-play{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.flowplayer.fixed-controls .fp-volume{display:block} -.flowplayer.fixed-controls .fp-controls{bottom:-30px;} -.is-fullscreen.flowplayer.fixed-controls .fp-controls{bottom:0} -.flowplayer.fixed-controls .fp-time em{bottom:-20px;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);} -.is-fullscreen.flowplayer.fixed-controls .fp-time em{bottom:10px} -.flowplayer.is-disabled .fp-progress{background-color:#999} -.flowplayer .fp-embed{position:absolute;top:10px;left:10px;display:block;width:25px;height:20px;background-position:3px -237px} -.flowplayer .fp-embed-code{position:absolute;display:none;top:10px;left:40px;background-color:#333;padding:3px 5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 0 3px #ccc;-moz-box-shadow:0 0 3px #ccc;box-shadow:0 0 3px #ccc;font-size:12px;} -.flowplayer .fp-embed-code:before{content:'';width:0;height:0;position:absolute;top:2px;left:-10px;border:5px solid transparent;border-right-color:#333} -.flowplayer .fp-embed-code textarea{width:400px;height:16px;font-family:monaco,"courier new",verdana;color:#777;white-space:nowrap;resize:none;overflow:hidden;border:0;outline:0;background-color:transparent;color:#ccc} -.flowplayer .fp-embed-code label{display:block;color:#999} -.flowplayer.is-embedding .fp-embed,.flowplayer.is-embedding .fp-embed-code{display:block;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.flowplayer.aside-time .fp-embed{left:100px} -.flowplayer.aside-time .fp-embed-code{left:130px} -.flowplayer.aside-time.is-embedding .fp-time{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.flowplayer.is-long.aside-time .fp-embed{left:130px} -.flowplayer.no-time .fp-embed{left:10px !important} -@-moz-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@-webkit-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@-o-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@-ms-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@keyframes pulse{0%{opacity:0} -100%{opacity:1} -}.flowplayer .fp-controls{background-color:#111} -.flowplayer .fp-timeline{background-color:#555} -.flowplayer .fp-buffer{background-color:#eee} -.flowplayer .fp-progress{background-color:#4da5d8} -.flowplayer .fp-volumelevel{background-color:#fff} -.flowplayer .fp-volumeslider{background-color:#555} -.flowplayer .fp-timeline,.flowplayer .fp-volumeslider{border:1px inset;border-color:rgba(0,0,0,0.2) rgba(17,17,17,0.05)} -.flowplayer .fp-controls,.flowplayer .fp-progress{background-image:-moz-linear-gradient(rgba(255,255,255,0.4),rgba(255,255,255,0.01));background-image:-webkit-gradient(linear,0 0,0 100%,from(rgba(255,255,255,0.4)),to(rgba(255,255,255,0.01)))} -.flowplayer .fp-timeline,.flowplayer .fp-buffer,.flowplayer .fp-progress,.flowplayer .fp-volumeslider,.flowplayer .fp-volumelevel{-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px} -.flowplayer.color-light .fp-controls{background-color:#eee;background-image:-moz-linear-gradient(rgba(0,0,0,0.01),rgba(0,0,0,0.3));background-image:-webkit-gradient(linear,0 0,0 100%,from(rgba(0,0,0,0.01)),to(rgba(0,0,0,0.3)))} -.flowplayer.color-light .fp-timeline,.flowplayer.color-light .fp-volumeslider{border-color:#eee #ccc} -.flowplayer.color-light .fp-timeline,.flowplayer.color-light .fp-volumeslider{background-color:#ccc;font-size:10px} -.flowplayer.color-alt .fp-progress{background-image:-moz-linear-gradient(#999,#111);background-image:-webkit-gradient(linear,0 0,0 100%,from(#999),to(#111))} -.flowplayer.color-alt .fp-timeline,.flowplayer.color-alt .fp-volumeslider{background-color:#111} -.flowplayer.color-alt2 .fp-progress{background-color:#900} diff --git a/lib/flowplayer-html5/skin/img/black.png b/lib/flowplayer-html5/skin/img/black.png Binary files differdeleted file mode 100644 index d37fd70b..00000000 --- a/lib/flowplayer-html5/skin/img/black.png +++ /dev/null diff --git a/lib/flowplayer-html5/skin/img/black@x2.png b/lib/flowplayer-html5/skin/img/black@x2.png Binary files differdeleted file mode 100644 index 13eaa220..00000000 --- a/lib/flowplayer-html5/skin/img/black@x2.png +++ /dev/null diff --git a/lib/flowplayer-html5/skin/img/play_black.png b/lib/flowplayer-html5/skin/img/play_black.png Binary files differdeleted file mode 100644 index c3c69085..00000000 --- a/lib/flowplayer-html5/skin/img/play_black.png +++ /dev/null diff --git a/lib/flowplayer-html5/skin/img/play_black@x2.png b/lib/flowplayer-html5/skin/img/play_black@x2.png Binary files differdeleted file mode 100644 index 82f9e66a..00000000 --- a/lib/flowplayer-html5/skin/img/play_black@x2.png +++ /dev/null diff --git a/lib/flowplayer-html5/skin/img/play_white.png b/lib/flowplayer-html5/skin/img/play_white.png Binary files differdeleted file mode 100644 index 251aa00c..00000000 --- a/lib/flowplayer-html5/skin/img/play_white.png +++ /dev/null diff --git a/lib/flowplayer-html5/skin/img/play_white@x2.png b/lib/flowplayer-html5/skin/img/play_white@x2.png Binary files differdeleted file mode 100644 index 1cf2369b..00000000 --- a/lib/flowplayer-html5/skin/img/play_white@x2.png +++ /dev/null diff --git a/lib/flowplayer-html5/skin/img/playful_black.png b/lib/flowplayer-html5/skin/img/playful_black.png Binary files differdeleted file mode 100644 index ca7825b8..00000000 --- a/lib/flowplayer-html5/skin/img/playful_black.png +++ /dev/null diff --git a/lib/flowplayer-html5/skin/img/playful_black@x2.png b/lib/flowplayer-html5/skin/img/playful_black@x2.png Binary files differdeleted file mode 100644 index 9a13b6d1..00000000 --- a/lib/flowplayer-html5/skin/img/playful_black@x2.png +++ /dev/null diff --git a/lib/flowplayer-html5/skin/img/playful_white.png b/lib/flowplayer-html5/skin/img/playful_white.png Binary files differdeleted file mode 100644 index c028155e..00000000 --- a/lib/flowplayer-html5/skin/img/playful_white.png +++ /dev/null diff --git a/lib/flowplayer-html5/skin/img/playful_white@x2.png b/lib/flowplayer-html5/skin/img/playful_white@x2.png Binary files differdeleted file mode 100644 index 1bade5e6..00000000 --- a/lib/flowplayer-html5/skin/img/playful_white@x2.png +++ /dev/null diff --git a/lib/flowplayer-html5/skin/img/white.png b/lib/flowplayer-html5/skin/img/white.png Binary files differdeleted file mode 100644 index 9722281b..00000000 --- a/lib/flowplayer-html5/skin/img/white.png +++ /dev/null diff --git a/lib/flowplayer-html5/skin/img/white@x2.png b/lib/flowplayer-html5/skin/img/white@x2.png Binary files differdeleted file mode 100644 index a937c94c..00000000 --- a/lib/flowplayer-html5/skin/img/white@x2.png +++ /dev/null diff --git a/lib/flowplayer-html5/skin/minimalist.css b/lib/flowplayer-html5/skin/minimalist.css deleted file mode 100644 index cdec9f4b..00000000 --- a/lib/flowplayer-html5/skin/minimalist.css +++ /dev/null @@ -1,158 +0,0 @@ -.flowplayer{position:relative;width:100%;text-align:left;background-size:contain;background-repeat:no-repeat;background-position:center center;display:inline-block;} -.flowplayer *{font-weight:inherit;font-family:inherit;font-style:inherit;text-decoration:inherit;font-size:100%;padding:0;border:0;margin:0;list-style-type:none} -.flowplayer a:focus{outline:0} -.flowplayer video{width:100%} -.flowplayer.is-ipad video{-webkit-transform:translateX(-2048px);} -.is-ready.flowplayer.is-ipad video{-webkit-transform:translateX(0)} -.flowplayer .fp-engine,.flowplayer .fp-ui,.flowplayer .fp-message{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer;z-index:1} -.flowplayer .fp-message{display:none;text-align:center;padding-top:5%;cursor:default;} -.flowplayer .fp-message h2{font-size:120%;margin-bottom:1em} -.flowplayer .fp-message p{color:#666;font-size:95%} -.flowplayer .fp-controls{position:absolute;bottom:0;width:100%;} -.no-background.flowplayer .fp-controls{background-color:transparent !important;background-image:-moz-linear-gradient(transparent,transparent) !important;background-image:-webkit-gradient(linear,0 0,0 100%,from(transparent),to(transparent)) !important} -.is-fullscreen.flowplayer .fp-controls{bottom:3px} -.is-mouseover.flowplayer .fp-controls{bottom:0} -.flowplayer .fp-waiting{display:none;margin:19% auto;text-align:center;} -.flowplayer .fp-waiting *{-webkit-box-shadow:0 0 5px #333;-moz-box-shadow:0 0 5px #333;box-shadow:0 0 5px #333} -.flowplayer .fp-waiting em{width:1em;height:1em;-webkit-border-radius:1em;-moz-border-radius:1em;border-radius:1em;background-color:rgba(255,255,255,0.8);display:inline-block;-webkit-animation:pulse .6s infinite;-moz-animation:pulse .6s infinite;animation:pulse .6s infinite;margin:.3em;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);} -.flowplayer .fp-waiting em:nth-child(1){-webkit-animation-delay:.3s;-moz-animation-delay:.3s;animation-delay:.3s} -.flowplayer .fp-waiting em:nth-child(2){-webkit-animation-delay:.45s;-moz-animation-delay:.45s;animation-delay:.45s} -.flowplayer .fp-waiting em:nth-child(3){-webkit-animation-delay:.6s;-moz-animation-delay:.6s;animation-delay:.6s} -.flowplayer .fp-waiting p{color:#ccc;font-weight:bold} -.flowplayer .fp-speed{font-size:30px;background-color:#333;background-color:rgba(51,51,51,0.8);color:#eee;margin:0 auto;text-align:center;width:120px;padding:.1em 0 0;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .5s;-moz-transition:opacity .5s;transition:opacity .5s;} -.flowplayer .fp-speed.fp-hilite{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.flowplayer .fp-help{position:absolute;top:0;left:-9999em;z-index:100;background-color:#333;background-color:rgba(51,51,51,0.9);width:100%;height:100%;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .2s;-moz-transition:opacity .2s;transition:opacity .2s;text-align:center;} -.is-help.flowplayer .fp-help{left:0;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.flowplayer .fp-help .fp-help-section{margin:3%} -.flowplayer .fp-help .fp-help-basics{margin-top:6%} -.flowplayer .fp-help p{color:#eee;margin:.5em 0;font-size:14px;line-height:1.5;display:inline-block;margin:1% 2%} -.flowplayer .fp-help em{background:#eee;-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em;margin-right:.4em;padding:.3em .6em;color:#333} -.flowplayer .fp-help small{font-size:90%;color:#aaa} -.flowplayer .fp-help .fp-close{display:block} -@media (max-width: 600px){.flowplayer .fp-help p{font-size:9px} -}.flowplayer .fp-subtitle{position:absolute;bottom:40px;left:-99999em;z-index:10;text-align:center;width:100%;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .3s;-moz-transition:opacity .3s;transition:opacity .3s;} -.flowplayer .fp-subtitle p{display:inline;background-color:#333;background-color:rgba(51,51,51,0.9);color:#eee;padding:.1em .4em;font-size:16px;line-height:1.6;} -.flowplayer .fp-subtitle p:after{content:'';clear:both} -.flowplayer .fp-subtitle.fp-active{left:0;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.flowplayer .fp-fullscreen,.flowplayer .fp-unload,.flowplayer .fp-mute,.flowplayer .fp-embed,.flowplayer .fp-close,.flowplayer .fp-play{background-image:url(img/white.png);background-size:37px 300px;} -.color-light.flowplayer .fp-fullscreen,.color-light.flowplayer .fp-unload,.color-light.flowplayer .fp-mute,.color-light.flowplayer .fp-embed,.color-light.flowplayer .fp-close,.color-light.flowplayer .fp-play{background-image:url(img/black.png);} -@media (-webkit-min-device-pixel-ratio: 2){.color-light.flowplayer .fp-fullscreen,.color-light.flowplayer .fp-unload,.color-light.flowplayer .fp-mute,.color-light.flowplayer .fp-embed,.color-light.flowplayer .fp-close,.color-light.flowplayer .fp-play{background-image:url(img/black@x2.png)} -}@media (-webkit-min-device-pixel-ratio: 2){.flowplayer .fp-fullscreen,.flowplayer .fp-unload,.flowplayer .fp-mute,.flowplayer .fp-embed,.flowplayer .fp-close,.flowplayer .fp-play{background-image:url(img/white@x2.png)} -}.is-splash.flowplayer .fp-ui,.is-paused.flowplayer .fp-ui{background:url(img/play_white.png) center no-repeat;background-size:12%;} -@media (-webkit-min-device-pixel-ratio: 2){.is-splash.flowplayer .fp-ui,.is-paused.flowplayer .fp-ui{background:url(img/play_white@x2.png) center no-repeat;background-size:12%} -}.color-light.is-splash.flowplayer .fp-ui,.color-light.is-paused.flowplayer .fp-ui{background-image:url(img/play_black.png)} -@media (-webkit-min-device-pixel-ratio: 2){.color-light.is-splash.flowplayer .fp-ui,.color-light.is-paused.flowplayer .fp-ui{background-image:url(img/play_black@x2.png)} -}.is-fullscreen.flowplayer .fp-ui{background-size:auto} -.is-seeking.flowplayer .fp-ui,.is-loading.flowplayer .fp-ui{background-image:none} -.flowplayer .fp-logo{position:absolute;top:auto;left:15px;bottom:30px;cursor:pointer;display:none;z-index:100;} -.flowplayer .fp-logo img{width:100%} -.is-embedded.flowplayer .fp-logo{display:block} -.fixed-controls.flowplayer .fp-logo{bottom:15px} -.flowplayer .fp-fullscreen,.flowplayer .fp-unload,.flowplayer .fp-close{position:absolute;top:5px;left:auto;right:5px;display:block;width:30px;height:23px;background-position:12px -197px;cursor:pointer} -.flowplayer .fp-unload,.flowplayer .fp-close{background-position:14px -175px;display:none} -.flowplayer .fp-play{display:none;width:27px;height:20px;background-position:9px -24px;position:absolute;bottom:0;left:0;} -.play-button.flowplayer .fp-play{display:block} -.is-paused.flowplayer .fp-play{background-position:9px 7px} -.flowplayer.is-ready.is-closeable .fp-unload{display:block} -.flowplayer.is-ready.is-closeable .fp-fullscreen{display:none} -.flowplayer.is-fullscreen .fp-fullscreen{background-position:10px -217px;display:block !important} -.flowplayer.is-fullscreen .fp-unload,.flowplayer.is-fullscreen .fp-close{display:none !important} -.flowplayer .fp-timeline{height:3px;position:relative;overflow:hidden;top:5px;height:10px;margin:0 150px 0 45px;} -.no-volume.flowplayer .fp-timeline{margin-right:60px} -.no-mute.flowplayer .fp-timeline{margin-right:45px} -.play-button.flowplayer .fp-timeline{margin-left:67px} -.is-long.flowplayer .fp-timeline{margin:0 180px 0 75px;} -.no-volume.is-long.flowplayer .fp-timeline{margin-right:90px} -.no-mute.is-long.flowplayer .fp-timeline{margin-right:75px} -.play-button.is-long.flowplayer .fp-timeline{margin-left:97px} -.aside-time.flowplayer .fp-timeline,.no-time.flowplayer .fp-timeline{margin:0 110px 0 5px} -.aside-time.no-volume.flowplayer .fp-timeline,.no-time.no-volume.flowplayer .fp-timeline{margin-right:20px} -.aside-time.no-mute.flowplayer .fp-timeline,.no-time.no-mute.flowplayer .fp-timeline{margin-right:5px} -.play-button.no-time.flowplayer .fp-timeline,.play-button.aside-time.flowplayer .fp-timeline{margin-left:27px} -.flowplayer .fp-buffer,.flowplayer .fp-progress{position:absolute;top:0;left:auto;height:100%;cursor:col-resize} -.flowplayer .fp-buffer{-webkit-transition:width .25s linear;-moz-transition:width .25s linear;transition:width .25s linear} -.flowplayer .fp-volume{position:absolute;top:7.5px;right:5px} -.flowplayer .fp-mute{width:10px;height:15px;float:left;position:relative;top:-5px;left:;cursor:pointer;background-position:-2px -99px;} -.no-mute.flowplayer .fp-mute{display:none} -.flowplayer .fp-volumeslider{width:90px;height:5px;cursor:col-resize;float:left;} -.no-volume.flowplayer .fp-volumeslider{display:none} -.flowplayer .fp-volumelevel{height:100%} -.flowplayer .fp-time{text-shadow:0 0 1px #000;font-size:12px;font-weight:bold;color:#fff;width:100%;} -.flowplayer .fp-time.is-inverted .fp-duration{display:none} -.flowplayer .fp-time.is-inverted .fp-remaining{display:inline} -.flowplayer .fp-time em{width:35px;height:10px;line-height:10px;text-align:center;position:absolute;bottom:5px} -.no-time.flowplayer .fp-time{display:none} -.is-long.flowplayer .fp-time em{width:65px} -.flowplayer .fp-elapsed{left:5px;} -.play-button.flowplayer .fp-elapsed{left:27px} -.flowplayer .fp-remaining,.flowplayer .fp-duration{right:110px;color:#eee;} -.no-volume.flowplayer .fp-remaining,.no-volume.flowplayer .fp-duration{right:20px} -.no-mute.flowplayer .fp-remaining,.no-mute.flowplayer .fp-duration{right:5px} -.flowplayer .fp-remaining{display:none} -.flowplayer.color-light .fp-time{color:#222;text-shadow:0 0 1px #fff} -.flowplayer.color-light .fp-remaining,.flowplayer.color-light .fp-duration{color:#666} -.flowplayer.aside-time .fp-time{position:absolute;top:5px;left:5px;bottom:auto !important;width:85px;} -.flowplayer.aside-time .fp-time strong,.flowplayer.aside-time .fp-time em{position:static} -.flowplayer.aside-time .fp-time .fp-elapsed{margin-right:5px} -.flowplayer.is-long.aside-time .fp-time{width:130px} -.flowplayer.is-splash,.flowplayer.is-poster{cursor:pointer;} -.flowplayer.is-splash .fp-controls,.flowplayer.is-poster .fp-controls,.flowplayer.is-splash .fp-fullscreen,.flowplayer.is-poster .fp-fullscreen,.flowplayer.is-splash .fp-unload,.flowplayer.is-poster .fp-unload,.flowplayer.is-splash .fp-time,.flowplayer.is-poster .fp-time,.flowplayer.is-splash .fp-embed,.flowplayer.is-poster .fp-embed{display:none !important} -.flowplayer.is-poster .fp-engine{top:-9999em} -.flowplayer.is-loading .fp-waiting{display:block} -.flowplayer.is-loading .fp-controls,.flowplayer.is-loading .fp-time{display:none} -.flowplayer.is-loading .fp-ui{background-position:-9999em} -.flowplayer.is-seeking .fp-waiting{display:block} -.flowplayer.is-fullscreen{position:fixed !important;top:0 !important;left:0 !important;border:0 !important;margin:0 !important;width:100% !important;height:100% !important;max-width:100% !important;z-index:99999 !important;-webkit-box-shadow:0 !important;-moz-box-shadow:0 !important;box-shadow:0 !important;background-image:none !important;background-color:#333} -.flowplayer.is-error{border:1px solid #909090;background:#fdfdfd !important;} -.flowplayer.is-error h2{font-weight:bold;font-size:large;margin-top:10%} -.flowplayer.is-error .fp-message{display:block} -.flowplayer.is-error object,.flowplayer.is-error video,.flowplayer.is-error .fp-controls,.flowplayer.is-error .fp-time,.flowplayer.is-error .fp-subtitle{display:none} -.flowplayer.is-ready.is-muted .fp-mute{opacity:.5;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=50)} -.flowplayer.is-mouseout .fp-controls{height:0;-webkit-transition:height .15s .3s;-moz-transition:height .15s .3s;transition:height .15s .3s} -.flowplayer.is-mouseout .fp-timeline{margin:0 !important} -.flowplayer.is-mouseout .fp-timeline{-webkit-transition:height .15s .3s,top .15s .3s,margin .15s .3s;-moz-transition:height .15s .3s,top .15s .3s,margin .15s .3s;transition:height .15s .3s,top .15s .3s,margin .15s .3s;height:4px;top:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0} -.flowplayer.is-mouseout .fp-fullscreen,.flowplayer.is-mouseout .fp-unload,.flowplayer.is-mouseout .fp-elapsed,.flowplayer.is-mouseout .fp-remaining,.flowplayer.is-mouseout .fp-duration,.flowplayer.is-mouseout .fp-embed,.flowplayer.is-mouseout .fp-volume,.flowplayer.is-mouseout .fp-play{opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .15s .3s;-moz-transition:opacity .15s .3s;transition:opacity .15s .3s} -.flowplayer.is-mouseover .fp-controls,.flowplayer.fixed-controls .fp-controls{height:20px} -.flowplayer.is-mouseover .fp-fullscreen,.flowplayer.fixed-controls .fp-fullscreen,.flowplayer.is-mouseover .fp-unload,.flowplayer.fixed-controls .fp-unload,.flowplayer.is-mouseover .fp-elapsed,.flowplayer.fixed-controls .fp-elapsed,.flowplayer.is-mouseover .fp-remaining,.flowplayer.fixed-controls .fp-remaining,.flowplayer.is-mouseover .fp-duration,.flowplayer.fixed-controls .fp-duration,.flowplayer.is-mouseover .fp-embed,.flowplayer.fixed-controls .fp-embed,.flowplayer.is-mouseover .fp-logo,.flowplayer.fixed-controls .fp-logo,.flowplayer.is-mouseover .fp-volume,.flowplayer.fixed-controls .fp-volume,.flowplayer.is-mouseover .fp-play,.flowplayer.fixed-controls .fp-play{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.flowplayer.fixed-controls .fp-volume{display:block} -.flowplayer.fixed-controls .fp-controls{bottom:-20px;} -.is-fullscreen.flowplayer.fixed-controls .fp-controls{bottom:0} -.flowplayer.fixed-controls .fp-time em{bottom:-15px;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);} -.is-fullscreen.flowplayer.fixed-controls .fp-time em{bottom:5px} -.flowplayer.is-disabled .fp-progress{background-color:#999} -.flowplayer .fp-embed{position:absolute;top:5px;left:5px;display:block;width:25px;height:20px;background-position:3px -237px} -.flowplayer .fp-embed-code{position:absolute;display:none;top:10px;left:40px;background-color:#333;padding:3px 5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 0 3px #ccc;-moz-box-shadow:0 0 3px #ccc;box-shadow:0 0 3px #ccc;font-size:12px;} -.flowplayer .fp-embed-code:before{content:'';width:0;height:0;position:absolute;top:2px;left:-10px;border:5px solid transparent;border-right-color:#333} -.flowplayer .fp-embed-code textarea{width:400px;height:16px;font-family:monaco,"courier new",verdana;color:#777;white-space:nowrap;resize:none;overflow:hidden;border:0;outline:0;background-color:transparent;color:#ccc} -.flowplayer .fp-embed-code label{display:block;color:#999} -.flowplayer.is-embedding .fp-embed,.flowplayer.is-embedding .fp-embed-code{display:block;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.flowplayer.aside-time .fp-embed{left:85px} -.flowplayer.aside-time .fp-embed-code{left:115px} -.flowplayer.aside-time.is-embedding .fp-time{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.flowplayer.is-long.aside-time .fp-embed{left:130px} -.flowplayer.no-time .fp-embed{left:5px !important} -@-moz-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@-webkit-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@-o-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@-ms-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@keyframes pulse{0%{opacity:0} -100%{opacity:1} -}.flowplayer .fp-controls{background-color:#333;background-color:rgba(51,51,51,0.6)} -.flowplayer.fixed-controls .fp-controls{background-color:#333} -.flowplayer .fp-timeline{background-color:#666} -.flowplayer .fp-buffer{background-color:#eee} -.flowplayer .fp-progress{background-color:#00a7c8} -.flowplayer .fp-volumeslider{background-color:#000} -.flowplayer .fp-volumelevel{background-color:#fff} -.flowplayer .fp-play{height:24px} -.flowplayer.color-light .fp-controls{background-color:rgba(255,255,255,0.6)} -.flowplayer.color-light.fixed-controls .fp-controls{background-color:#fff} -.flowplayer.color-light .fp-volumeslider{background-color:#ddd} -.flowplayer.color-light .fp-volumelevel{background-color:#222} -.flowplayer.color-alt .fp-progress{background-color:#fff} -.flowplayer.color-alt .fp-buffer{background-color:#999} -.flowplayer.color-alt2 .fp-progress{background-color:#900} diff --git a/lib/flowplayer-html5/skin/playful.css b/lib/flowplayer-html5/skin/playful.css deleted file mode 100644 index 871187a8..00000000 --- a/lib/flowplayer-html5/skin/playful.css +++ /dev/null @@ -1,159 +0,0 @@ -.flowplayer{position:relative;width:100%;text-align:left;background-size:contain;background-repeat:no-repeat;background-position:center center;display:inline-block;} -.flowplayer *{font-weight:inherit;font-family:inherit;font-style:inherit;text-decoration:inherit;font-size:100%;padding:0;border:0;margin:0;list-style-type:none} -.flowplayer a:focus{outline:0} -.flowplayer video{width:100%} -.flowplayer.is-ipad video{-webkit-transform:translateX(-2048px);} -.is-ready.flowplayer.is-ipad video{-webkit-transform:translateX(0)} -.flowplayer .fp-engine,.flowplayer .fp-ui,.flowplayer .fp-message{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer;z-index:1} -.flowplayer .fp-message{display:none;text-align:center;padding-top:5%;cursor:default;} -.flowplayer .fp-message h2{font-size:120%;margin-bottom:1em} -.flowplayer .fp-message p{color:#666;font-size:95%} -.flowplayer .fp-controls{position:absolute;bottom:0;width:100%;} -.no-background.flowplayer .fp-controls{background-color:transparent !important;background-image:-moz-linear-gradient(transparent,transparent) !important;background-image:-webkit-gradient(linear,0 0,0 100%,from(transparent),to(transparent)) !important} -.is-fullscreen.flowplayer .fp-controls{bottom:3px} -.is-mouseover.flowplayer .fp-controls{bottom:0} -.flowplayer .fp-waiting{display:none;margin:19% auto;text-align:center;} -.flowplayer .fp-waiting *{-webkit-box-shadow:0 0 5px #333;-moz-box-shadow:0 0 5px #333;box-shadow:0 0 5px #333} -.flowplayer .fp-waiting em{width:1em;height:1em;-webkit-border-radius:1em;-moz-border-radius:1em;border-radius:1em;background-color:rgba(255,255,255,0.8);display:inline-block;-webkit-animation:pulse .6s infinite;-moz-animation:pulse .6s infinite;animation:pulse .6s infinite;margin:.3em;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);} -.flowplayer .fp-waiting em:nth-child(1){-webkit-animation-delay:.3s;-moz-animation-delay:.3s;animation-delay:.3s} -.flowplayer .fp-waiting em:nth-child(2){-webkit-animation-delay:.45s;-moz-animation-delay:.45s;animation-delay:.45s} -.flowplayer .fp-waiting em:nth-child(3){-webkit-animation-delay:.6s;-moz-animation-delay:.6s;animation-delay:.6s} -.flowplayer .fp-waiting p{color:#ccc;font-weight:bold} -.flowplayer .fp-speed{font-size:30px;background-color:#333;background-color:rgba(51,51,51,0.8);color:#eee;margin:0 auto;text-align:center;width:120px;padding:.1em 0 0;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .5s;-moz-transition:opacity .5s;transition:opacity .5s;} -.flowplayer .fp-speed.fp-hilite{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.flowplayer .fp-help{position:absolute;top:0;left:-9999em;z-index:100;background-color:#333;background-color:rgba(51,51,51,0.9);width:100%;height:100%;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .2s;-moz-transition:opacity .2s;transition:opacity .2s;text-align:center;} -.is-help.flowplayer .fp-help{left:0;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.flowplayer .fp-help .fp-help-section{margin:3%} -.flowplayer .fp-help .fp-help-basics{margin-top:6%} -.flowplayer .fp-help p{color:#eee;margin:.5em 0;font-size:14px;line-height:1.5;display:inline-block;margin:1% 2%} -.flowplayer .fp-help em{background:#eee;-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em;margin-right:.4em;padding:.3em .6em;color:#333} -.flowplayer .fp-help small{font-size:90%;color:#aaa} -.flowplayer .fp-help .fp-close{display:block} -@media (max-width: 600px){.flowplayer .fp-help p{font-size:9px} -}.flowplayer .fp-subtitle{position:absolute;bottom:40px;left:-99999em;z-index:10;text-align:center;width:100%;opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .3s;-moz-transition:opacity .3s;transition:opacity .3s;} -.flowplayer .fp-subtitle p{display:inline;background-color:#333;background-color:rgba(51,51,51,0.9);color:#eee;padding:.1em .4em;font-size:16px;line-height:1.6;} -.flowplayer .fp-subtitle p:after{content:'';clear:both} -.flowplayer .fp-subtitle.fp-active{left:0;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.flowplayer .fp-fullscreen,.flowplayer .fp-unload,.flowplayer .fp-mute,.flowplayer .fp-embed,.flowplayer .fp-close,.flowplayer .fp-play{background-image:url(img/playful_white.png);background-size:37px 300px;} -.color-light.flowplayer .fp-fullscreen,.color-light.flowplayer .fp-unload,.color-light.flowplayer .fp-mute,.color-light.flowplayer .fp-embed,.color-light.flowplayer .fp-close,.color-light.flowplayer .fp-play{background-image:url(img/playful_black.png);} -@media (-webkit-min-device-pixel-ratio: 2){.color-light.flowplayer .fp-fullscreen,.color-light.flowplayer .fp-unload,.color-light.flowplayer .fp-mute,.color-light.flowplayer .fp-embed,.color-light.flowplayer .fp-close,.color-light.flowplayer .fp-play{background-image:url(img/playful_black@x2.png)} -}@media (-webkit-min-device-pixel-ratio: 2){.flowplayer .fp-fullscreen,.flowplayer .fp-unload,.flowplayer .fp-mute,.flowplayer .fp-embed,.flowplayer .fp-close,.flowplayer .fp-play{background-image:url(img/playful_white@x2.png)} -}.is-splash.flowplayer .fp-ui,.is-paused.flowplayer .fp-ui{background:url(img/play_white.png) center no-repeat;background-size:12%;} -@media (-webkit-min-device-pixel-ratio: 2){.is-splash.flowplayer .fp-ui,.is-paused.flowplayer .fp-ui{background:url(img/play_white@x2.png) center no-repeat;background-size:12%} -}.color-light.is-splash.flowplayer .fp-ui,.color-light.is-paused.flowplayer .fp-ui{background-image:url(img/play_black.png)} -@media (-webkit-min-device-pixel-ratio: 2){.color-light.is-splash.flowplayer .fp-ui,.color-light.is-paused.flowplayer .fp-ui{background-image:url(img/play_black@x2.png)} -}.is-fullscreen.flowplayer .fp-ui{background-size:auto} -.is-seeking.flowplayer .fp-ui,.is-loading.flowplayer .fp-ui{background-image:none} -.flowplayer .fp-logo{position:absolute;top:auto;left:15px;bottom:45px;cursor:pointer;display:none;z-index:100;} -.flowplayer .fp-logo img{width:100%} -.is-embedded.flowplayer .fp-logo{display:block} -.fixed-controls.flowplayer .fp-logo{bottom:15px} -.flowplayer .fp-fullscreen,.flowplayer .fp-unload,.flowplayer .fp-close{position:absolute;top:12px;left:auto;right:12px;display:block;width:30px;height:23px;background-position:12px -197px;cursor:pointer} -.flowplayer .fp-unload,.flowplayer .fp-close{background-position:14px -175px;display:none} -.flowplayer .fp-play{display:none;width:27px;height:35px;background-position:9px -24px;position:absolute;bottom:0;left:0;} -.play-button.flowplayer .fp-play{display:block} -.is-paused.flowplayer .fp-play{background-position:9px 7px} -.flowplayer.is-ready.is-closeable .fp-unload{display:block} -.flowplayer.is-ready.is-closeable .fp-fullscreen{display:none} -.flowplayer.is-fullscreen .fp-fullscreen{background-position:10px -217px;display:block !important} -.flowplayer.is-fullscreen .fp-unload,.flowplayer.is-fullscreen .fp-close{display:none !important} -.flowplayer .fp-timeline{height:3px;position:relative;overflow:hidden;top:12px;height:11px;margin:0 199px 0 59px;} -.no-volume.flowplayer .fp-timeline{margin-right:109px} -.no-mute.flowplayer .fp-timeline{margin-right:59px} -.play-button.flowplayer .fp-timeline{margin-left:74px} -.is-long.flowplayer .fp-timeline{margin:0 229px 0 89px;} -.no-volume.is-long.flowplayer .fp-timeline{margin-right:139px} -.no-mute.is-long.flowplayer .fp-timeline{margin-right:89px} -.play-button.is-long.flowplayer .fp-timeline{margin-left:104px} -.aside-time.flowplayer .fp-timeline,.no-time.flowplayer .fp-timeline{margin:0 152px 0 12px} -.aside-time.no-volume.flowplayer .fp-timeline,.no-time.no-volume.flowplayer .fp-timeline{margin-right:62px} -.aside-time.no-mute.flowplayer .fp-timeline,.no-time.no-mute.flowplayer .fp-timeline{margin-right:12px} -.play-button.no-time.flowplayer .fp-timeline,.play-button.aside-time.flowplayer .fp-timeline{margin-left:27px} -.flowplayer .fp-buffer,.flowplayer .fp-progress{position:absolute;top:0;left:auto;height:100%;cursor:col-resize} -.flowplayer .fp-buffer{-webkit-transition:width .25s linear;-moz-transition:width .25s linear;transition:width .25s linear} -.flowplayer .fp-volume{position:absolute;top:12px;right:12px} -.flowplayer .fp-mute{width:38px;height:20px;float:left;position:relative;top:-4.5px;left:;cursor:pointer;background-position:-2px -99px;} -.no-mute.flowplayer .fp-mute{display:none} -.flowplayer .fp-volumeslider{width:90px;height:11px;cursor:col-resize;float:left;} -.no-volume.flowplayer .fp-volumeslider{display:none} -.flowplayer .fp-volumelevel{height:100%} -.flowplayer .fp-time{text-shadow:0 0 1px #000;font-size:12px;font-weight:bold;color:#fff;width:100%;} -.flowplayer .fp-time.is-inverted .fp-duration{display:none} -.flowplayer .fp-time.is-inverted .fp-remaining{display:inline} -.flowplayer .fp-time em{width:35px;height:11px;line-height:11px;text-align:center;position:absolute;bottom:12px} -.no-time.flowplayer .fp-time{display:none} -.is-long.flowplayer .fp-time em{width:65px} -.flowplayer .fp-elapsed{left:12px;} -.play-button.flowplayer .fp-elapsed{left:27px} -.flowplayer .fp-remaining,.flowplayer .fp-duration{right:152px;color:#eee;} -.no-volume.flowplayer .fp-remaining,.no-volume.flowplayer .fp-duration{right:62px} -.no-mute.flowplayer .fp-remaining,.no-mute.flowplayer .fp-duration{right:12px} -.flowplayer .fp-remaining{display:none} -.flowplayer.color-light .fp-time{color:#222;text-shadow:0 0 1px #fff} -.flowplayer.color-light .fp-remaining,.flowplayer.color-light .fp-duration{color:#666} -.flowplayer.aside-time .fp-time{position:absolute;top:12px;left:12px;bottom:auto !important;width:110px;} -.flowplayer.aside-time .fp-time strong,.flowplayer.aside-time .fp-time em{position:static} -.flowplayer.aside-time .fp-time .fp-elapsed{margin-right:12px} -.flowplayer.is-long.aside-time .fp-time{width:130px} -.flowplayer.is-splash,.flowplayer.is-poster{cursor:pointer;} -.flowplayer.is-splash .fp-controls,.flowplayer.is-poster .fp-controls,.flowplayer.is-splash .fp-fullscreen,.flowplayer.is-poster .fp-fullscreen,.flowplayer.is-splash .fp-unload,.flowplayer.is-poster .fp-unload,.flowplayer.is-splash .fp-time,.flowplayer.is-poster .fp-time,.flowplayer.is-splash .fp-embed,.flowplayer.is-poster .fp-embed{display:none !important} -.flowplayer.is-poster .fp-engine{top:-9999em} -.flowplayer.is-loading .fp-waiting{display:block} -.flowplayer.is-loading .fp-controls,.flowplayer.is-loading .fp-time{display:none} -.flowplayer.is-loading .fp-ui{background-position:-9999em} -.flowplayer.is-seeking .fp-waiting{display:block} -.flowplayer.is-fullscreen{position:fixed !important;top:0 !important;left:0 !important;border:0 !important;margin:0 !important;width:100% !important;height:100% !important;max-width:100% !important;z-index:99999 !important;-webkit-box-shadow:0 !important;-moz-box-shadow:0 !important;box-shadow:0 !important;background-image:none !important;background-color:#333} -.flowplayer.is-error{border:1px solid #909090;background:#fdfdfd !important;} -.flowplayer.is-error h2{font-weight:bold;font-size:large;margin-top:10%} -.flowplayer.is-error .fp-message{display:block} -.flowplayer.is-error object,.flowplayer.is-error video,.flowplayer.is-error .fp-controls,.flowplayer.is-error .fp-time,.flowplayer.is-error .fp-subtitle{display:none} -.flowplayer.is-ready.is-muted .fp-mute{opacity:.5;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=50)} -.flowplayer.is-mouseout .fp-controls{height:0;-webkit-transition:height .15s .3s;-moz-transition:height .15s .3s;transition:height .15s .3s} -.flowplayer.is-mouseout .fp-timeline{margin:0 !important} -.flowplayer.is-mouseout .fp-timeline{-webkit-transition:height .15s .3s,top .15s .3s,margin .15s .3s;-moz-transition:height .15s .3s,top .15s .3s,margin .15s .3s;transition:height .15s .3s,top .15s .3s,margin .15s .3s;height:4px;top:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0} -.flowplayer.is-mouseout .fp-fullscreen,.flowplayer.is-mouseout .fp-unload,.flowplayer.is-mouseout .fp-elapsed,.flowplayer.is-mouseout .fp-remaining,.flowplayer.is-mouseout .fp-duration,.flowplayer.is-mouseout .fp-embed,.flowplayer.is-mouseout .fp-volume,.flowplayer.is-mouseout .fp-play{opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .15s .3s;-moz-transition:opacity .15s .3s;transition:opacity .15s .3s} -.flowplayer.is-mouseover .fp-controls,.flowplayer.fixed-controls .fp-controls{height:35px} -.flowplayer.is-mouseover .fp-fullscreen,.flowplayer.fixed-controls .fp-fullscreen,.flowplayer.is-mouseover .fp-unload,.flowplayer.fixed-controls .fp-unload,.flowplayer.is-mouseover .fp-elapsed,.flowplayer.fixed-controls .fp-elapsed,.flowplayer.is-mouseover .fp-remaining,.flowplayer.fixed-controls .fp-remaining,.flowplayer.is-mouseover .fp-duration,.flowplayer.fixed-controls .fp-duration,.flowplayer.is-mouseover .fp-embed,.flowplayer.fixed-controls .fp-embed,.flowplayer.is-mouseover .fp-logo,.flowplayer.fixed-controls .fp-logo,.flowplayer.is-mouseover .fp-volume,.flowplayer.fixed-controls .fp-volume,.flowplayer.is-mouseover .fp-play,.flowplayer.fixed-controls .fp-play{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.flowplayer.fixed-controls .fp-volume{display:block} -.flowplayer.fixed-controls .fp-controls{bottom:-35px;} -.is-fullscreen.flowplayer.fixed-controls .fp-controls{bottom:0} -.flowplayer.fixed-controls .fp-time em{bottom:-23px;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);} -.is-fullscreen.flowplayer.fixed-controls .fp-time em{bottom:12px} -.flowplayer.is-disabled .fp-progress{background-color:#999} -.flowplayer .fp-embed{position:absolute;top:12px;left:12px;display:block;width:25px;height:20px;background-position:3px -237px} -.flowplayer .fp-embed-code{position:absolute;display:none;top:10px;left:40px;background-color:#333;padding:3px 5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 0 3px #ccc;-moz-box-shadow:0 0 3px #ccc;box-shadow:0 0 3px #ccc;font-size:12px;} -.flowplayer .fp-embed-code:before{content:'';width:0;height:0;position:absolute;top:2px;left:-10px;border:5px solid transparent;border-right-color:#333} -.flowplayer .fp-embed-code textarea{width:400px;height:16px;font-family:monaco,"courier new",verdana;color:#777;white-space:nowrap;resize:none;overflow:hidden;border:0;outline:0;background-color:transparent;color:#ccc} -.flowplayer .fp-embed-code label{display:block;color:#999} -.flowplayer.is-embedding .fp-embed,.flowplayer.is-embedding .fp-embed-code{display:block;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.flowplayer.aside-time .fp-embed{left:110px} -.flowplayer.aside-time .fp-embed-code{left:140px} -.flowplayer.aside-time.is-embedding .fp-time{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} -.flowplayer.is-long.aside-time .fp-embed{left:130px} -.flowplayer.no-time .fp-embed{left:12px !important} -@-moz-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@-webkit-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@-o-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@-ms-keyframes pulse{0%{opacity:0} -100%{opacity:1} -}@keyframes pulse{0%{opacity:0} -100%{opacity:1} -}.flowplayer .fp-controls{background-color:#111} -.flowplayer .fp-timeline,.flowplayer .fp-volumeslider{background-color:#555;background-image:-moz-linear-gradient(rgba(255,255,255,0.01),rgba(255,255,255,0.3));background-image:-webkit-gradient(linear,0 0,0 100%,from(rgba(255,255,255,0.01)),to(rgba(255,255,255,0.3)))} -.flowplayer .fp-buffer{background-color:#eee} -.flowplayer .fp-progress{background-color:#008000} -.flowplayer .fp-volumelevel{background-color:#fff} -.flowplayer .fp-mute{display:block;width:38px;height:20px;background-position:0 -79px;} -.is-muted.flowplayer .fp-mute{background-position:0 -109px;opacity:.85;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=85)} -.flowplayer .fp-play{background-position:9px -20px;} -.is-paused.flowplayer .fp-play{background-position:9px 11px} -.flowplayer .fp-timeline,.flowplayer .fp-volumeslider{border:1px inset;border-color:rgba(0,0,0,0.3) rgba(17,17,17,0.05)} -.flowplayer .fp-controls,.flowplayer .fp-progress{background-image:-moz-linear-gradient(rgba(255,255,255,0.3),rgba(255,255,255,0.01));background-image:-webkit-gradient(linear,0 0,0 100%,from(rgba(255,255,255,0.3)),to(rgba(255,255,255,0.01)))} -.flowplayer .fp-timeline,.flowplayer .fp-progress,.flowplayer .fp-buffer,.flowplayer .fp-volumeslider,.flowplayer .fp-volumelevel{-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px} -.flowplayer.color-light .fp-controls{background-color:#eee;background-image:-moz-linear-gradient(rgba(0,0,0,0.01),rgba(0,0,0,0.3));background-image:-webkit-gradient(linear,0 0,0 100%,from(rgba(0,0,0,0.01)),to(rgba(0,0,0,0.3)))} -.flowplayer.color-light .fp-timeline,.flowplayer.color-light .fp-volumeslider{border-color:#eee #ccc} -.flowplayer.color-alt .fp-progress,.flowplayer.color-alt .fp-volumelevel{background-color:#111} -.flowplayer.color-alt2 .fp-progress,.flowplayer.color-alt2 .fp-volumelevel{background-color:#900} diff --git a/lib/mediaelementjs/background.png b/lib/mediaelementjs/background.png Binary files differnew file mode 100644 index 00000000..fd428412 --- /dev/null +++ b/lib/mediaelementjs/background.png diff --git a/lib/mediaelementjs/bigplay.png b/lib/mediaelementjs/bigplay.png Binary files differnew file mode 100644 index 00000000..694553e3 --- /dev/null +++ b/lib/mediaelementjs/bigplay.png diff --git a/lib/mediaelementjs/bigplay.svg b/lib/mediaelementjs/bigplay.svg new file mode 100644 index 00000000..c2f62bbc --- /dev/null +++ b/lib/mediaelementjs/bigplay.svg @@ -0,0 +1 @@ +<?xml version="1.0" standalone="no"?>
<!-- Generator: Adobe Fireworks CS6, Export SVG Extension by Aaron Beall (http://fireworks.abeall.com) . Version: 0.6.1 -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg id="bigplay-gradient.fw-Page%201" viewBox="0 0 100 200" style="background-color:#ffffff00" version="1.1"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"
x="0px" y="0px" width="100px" height="200px"
>
<defs>
<radialGradient id="gradient1" cx="50%" cy="50%" r="50%">
<stop stop-color="#222222" stop-opacity="0" offset="70%"/>
<stop stop-color="#222222" stop-opacity="0.0118" offset="70.202%"/>
<stop stop-color="#333333" stop-opacity="1" offset="85%"/>
<stop stop-color="#333333" stop-opacity="0" offset="100%"/>
</radialGradient>
<radialGradient id="gradient2" cx="50%" cy="50%" r="50%">
<stop stop-color="#bbbbbb" stop-opacity="0" offset="70%"/>
<stop stop-color="#bbbbbb" stop-opacity="0.0118" offset="70.202%"/>
<stop stop-color="#bbbbbb" stop-opacity="1" offset="85%"/>
<stop stop-color="#bbbbbb" stop-opacity="0" offset="100%"/>
</radialGradient>
<filter id="filter1" x="-100%" y="-100%" width="300%" height="300%">
<!-- Glow -->
<feColorMatrix result="out" in="SourceGraphic" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.251 0"/>
<feMorphology result="out" in="out" operator="dilate" radius="3"/>
<feGaussianBlur result="out" in="out" stdDeviation="1.5"/>
<feBlend in="SourceGraphic" in2="out" mode="normal" result="Glow1"/>
</filter>
<filter id="filter2" x="-100%" y="-100%" width="300%" height="300%">
<!-- Glow -->
<feColorMatrix result="out" in="SourceGraphic" type="matrix" values="0 0 0 0.8667 0 0 0 0 0.8667 0 0 0 0 0.8667 0 0 0 0 0.251 0"/>
<feMorphology result="out" in="out" operator="dilate" radius="3"/>
<feGaussianBlur result="out" in="out" stdDeviation="1.5"/>
<feBlend in="SourceGraphic" in2="out" mode="normal" result="Glow2"/>
</filter>
</defs>
<g id="Background">
</g>
<g id="dark%20shadow">
<path d="M 22 50 C 22 34.5358 34.5358 22 50 22 C 65.4642 22 78 34.5358 78 50 C 78 65.4642 65.4642 78 50 78 C 34.5358 78 22 65.4642 22 50 ZM 5 50 C 5 74.8531 25.1469 95 50 95 C 74.8531 95 95 74.8531 95 50 C 95 25.1469 74.8531 5 50 5 C 25.1469 5 5 25.1469 5 50 Z" fill="url(#gradient1)"/>
<path d="M 22 150 C 22 134.5358 34.5358 122 50 122 C 65.4642 122 78 134.5358 78 150 C 78 165.4642 65.4642 178 50 178 C 34.5358 178 22 165.4642 22 150 ZM 5 150 C 5 174.8531 25.1469 195 50 195 C 74.8531 195 95 174.8531 95 150 C 95 125.1469 74.8531 105 50 105 C 25.1469 105 5 125.1469 5 150 Z" fill="url(#gradient2)"/>
</g>
<g id="dark">
<path id="Polygon" filter="url(#filter1)" d="M 72.5 49.5 L 38.75 68.9856 L 38.75 30.0144 L 72.5 49.5 Z" fill="#ffffff"/>
<path id="Ellipse" d="M 13 50.5 C 13 29.7891 29.7891 13 50.5 13 C 71.2109 13 88 29.7891 88 50.5 C 88 71.2109 71.2109 88 50.5 88 C 29.7891 88 13 71.2109 13 50.5 Z" stroke="#ffffff" stroke-width="5" fill="none"/>
</g>
<g id="light">
<path id="Polygon2" filter="url(#filter2)" d="M 72.5 149.5 L 38.75 168.9856 L 38.75 130.0144 L 72.5 149.5 Z" fill="#ffffff"/>
<path id="Ellipse2" d="M 13 150.5 C 13 129.7891 29.7891 113 50.5 113 C 71.2109 113 88 129.7891 88 150.5 C 88 171.211 71.2109 188 50.5 188 C 29.7891 188 13 171.211 13 150.5 Z" stroke="#ffffff" stroke-width="5" fill="none"/>
</g>
</svg>
\ No newline at end of file diff --git a/lib/mediaelementjs/controls.png b/lib/mediaelementjs/controls.png Binary files differnew file mode 100644 index 00000000..f6a857d8 --- /dev/null +++ b/lib/mediaelementjs/controls.png diff --git a/lib/mediaelementjs/controls.svg b/lib/mediaelementjs/controls.svg new file mode 100644 index 00000000..af3bd416 --- /dev/null +++ b/lib/mediaelementjs/controls.svg @@ -0,0 +1 @@ +<?xml version="1.0" standalone="no"?>
<!-- Generator: Adobe Fireworks CS6, Export SVG Extension by Aaron Beall (http://fireworks.abeall.com) . Version: 0.6.1 -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg id="controls.fw-Page%201" viewBox="0 0 144 32" style="background-color:#ffffff00" version="1.1"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"
x="0px" y="0px" width="144px" height="32px"
>
<defs>
<radialGradient id="gradient1" cx="50%" cy="50%" r="50%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#f2f2f2" stop-opacity="0.2" offset="100%"/>
</radialGradient>
<linearGradient id="gradient2" x1="50%" y1="-7.8652%" x2="50%" y2="249.6629%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="100%"/>
</linearGradient>
<linearGradient id="gradient3" x1="50%" y1="0%" x2="50%" y2="238.75%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="100%"/>
</linearGradient>
<linearGradient id="gradient4" x1="50%" y1="0%" x2="50%" y2="100%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="100%"/>
</linearGradient>
<linearGradient id="gradient5" x1="50%" y1="-33.3333%" x2="50%" y2="152.0833%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="100%"/>
</linearGradient>
<linearGradient id="gradient6" x1="50%" y1="0%" x2="50%" y2="100%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="100%"/>
</linearGradient>
<linearGradient id="gradient7" x1="50%" y1="-33.3333%" x2="50%" y2="152.0833%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="100%"/>
</linearGradient>
<linearGradient id="gradient8" x1="50%" y1="0%" x2="50%" y2="100%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="100%"/>
</linearGradient>
<linearGradient id="gradient9" x1="50%" y1="0%" x2="50%" y2="100%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="100%"/>
</linearGradient>
<linearGradient id="gradient10" x1="50%" y1="0%" x2="50%" y2="100%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="100%"/>
</linearGradient>
<linearGradient id="gradient11" x1="50%" y1="0%" x2="50%" y2="100%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="100%"/>
</linearGradient>
<linearGradient id="gradient12" x1="50%" y1="0%" x2="50%" y2="238.75%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="100%"/>
</linearGradient>
<linearGradient id="gradient13" x1="40%" y1="-140%" x2="40%" y2="98.75%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="100%"/>
</linearGradient>
<linearGradient id="gradient14" x1="50%" y1="0%" x2="50%" y2="238.75%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="100%"/>
</linearGradient>
<linearGradient id="gradient15" x1="60%" y1="-140%" x2="60%" y2="98.75%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="100%"/>
</linearGradient>
<linearGradient id="gradient16" x1="50%" y1="0%" x2="50%" y2="298.4375%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="100%"/>
</linearGradient>
<linearGradient id="gradient17" x1="50%" y1="0%" x2="50%" y2="238.75%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="100%"/>
</linearGradient>
<linearGradient id="gradient18" x1="50%" y1="-200%" x2="50%" y2="100%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="100%"/>
</linearGradient>
<linearGradient id="gradient19" x1="50%" y1="-200%" x2="50%" y2="110.9375%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="100%"/>
</linearGradient>
<linearGradient id="gradient20" x1="55%" y1="0%" x2="55%" y2="100%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="100%"/>
</linearGradient>
<linearGradient id="gradient21" x1="50%" y1="0%" x2="50%" y2="100%">
<stop stop-color="#ffffff" stop-opacity="1" offset="0%"/>
<stop stop-color="#c8c8c8" stop-opacity="1" offset="99.4444%"/>
</linearGradient>
</defs>
<g id="BG">
</g>
<g id="controls">
<path id="Line" d="M 98.5 7.5 L 109.5 7.5 " stroke="#ffffff" stroke-width="1" fill="none"/>
<path id="Line2" d="M 98.5 3.5 L 109.5 3.5 " stroke="#ffffff" stroke-width="1" fill="none"/>
<path id="Line3" d="M 98.5 11.5 L 109.5 11.5 " stroke="#ffffff" stroke-width="1" fill="none"/>
<path id="Ellipse" d="M 108 11.5 C 108 10.6716 108.4477 10 109 10 C 109.5523 10 110 10.6716 110 11.5 C 110 12.3284 109.5523 13 109 13 C 108.4477 13 108 12.3284 108 11.5 Z" fill="#ffffff"/>
<path id="Ellipse2" d="M 104 7.5 C 104 6.6716 104.4477 6 105 6 C 105.5523 6 106 6.6716 106 7.5 C 106 8.3284 105.5523 9 105 9 C 104.4477 9 104 8.3284 104 7.5 Z" fill="#ffffff"/>
<path id="Ellipse3" d="M 108 3.5 C 108 2.6716 108.4477 2 109 2 C 109.5523 2 110 2.6716 110 3.5 C 110 4.3284 109.5523 5 109 5 C 108.4477 5 108 4.3284 108 3.5 Z" fill="#ffffff"/>
</g>
<g id="backlight">
<g id="off">
<rect x="83" y="21" width="10" height="6" stroke="#ffffff" stroke-width="1" fill="#333333"/>
</g>
<g id="on">
<path id="Ellipse4" d="M 81 8 C 81 5.2385 84.134 3 88 3 C 91.866 3 95 5.2385 95 8 C 95 10.7615 91.866 13 88 13 C 84.134 13 81 10.7615 81 8 Z" fill="url(#gradient1)"/>
<rect x="83" y="5" width="10" height="6" stroke="#ffffff" stroke-width="1" fill="#333333"/>
</g>
</g>
<g id="loop">
<g id="on2">
<path d="M 73.795 4.205 C 75.2155 4.8785 76.2 6.3234 76.2 8 C 76.2 10.3196 74.3196 12.2 72 12.2 C 69.6804 12.2 67.8 10.3196 67.8 8 C 67.8 6.3234 68.7845 4.8785 70.205 4.205 L 68.875 2.875 C 67.1501 3.9289 66 5.8306 66 8 C 66 11.3138 68.6862 14 72 14 C 75.3138 14 78 11.3138 78 8 C 78 5.8306 76.8499 3.9289 75.125 2.875 L 73.795 4.205 Z" fill="url(#gradient2)"/>
<path d="M 71 2 L 66 2 L 71 7 L 71 2 Z" fill="url(#gradient3)"/>
</g>
<g id="off2">
<path d="M 73.795 20.205 C 75.2155 20.8785 76.2 22.3234 76.2 24 C 76.2 26.3196 74.3196 28.2 72 28.2 C 69.6804 28.2 67.8 26.3196 67.8 24 C 67.8 22.3234 68.7845 20.8785 70.205 20.205 L 68.875 18.875 C 67.1501 19.9289 66 21.8306 66 24 C 66 27.3138 68.6862 30 72 30 C 75.3138 30 78 27.3138 78 24 C 78 21.8306 76.8499 19.9289 75.125 18.875 L 73.795 20.205 Z" fill="#a8a8b7"/>
<path d="M 71 18 L 66 18 L 71 23 L 71 18 Z" fill="#a8a8b7"/>
</g>
</g>
<g id="cc">
<rect visibility="hidden" x="49" y="2" width="14" height="12" stroke="#b0b0b0" stroke-width="1" fill="none"/>
<text visibility="hidden" x="49" y="17" width="14" fill="#ffffff" style="font-size: 10px; color: #ffffff; font-family: Arial; text-align: center; "><tspan><![CDATA[cc]]></tspan></text>
<path d="M 55 7 C 50.2813 3.7813 50.063 12.9405 55 10 " stroke="#ffffff" stroke-width="1" fill="none"/>
<path d="M 60 7 C 55.2813 3.7813 55.063 12.9405 60 10 " stroke="#ffffff" stroke-width="1" fill="none"/>
<path d="M 50 3 L 62 3 L 62 13 L 50 13 L 50 3 ZM 49 2 L 49 14 L 63 14 L 63 2 L 49 2 Z" fill="url(#gradient4)"/>
<rect x="49" y="2" width="14" height="12" fill="none"/>
</g>
<g id="volume">
<g id="no%20sound">
<rect x="17" y="5" width="5" height="6" fill="url(#gradient5)"/>
<path d="M 21 5 L 25 2 L 25 14 L 21 11.0625 L 21 5 Z" fill="url(#gradient6)"/>
</g>
<g id="sound%20bars">
<rect x="17" y="21" width="5" height="6" fill="url(#gradient7)"/>
<path d="M 21 21 L 25 18 L 25 30 L 21 27.0625 L 21 21 Z" fill="url(#gradient8)"/>
<path d="M 27 18 C 27 18 30.0625 17.375 30 24 C 29.9375 30.625 27 30 27 30 " stroke="#ffffff" stroke-width="1" fill="none"/>
<path d="M 26 21.0079 C 26 21.0079 28.041 20.6962 27.9994 24 C 27.9577 27.3038 26 26.9921 26 26.9921 " stroke="#ffffff" stroke-width="1" fill="none"/>
</g>
</g>
<g id="play/pause">
<g id="play">
<path id="Polygon" d="M 14 8.5 L 3 14 L 3 3 L 14 8.5 Z" fill="url(#gradient9)"/>
</g>
<g id="pause">
<rect x="3" y="18" width="3" height="12" fill="url(#gradient10)"/>
<rect x="10" y="18" width="3" height="12" fill="url(#gradient11)"/>
</g>
</g>
<g id="fullscreen">
<g id="enter%201">
<path d="M 34 2 L 39 2 L 34 7 L 34 2 Z" fill="url(#gradient12)"/>
<path d="M 34 14 L 39 14 L 34 9 L 34 14 Z" fill="url(#gradient13)"/>
<path d="M 46 2 L 41 2 L 46 7 L 46 2 Z" fill="url(#gradient14)"/>
<path d="M 46 14 L 41 14 L 46 9 L 46 14 Z" fill="url(#gradient15)"/>
</g>
<g id="exit">
<path d="M 42 22 L 46 22 L 42 18 L 42 22 Z" fill="url(#gradient16)"/>
<path d="M 38 22 L 38 18 L 34 22 L 38 22 Z" fill="url(#gradient17)"/>
<path d="M 38 26 L 34 26 L 38 30 L 38 26 Z" fill="url(#gradient18)"/>
<path d="M 42 26 L 42 30 L 46 26 L 42 26 Z" fill="url(#gradient19)"/>
</g>
</g>
<g id="stop">
<rect x="115" y="3" width="10" height="10" fill="url(#gradient20)"/>
</g>
<g id="chooser">
<path d="M 135.2346 6.1522 C 136.2551 5.7295 137.4251 6.2141 137.8478 7.2346 C 138.2704 8.2551 137.7859 9.425 136.7654 9.8478 C 135.7449 10.2705 134.5749 9.7859 134.1522 8.7654 C 133.7295 7.7449 134.2141 6.5749 135.2346 6.1522 ZM 133.2735 1.4176 L 136 4.0054 L 138.7265 1.4176 L 138.8246 5.1754 L 142.5824 5.2735 L 139.9946 8 L 142.5824 10.7265 L 138.8246 10.8246 L 138.7265 14.5824 L 136 11.9946 L 133.2735 14.5824 L 133.1754 10.8246 L 129.4176 10.7265 L 132.0054 8 L 129.4176 5.2735 L 133.1754 5.1754 L 133.2735 1.4176 Z" fill="url(#gradient21)"/>
</g>
</svg>
\ No newline at end of file diff --git a/lib/mediaelementjs/flashmediaelement.swf b/lib/mediaelementjs/flashmediaelement.swf Binary files differnew file mode 100644 index 00000000..b78fdb65 --- /dev/null +++ b/lib/mediaelementjs/flashmediaelement.swf diff --git a/lib/mediaelementjs/loading.gif b/lib/mediaelementjs/loading.gif Binary files differnew file mode 100644 index 00000000..612222be --- /dev/null +++ b/lib/mediaelementjs/loading.gif diff --git a/lib/mediaelementjs/mediaelement.js b/lib/mediaelementjs/mediaelement.js new file mode 100644 index 00000000..632a5949 --- /dev/null +++ b/lib/mediaelementjs/mediaelement.js @@ -0,0 +1,64 @@ +/*! +* MediaElement.js +* HTML5 <video> and <audio> shim and player +* http://mediaelementjs.com/ +* +* Creates a JavaScript object that mimics HTML5 MediaElement API +* for browsers that don't understand HTML5 or can't play the provided codec +* Can play MP4 (H.264), Ogg, WebM, FLV, WMV, WMA, ACC, and MP3 +* +* Copyright 2010-2012, John Dyer (http://j.hn) +* License: MIT +* +*/var mejs=mejs||{};mejs.version="2.10.3";mejs.meIndex=0; +mejs.plugins={silverlight:[{version:[3,0],types:["video/mp4","video/m4v","video/mov","video/wmv","audio/wma","audio/m4a","audio/mp3","audio/wav","audio/mpeg"]}],flash:[{version:[9,0,124],types:["video/mp4","video/m4v","video/mov","video/flv","video/rtmp","video/x-flv","audio/flv","audio/x-flv","audio/mp3","audio/m4a","audio/mpeg","video/youtube","video/x-youtube"]}],youtube:[{version:null,types:["video/youtube","video/x-youtube"]}],vimeo:[{version:null,types:["video/vimeo","video/x-vimeo"]}]}; +mejs.Utility={encodeUrl:function(a){return encodeURIComponent(a)},escapeHTML:function(a){return a.toString().split("&").join("&").split("<").join("<").split('"').join(""")},absolutizeUrl:function(a){var b=document.createElement("div");b.innerHTML='<a href="'+this.escapeHTML(a)+'">x</a>';return b.firstChild.href},getScriptPath:function(a){for(var b=0,c,d="",e="",g,f=document.getElementsByTagName("script"),h=f.length,l=a.length;b<h;b++){g=f[b].src;for(c=0;c<l;c++){e=a[c];if(g.indexOf(e)> +-1){d=g.substring(0,g.indexOf(e));break}}if(d!=="")break}return d},secondsToTimeCode:function(a,b,c,d){if(typeof c=="undefined")c=false;else if(typeof d=="undefined")d=25;var e=Math.floor(a/3600)%24,g=Math.floor(a/60)%60,f=Math.floor(a%60);a=Math.floor((a%1*d).toFixed(3));return(b||e>0?(e<10?"0"+e:e)+":":"")+(g<10?"0"+g:g)+":"+(f<10?"0"+f:f)+(c?":"+(a<10?"0"+a:a):"")},timeCodeToSeconds:function(a,b,c,d){if(typeof c=="undefined")c=false;else if(typeof d=="undefined")d=25;a=a.split(":");b=parseInt(a[0], +10);var e=parseInt(a[1],10),g=parseInt(a[2],10),f=0,h=0;if(c)f=parseInt(a[3])/d;return h=b*3600+e*60+g+f},convertSMPTEtoSeconds:function(a){if(typeof a!="string")return false;a=a.replace(",",".");var b=0,c=a.indexOf(".")!=-1?a.split(".")[1].length:0,d=1;a=a.split(":").reverse();for(var e=0;e<a.length;e++){d=1;if(e>0)d=Math.pow(60,e);b+=Number(a[e])*d}return Number(b.toFixed(c))},removeSwf:function(a){var b=document.getElementById(a);if(b&&b.nodeName=="OBJECT")if(mejs.MediaFeatures.isIE){b.style.display= +"none";(function(){b.readyState==4?mejs.Utility.removeObjectInIE(a):setTimeout(arguments.callee,10)})()}else b.parentNode.removeChild(b)},removeObjectInIE:function(a){if(a=document.getElementById(a)){for(var b in a)if(typeof a[b]=="function")a[b]=null;a.parentNode.removeChild(a)}}}; +mejs.PluginDetector={hasPluginVersion:function(a,b){var c=this.plugins[a];b[1]=b[1]||0;b[2]=b[2]||0;return c[0]>b[0]||c[0]==b[0]&&c[1]>b[1]||c[0]==b[0]&&c[1]==b[1]&&c[2]>=b[2]?true:false},nav:window.navigator,ua:window.navigator.userAgent.toLowerCase(),plugins:[],addPlugin:function(a,b,c,d,e){this.plugins[a]=this.detectPlugin(b,c,d,e)},detectPlugin:function(a,b,c,d){var e=[0,0,0],g;if(typeof this.nav.plugins!="undefined"&&typeof this.nav.plugins[a]=="object"){if((c=this.nav.plugins[a].description)&& +!(typeof this.nav.mimeTypes!="undefined"&&this.nav.mimeTypes[b]&&!this.nav.mimeTypes[b].enabledPlugin)){e=c.replace(a,"").replace(/^\s+/,"").replace(/\sr/gi,".").split(".");for(a=0;a<e.length;a++)e[a]=parseInt(e[a].match(/\d+/),10)}}else if(typeof window.ActiveXObject!="undefined")try{if(g=new ActiveXObject(c))e=d(g)}catch(f){}return e}}; +mejs.PluginDetector.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",function(a){var b=[];if(a=a.GetVariable("$version")){a=a.split(" ")[1].split(",");b=[parseInt(a[0],10),parseInt(a[1],10),parseInt(a[2],10)]}return b}); +mejs.PluginDetector.addPlugin("silverlight","Silverlight Plug-In","application/x-silverlight-2","AgControl.AgControl",function(a){var b=[0,0,0,0],c=function(d,e,g,f){for(;d.isVersionSupported(e[0]+"."+e[1]+"."+e[2]+"."+e[3]);)e[g]+=f;e[g]-=f};c(a,b,0,1);c(a,b,1,1);c(a,b,2,1E4);c(a,b,2,1E3);c(a,b,2,100);c(a,b,2,10);c(a,b,2,1);c(a,b,3,1);return b}); +mejs.MediaFeatures={init:function(){var a=this,b=document,c=mejs.PluginDetector.nav,d=mejs.PluginDetector.ua.toLowerCase(),e,g=["source","track","audio","video"];a.isiPad=d.match(/ipad/i)!==null;a.isiPhone=d.match(/iphone/i)!==null;a.isiOS=a.isiPhone||a.isiPad;a.isAndroid=d.match(/android/i)!==null;a.isBustedAndroid=d.match(/android 2\.[12]/)!==null;a.isIE=c.appName.toLowerCase().indexOf("microsoft")!=-1;a.isChrome=d.match(/chrome/gi)!==null;a.isFirefox=d.match(/firefox/gi)!==null;a.isWebkit=d.match(/webkit/gi)!== +null;a.isGecko=d.match(/gecko/gi)!==null&&!a.isWebkit;a.isOpera=d.match(/opera/gi)!==null;a.hasTouch="ontouchstart"in window;a.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect;for(c=0;c<g.length;c++)e=document.createElement(g[c]);a.supportsMediaTag=typeof e.canPlayType!=="undefined"||a.isBustedAndroid;a.hasSemiNativeFullScreen=typeof e.webkitEnterFullscreen!=="undefined";a.hasWebkitNativeFullScreen=typeof e.webkitRequestFullScreen!=="undefined"; +a.hasMozNativeFullScreen=typeof e.mozRequestFullScreen!=="undefined";a.hasTrueNativeFullScreen=a.hasWebkitNativeFullScreen||a.hasMozNativeFullScreen;a.nativeFullScreenEnabled=a.hasTrueNativeFullScreen;if(a.hasMozNativeFullScreen)a.nativeFullScreenEnabled=e.mozFullScreenEnabled;if(this.isChrome)a.hasSemiNativeFullScreen=false;if(a.hasTrueNativeFullScreen){a.fullScreenEventName=a.hasWebkitNativeFullScreen?"webkitfullscreenchange":"mozfullscreenchange";a.isFullScreen=function(){if(e.mozRequestFullScreen)return b.mozFullScreen; +else if(e.webkitRequestFullScreen)return b.webkitIsFullScreen};a.requestFullScreen=function(f){if(a.hasWebkitNativeFullScreen)f.webkitRequestFullScreen();else a.hasMozNativeFullScreen&&f.mozRequestFullScreen()};a.cancelFullScreen=function(){if(a.hasWebkitNativeFullScreen)document.webkitCancelFullScreen();else a.hasMozNativeFullScreen&&document.mozCancelFullScreen()}}if(a.hasSemiNativeFullScreen&&d.match(/mac os x 10_5/i)){a.hasNativeFullScreen=false;a.hasSemiNativeFullScreen=false}}};mejs.MediaFeatures.init(); +mejs.HtmlMediaElement={pluginType:"native",isFullScreen:false,setCurrentTime:function(a){this.currentTime=a},setMuted:function(a){this.muted=a},setVolume:function(a){this.volume=a},stop:function(){this.pause()},setSrc:function(a){for(var b=this.getElementsByTagName("source");b.length>0;)this.removeChild(b[0]);if(typeof a=="string")this.src=a;else{var c;for(b=0;b<a.length;b++){c=a[b];if(this.canPlayType(c.type)){this.src=c.src;break}}}},setVideoSize:function(a,b){this.width=a;this.height=b}}; +mejs.PluginMediaElement=function(a,b,c){this.id=a;this.pluginType=b;this.src=c;this.events={};this.attributes={}}; +mejs.PluginMediaElement.prototype={pluginElement:null,pluginType:"",isFullScreen:false,playbackRate:-1,defaultPlaybackRate:-1,seekable:[],played:[],paused:true,ended:false,seeking:false,duration:0,error:null,tagName:"",muted:false,volume:1,currentTime:0,play:function(){if(this.pluginApi!=null){this.pluginType=="youtube"?this.pluginApi.playVideo():this.pluginApi.playMedia();this.paused=false}},load:function(){if(this.pluginApi!=null){this.pluginType!="youtube"&&this.pluginApi.loadMedia();this.paused= +false}},pause:function(){if(this.pluginApi!=null){this.pluginType=="youtube"?this.pluginApi.pauseVideo():this.pluginApi.pauseMedia();this.paused=true}},stop:function(){if(this.pluginApi!=null){this.pluginType=="youtube"?this.pluginApi.stopVideo():this.pluginApi.stopMedia();this.paused=true}},canPlayType:function(a){var b,c,d,e=mejs.plugins[this.pluginType];for(b=0;b<e.length;b++){d=e[b];if(mejs.PluginDetector.hasPluginVersion(this.pluginType,d.version))for(c=0;c<d.types.length;c++)if(a==d.types[c])return true}return false}, +positionFullscreenButton:function(a,b,c){this.pluginApi!=null&&this.pluginApi.positionFullscreenButton&&this.pluginApi.positionFullscreenButton(a,b,c)},hideFullscreenButton:function(){this.pluginApi!=null&&this.pluginApi.hideFullscreenButton&&this.pluginApi.hideFullscreenButton()},setSrc:function(a){if(typeof a=="string"){this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(a));this.src=mejs.Utility.absolutizeUrl(a)}else{var b,c;for(b=0;b<a.length;b++){c=a[b];if(this.canPlayType(c.type)){this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(c.src)); +this.src=mejs.Utility.absolutizeUrl(a);break}}}},setCurrentTime:function(a){if(this.pluginApi!=null){this.pluginType=="youtube"?this.pluginApi.seekTo(a):this.pluginApi.setCurrentTime(a);this.currentTime=a}},setVolume:function(a){if(this.pluginApi!=null){this.pluginType=="youtube"?this.pluginApi.setVolume(a*100):this.pluginApi.setVolume(a);this.volume=a}},setMuted:function(a){if(this.pluginApi!=null){if(this.pluginType=="youtube"){a?this.pluginApi.mute():this.pluginApi.unMute();this.muted=a;this.dispatchEvent("volumechange")}else this.pluginApi.setMuted(a); +this.muted=a}},setVideoSize:function(a,b){if(this.pluginElement.style){this.pluginElement.style.width=a+"px";this.pluginElement.style.height=b+"px"}this.pluginApi!=null&&this.pluginApi.setVideoSize&&this.pluginApi.setVideoSize(a,b)},setFullscreen:function(a){this.pluginApi!=null&&this.pluginApi.setFullscreen&&this.pluginApi.setFullscreen(a)},enterFullScreen:function(){this.pluginApi!=null&&this.pluginApi.setFullscreen&&this.setFullscreen(true)},exitFullScreen:function(){this.pluginApi!=null&&this.pluginApi.setFullscreen&& +this.setFullscreen(false)},addEventListener:function(a,b){this.events[a]=this.events[a]||[];this.events[a].push(b)},removeEventListener:function(a,b){if(!a){this.events={};return true}var c=this.events[a];if(!c)return true;if(!b){this.events[a]=[];return true}for(i=0;i<c.length;i++)if(c[i]===b){this.events[a].splice(i,1);return true}return false},dispatchEvent:function(a){var b,c,d=this.events[a];if(d){c=Array.prototype.slice.call(arguments,1);for(b=0;b<d.length;b++)d[b].apply(null,c)}},hasAttribute:function(a){return a in +this.attributes},removeAttribute:function(a){delete this.attributes[a]},getAttribute:function(a){if(this.hasAttribute(a))return this.attributes[a];return""},setAttribute:function(a,b){this.attributes[a]=b},remove:function(){mejs.Utility.removeSwf(this.pluginElement.id)}}; +mejs.MediaPluginBridge={pluginMediaElements:{},htmlMediaElements:{},registerPluginElement:function(a,b,c){this.pluginMediaElements[a]=b;this.htmlMediaElements[a]=c},initPlugin:function(a){var b=this.pluginMediaElements[a],c=this.htmlMediaElements[a];if(b){switch(b.pluginType){case "flash":b.pluginElement=b.pluginApi=document.getElementById(a);break;case "silverlight":b.pluginElement=document.getElementById(b.id);b.pluginApi=b.pluginElement.Content.MediaElementJS}b.pluginApi!=null&&b.success&&b.success(b, +c)}},fireEvent:function(a,b,c){var d,e;a=this.pluginMediaElements[a];b={type:b,target:a};for(d in c){a[d]=c[d];b[d]=c[d]}e=c.bufferedTime||0;b.target.buffered=b.buffered={start:function(){return 0},end:function(){return e},length:1};a.dispatchEvent(b.type,b)}}; +mejs.MediaElementDefaults={mode:"auto",plugins:["flash","silverlight","youtube","vimeo"],enablePluginDebug:false,type:"",pluginPath:mejs.Utility.getScriptPath(["mediaelement.js","mediaelement.min.js","mediaelement-and-player.js","mediaelement-and-player.min.js"]),flashName:"flashmediaelement.swf",flashStreamer:"",enablePluginSmoothing:false,silverlightName:"silverlightmediaelement.xap",defaultVideoWidth:480,defaultVideoHeight:270,pluginWidth:-1,pluginHeight:-1,pluginVars:[],timerRate:250,startVolume:0.8, +success:function(){},error:function(){}};mejs.MediaElement=function(a,b){return mejs.HtmlMediaElementShim.create(a,b)}; +mejs.HtmlMediaElementShim={create:function(a,b){var c=mejs.MediaElementDefaults,d=typeof a=="string"?document.getElementById(a):a,e=d.tagName.toLowerCase(),g=e==="audio"||e==="video",f=g?d.getAttribute("src"):d.getAttribute("href");e=d.getAttribute("poster");var h=d.getAttribute("autoplay"),l=d.getAttribute("preload"),j=d.getAttribute("controls"),k;for(k in b)c[k]=b[k];f=typeof f=="undefined"||f===null||f==""?null:f;e=typeof e=="undefined"||e===null?"":e;l=typeof l=="undefined"||l===null||l==="false"? +"none":l;h=!(typeof h=="undefined"||h===null||h==="false");j=!(typeof j=="undefined"||j===null||j==="false");k=this.determinePlayback(d,c,mejs.MediaFeatures.supportsMediaTag,g,f);k.url=k.url!==null?mejs.Utility.absolutizeUrl(k.url):"";if(k.method=="native"){if(mejs.MediaFeatures.isBustedAndroid){d.src=k.url;d.addEventListener("click",function(){d.play()},false)}return this.updateNative(k,c,h,l)}else if(k.method!=="")return this.createPlugin(k,c,e,h,l,j);else{this.createErrorMessage(k,c,e);return this}}, +determinePlayback:function(a,b,c,d,e){var g=[],f,h,l,j={method:"",url:"",htmlMediaElement:a,isVideo:a.tagName.toLowerCase()!="audio"},k;if(typeof b.type!="undefined"&&b.type!=="")if(typeof b.type=="string")g.push({type:b.type,url:e});else for(f=0;f<b.type.length;f++)g.push({type:b.type[f],url:e});else if(e!==null){l=this.formatType(e,a.getAttribute("type"));g.push({type:l,url:e})}else for(f=0;f<a.childNodes.length;f++){h=a.childNodes[f];if(h.nodeType==1&&h.tagName.toLowerCase()=="source"){e=h.getAttribute("src"); +l=this.formatType(e,h.getAttribute("type"));h=h.getAttribute("media");if(!h||!window.matchMedia||window.matchMedia&&window.matchMedia(h).matches)g.push({type:l,url:e})}}if(!d&&g.length>0&&g[0].url!==null&&this.getTypeFromFile(g[0].url).indexOf("audio")>-1)j.isVideo=false;if(mejs.MediaFeatures.isBustedAndroid)a.canPlayType=function(m){return m.match(/video\/(mp4|m4v)/gi)!==null?"maybe":""};if(c&&(b.mode==="auto"||b.mode==="auto_plugin"||b.mode==="native")){if(!d){f=document.createElement(j.isVideo? +"video":"audio");a.parentNode.insertBefore(f,a);a.style.display="none";j.htmlMediaElement=a=f}for(f=0;f<g.length;f++)if(a.canPlayType(g[f].type).replace(/no/,"")!==""||a.canPlayType(g[f].type.replace(/mp3/,"mpeg")).replace(/no/,"")!==""){j.method="native";j.url=g[f].url;break}if(j.method==="native"){if(j.url!==null)a.src=j.url;if(b.mode!=="auto_plugin")return j}}if(b.mode==="auto"||b.mode==="auto_plugin"||b.mode==="shim")for(f=0;f<g.length;f++){l=g[f].type;for(a=0;a<b.plugins.length;a++){e=b.plugins[a]; +h=mejs.plugins[e];for(c=0;c<h.length;c++){k=h[c];if(k.version==null||mejs.PluginDetector.hasPluginVersion(e,k.version))for(d=0;d<k.types.length;d++)if(l==k.types[d]){j.method=e;j.url=g[f].url;return j}}}}if(b.mode==="auto_plugin"&&j.method==="native")return j;if(j.method===""&&g.length>0)j.url=g[0].url;return j},formatType:function(a,b){return a&&!b?this.getTypeFromFile(a):b&&~b.indexOf(";")?b.substr(0,b.indexOf(";")):b},getTypeFromFile:function(a){a=a.split("?")[0];a=a.substring(a.lastIndexOf(".")+ +1);return(/(mp4|m4v|ogg|ogv|webm|webmv|flv|wmv|mpeg|mov)/gi.test(a)?"video":"audio")+"/"+this.getTypeFromExtension(a)},getTypeFromExtension:function(a){switch(a){case "mp4":case "m4v":return"mp4";case "webm":case "webma":case "webmv":return"webm";case "ogg":case "oga":case "ogv":return"ogg";default:return a}},createErrorMessage:function(a,b,c){var d=a.htmlMediaElement,e=document.createElement("div");e.className="me-cannotplay";try{e.style.width=d.width+"px";e.style.height=d.height+"px"}catch(g){}e.innerHTML= +c!==""?'<a href="'+a.url+'"><img src="'+c+'" width="100%" height="100%" /></a>':'<a href="'+a.url+'"><span>'+mejs.i18n.t("Download File")+"</span></a>";d.parentNode.insertBefore(e,d);d.style.display="none";b.error(d)},createPlugin:function(a,b,c,d,e,g){c=a.htmlMediaElement;var f=1,h=1,l="me_"+a.method+"_"+mejs.meIndex++,j=new mejs.PluginMediaElement(l,a.method,a.url),k=document.createElement("div"),m;j.tagName=c.tagName;for(m=0;m<c.attributes.length;m++){var n=c.attributes[m];n.specified==true&&j.setAttribute(n.name, +n.value)}for(m=c.parentNode;m!==null&&m.tagName.toLowerCase()!="body";){if(m.parentNode.tagName.toLowerCase()=="p"){m.parentNode.parentNode.insertBefore(m,m.parentNode);break}m=m.parentNode}if(a.isVideo){f=b.videoWidth>0?b.videoWidth:c.getAttribute("width")!==null?c.getAttribute("width"):b.defaultVideoWidth;h=b.videoHeight>0?b.videoHeight:c.getAttribute("height")!==null?c.getAttribute("height"):b.defaultVideoHeight;f=mejs.Utility.encodeUrl(f);h=mejs.Utility.encodeUrl(h)}else if(b.enablePluginDebug){f= +320;h=240}j.success=b.success;mejs.MediaPluginBridge.registerPluginElement(l,j,c);k.className="me-plugin";k.id=l+"_container";a.isVideo?c.parentNode.insertBefore(k,c):document.body.insertBefore(k,document.body.childNodes[0]);d=["id="+l,"isvideo="+(a.isVideo?"true":"false"),"autoplay="+(d?"true":"false"),"preload="+e,"width="+f,"startvolume="+b.startVolume,"timerrate="+b.timerRate,"flashstreamer="+b.flashStreamer,"height="+h];if(a.url!==null)a.method=="flash"?d.push("file="+mejs.Utility.encodeUrl(a.url)): +d.push("file="+a.url);b.enablePluginDebug&&d.push("debug=true");b.enablePluginSmoothing&&d.push("smoothing=true");g&&d.push("controls=true");if(b.pluginVars)d=d.concat(b.pluginVars);switch(a.method){case "silverlight":k.innerHTML='<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" id="'+l+'" name="'+l+'" width="'+f+'" height="'+h+'"><param name="initParams" value="'+d.join(",")+'" /><param name="windowless" value="true" /><param name="background" value="black" /><param name="minRuntimeVersion" value="3.0.0.0" /><param name="autoUpgrade" value="true" /><param name="source" value="'+ +b.pluginPath+b.silverlightName+'" /></object>';break;case "flash":if(mejs.MediaFeatures.isIE){a=document.createElement("div");k.appendChild(a);a.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+l+'" width="'+f+'" height="'+h+'"><param name="movie" value="'+b.pluginPath+b.flashName+"?x="+new Date+'" /><param name="flashvars" value="'+d.join("&")+'" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /></object>'}else k.innerHTML= +'<embed id="'+l+'" name="'+l+'" play="true" loop="false" quality="high" bgcolor="#000000" wmode="transparent" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="//www.macromedia.com/go/getflashplayer" src="'+b.pluginPath+b.flashName+'" flashvars="'+d.join("&")+'" width="'+f+'" height="'+h+'"></embed>';break;case "youtube":b=a.url.substr(a.url.lastIndexOf("=")+1);youtubeSettings={container:k,containerId:k.id,pluginMediaElement:j,pluginId:l,videoId:b, +height:h,width:f};mejs.PluginDetector.hasPluginVersion("flash",[10,0,0])?mejs.YouTubeApi.createFlash(youtubeSettings):mejs.YouTubeApi.enqueueIframe(youtubeSettings);break;case "vimeo":j.vimeoid=a.url.substr(a.url.lastIndexOf("/")+1);k.innerHTML='<iframe src="http://player.vimeo.com/video/'+j.vimeoid+'?portrait=0&byline=0&title=0" width="'+f+'" height="'+h+'" frameborder="0"></iframe>'}c.style.display="none";return j},updateNative:function(a,b){var c=a.htmlMediaElement,d;for(d in mejs.HtmlMediaElement)c[d]= +mejs.HtmlMediaElement[d];b.success(c,c);return c}}; +mejs.YouTubeApi={isIframeStarted:false,isIframeLoaded:false,loadIframeApi:function(){if(!this.isIframeStarted){var a=document.createElement("script");a.src="http://www.youtube.com/player_api";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b);this.isIframeStarted=true}},iframeQueue:[],enqueueIframe:function(a){if(this.isLoaded)this.createIframe(a);else{this.loadIframeApi();this.iframeQueue.push(a)}},createIframe:function(a){var b=a.pluginMediaElement,c=new YT.Player(a.containerId, +{height:a.height,width:a.width,videoId:a.videoId,playerVars:{controls:0},events:{onReady:function(){a.pluginMediaElement.pluginApi=c;mejs.MediaPluginBridge.initPlugin(a.pluginId);setInterval(function(){mejs.YouTubeApi.createEvent(c,b,"timeupdate")},250)},onStateChange:function(d){mejs.YouTubeApi.handleStateChange(d.data,c,b)}}})},createEvent:function(a,b,c){c={type:c,target:b};if(a&&a.getDuration){b.currentTime=c.currentTime=a.getCurrentTime();b.duration=c.duration=a.getDuration();c.paused=b.paused; +c.ended=b.ended;c.muted=a.isMuted();c.volume=a.getVolume()/100;c.bytesTotal=a.getVideoBytesTotal();c.bufferedBytes=a.getVideoBytesLoaded();var d=c.bufferedBytes/c.bytesTotal*c.duration;c.target.buffered=c.buffered={start:function(){return 0},end:function(){return d},length:1}}b.dispatchEvent(c.type,c)},iFrameReady:function(){for(this.isIframeLoaded=this.isLoaded=true;this.iframeQueue.length>0;)this.createIframe(this.iframeQueue.pop())},flashPlayers:{},createFlash:function(a){this.flashPlayers[a.pluginId]= +a;var b,c="http://www.youtube.com/apiplayer?enablejsapi=1&playerapiid="+a.pluginId+"&version=3&autoplay=0&controls=0&modestbranding=1&loop=0";if(mejs.MediaFeatures.isIE){b=document.createElement("div");a.container.appendChild(b);b.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+a.pluginId+'" width="'+a.width+'" height="'+a.height+'"><param name="movie" value="'+c+'" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /></object>'}else a.container.innerHTML= +'<object type="application/x-shockwave-flash" id="'+a.pluginId+'" data="'+c+'" width="'+a.width+'" height="'+a.height+'" style="visibility: visible; "><param name="allowScriptAccess" value="always"><param name="wmode" value="transparent"></object>'},flashReady:function(a){var b=this.flashPlayers[a],c=document.getElementById(a),d=b.pluginMediaElement;d.pluginApi=d.pluginElement=c;mejs.MediaPluginBridge.initPlugin(a);c.cueVideoById(b.videoId);a=b.containerId+"_callback";window[a]=function(e){mejs.YouTubeApi.handleStateChange(e, +c,d)};c.addEventListener("onStateChange",a);setInterval(function(){mejs.YouTubeApi.createEvent(c,d,"timeupdate")},250)},handleStateChange:function(a,b,c){switch(a){case -1:c.paused=true;c.ended=true;mejs.YouTubeApi.createEvent(b,c,"loadedmetadata");break;case 0:c.paused=false;c.ended=true;mejs.YouTubeApi.createEvent(b,c,"ended");break;case 1:c.paused=false;c.ended=false;mejs.YouTubeApi.createEvent(b,c,"play");mejs.YouTubeApi.createEvent(b,c,"playing");break;case 2:c.paused=true;c.ended=false;mejs.YouTubeApi.createEvent(b, +c,"pause");break;case 3:mejs.YouTubeApi.createEvent(b,c,"progress")}}};function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}function onYouTubePlayerReady(a){mejs.YouTubeApi.flashReady(a)}window.mejs=mejs;window.MediaElement=mejs.MediaElement; +(function(a,b,c){var d={locale:{strings:{}},methods:{}};d.locale.getLanguage=function(){return{language:navigator.language}};d.locale.INIT_LANGUAGE=d.locale.getLanguage();d.methods.checkPlain=function(e){var g,f,h={"&":"&",'"':""","<":"<",">":">"};e=String(e);for(g in h)if(h.hasOwnProperty(g)){f=RegExp(g,"g");e=e.replace(f,h[g])}return e};d.methods.formatString=function(e,g){for(var f in g){switch(f.charAt(0)){case "@":g[f]=d.methods.checkPlain(g[f]);break;case "!":break;default:g[f]= +'<em class="placeholder">'+d.methods.checkPlain(g[f])+"</em>"}e=e.replace(f,g[f])}return e};d.methods.t=function(e,g,f){if(d.locale.strings&&d.locale.strings[f.context]&&d.locale.strings[f.context][e])e=d.locale.strings[f.context][e];if(g)e=d.methods.formatString(e,g);return e};d.t=function(e,g,f){if(typeof e==="string"&&e.length>0){var h=d.locale.getLanguage();f=f||{context:h.language};return d.methods.t(e,g,f)}else throw{name:"InvalidArgumentException",message:"First argument is either not a string or empty."}; +};c.i18n=d})(jQuery,document,mejs);(function(a){a.de={Fullscreen:"Vollbild","Go Fullscreen":"Vollbild an","Turn off Fullscreen":"Vollbild aus",Close:"Schlie\u00dfen"}})(mejs.i18n.locale.strings); diff --git a/lib/mediaelementjs/mediaelementplayer.css b/lib/mediaelementjs/mediaelementplayer.css new file mode 100644 index 00000000..dfc1910b --- /dev/null +++ b/lib/mediaelementjs/mediaelementplayer.css @@ -0,0 +1 @@ +.mejs-container{position:relative;background:#000;font-family:Helvetica,Arial;text-align:left;vertical-align:top;text-indent:0;}.me-plugin{position:absolute;}.mejs-embed,.mejs-embed body{width:100%;height:100%;margin:0;padding:0;background:#000;overflow:hidden;}.mejs-container-fullscreen{position:fixed;left:0;top:0;right:0;bottom:0;overflow:hidden;z-index:1000;}.mejs-container-fullscreen .mejs-mediaelement,.mejs-container-fullscreen video{width:100%;height:100%;}.mejs-background{position:absolute;top:0;left:0;}.mejs-mediaelement{position:absolute;top:0;left:0;width:100%;height:100%;}.mejs-poster{position:absolute;top:0;left:0;}.mejs-poster img{border:0;padding:0;border:0;display:block;}.mejs-overlay{position:absolute;top:0;left:0;}.mejs-overlay-play{cursor:pointer;}.mejs-overlay-button{position:absolute;top:50%;left:50%;width:100px;height:100px;margin:-50px 0 0 -50px;background:url(bigplay.svg) no-repeat;}.no-svg .mejs-overlay-button{background-image:url(bigplay.png);}.mejs-overlay:hover .mejs-overlay-button{background-position:0 -100px;}.mejs-overlay-loading{position:absolute;top:50%;left:50%;width:80px;height:80px;margin:-40px 0 0 -40px;background:#333;background:url(background.png);background:rgba(0,0,0,0.9);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(50,50,50,0.9)),to(rgba(0,0,0,0.9)));background:-webkit-linear-gradient(top,rgba(50,50,50,0.9),rgba(0,0,0,0.9));background:-moz-linear-gradient(top,rgba(50,50,50,0.9),rgba(0,0,0,0.9));background:-o-linear-gradient(top,rgba(50,50,50,0.9),rgba(0,0,0,0.9));background:-ms-linear-gradient(top,rgba(50,50,50,0.9),rgba(0,0,0,0.9));background:linear-gradient(rgba(50,50,50,0.9),rgba(0,0,0,0.9));}.mejs-overlay-loading span{display:block;width:80px;height:80px;background:transparent url(loading.gif) 50% 50% no-repeat;}.mejs-container .mejs-controls{position:absolute;background:none;list-style-type:none;margin:0;padding:0;bottom:0;left:0;background:url(background.png);background:rgba(0,0,0,0.7);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(50,50,50,0.7)),to(rgba(0,0,0,0.7)));background:-webkit-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-moz-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-o-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-ms-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:linear-gradient(rgba(50,50,50,0.7),rgba(0,0,0,0.7));height:30px;width:100%;}.mejs-container .mejs-controls div{list-style-type:none;background-image:none;display:block;float:left;margin:0;padding:0;width:26px;height:26px;font-size:11px;line-height:11px;background:0;font-family:Helvetica,Arial;border:0;}.mejs-controls .mejs-button button{cursor:pointer;display:block;font-size:0;line-height:0;text-decoration:none;margin:7px 5px;padding:0;position:absolute;height:16px;width:16px;border:0;background:transparent url(controls.svg) no-repeat;}.no-svg .mejs-controls .mejs-button button{background-image:url(controls.png);}.mejs-controls .mejs-button button:focus{outline:solid 1px yellow;}.mejs-container .mejs-controls .mejs-time{color:#fff;display:block;height:17px;width:auto;padding:8px 3px 0 3px;overflow:hidden;text-align:center;padding:auto 4px;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}.mejs-container .mejs-controls .mejs-time span{font-size:11px;color:#fff;line-height:12px;display:block;float:left;margin:1px 2px 0 0;width:auto;}.mejs-controls .mejs-play button{background-position:0 0;}.mejs-controls .mejs-pause button{background-position:0 -16px;}.mejs-controls .mejs-stop button{background-position:-112px 0;}.mejs-controls div.mejs-time-rail{width:200px;padding-top:5px;}.mejs-controls .mejs-time-rail span{display:block;position:absolute;width:180px;height:10px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;cursor:pointer;}.mejs-controls .mejs-time-rail .mejs-time-total{margin:5px;background:#333;background:rgba(50,50,50,0.8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(30,30,30,0.8)),to(rgba(60,60,60,0.8)));background:-webkit-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-moz-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-o-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-ms-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:linear-gradient(rgba(30,30,30,0.8),rgba(60,60,60,0.8));}.mejs-controls .mejs-time-rail .mejs-time-buffering{width:100%;background-image:-o-linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-ms-linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);-webkit-background-size:15px 15px;-moz-background-size:15px 15px;-o-background-size:15px 15px;background-size:15px 15px;-webkit-animation:buffering-stripes 2s linear infinite;-moz-animation:buffering-stripes 2s linear infinite;-ms-animation:buffering-stripes 2s linear infinite;-o-animation:buffering-stripes 2s linear infinite;animation:buffering-stripes 2s linear infinite;}@-webkit-keyframes buffering-stripes{from{background-position:0 0;}to{background-position:30px 0;}}@-moz-keyframes buffering-stripes{from{background-position:0 0;}to{background-position:30px 0;}}@-ms-keyframes buffering-stripes{from{background-position:0 0;}to{background-position:30px 0;}}@-o-keyframes buffering-stripes{from{background-position:0 0;}to{background-position:30px 0;}}@keyframes buffering-stripes{from{background-position:0 0;}to{background-position:30px 0;}}.mejs-controls .mejs-time-rail .mejs-time-loaded{background:#3caac8;background:rgba(60,170,200,0.8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(44,124,145,0.8)),to(rgba(78,183,212,0.8)));background:-webkit-linear-gradient(top,rgba(44,124,145,0.8),rgba(78,183,212,0.8));background:-moz-linear-gradient(top,rgba(44,124,145,0.8),rgba(78,183,212,0.8));background:-o-linear-gradient(top,rgba(44,124,145,0.8),rgba(78,183,212,0.8));background:-ms-linear-gradient(top,rgba(44,124,145,0.8),rgba(78,183,212,0.8));background:linear-gradient(rgba(44,124,145,0.8),rgba(78,183,212,0.8));width:0;}.mejs-controls .mejs-time-rail .mejs-time-current{width:0;background:#fff;background:rgba(255,255,255,0.8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(255,255,255,0.9)),to(rgba(200,200,200,0.8)));background:-webkit-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-moz-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-o-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-ms-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:linear-gradient(rgba(255,255,255,0.9),rgba(200,200,200,0.8));}.mejs-controls .mejs-time-rail .mejs-time-handle{display:none;position:absolute;margin:0;width:10px;background:#fff;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;cursor:pointer;border:solid 2px #333;top:-2px;text-align:center;}.mejs-controls .mejs-time-rail .mejs-time-float{position:absolute;display:none;background:#eee;width:36px;height:17px;border:solid 1px #333;top:-26px;margin-left:-18px;text-align:center;color:#111;}.mejs-controls .mejs-time-rail .mejs-time-float-current{margin:2px;width:30px;display:block;text-align:center;left:0;}.mejs-controls .mejs-time-rail .mejs-time-float-corner{position:absolute;display:block;width:0;height:0;line-height:0;border:solid 5px #eee;border-color:#eee transparent transparent transparent;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;top:15px;left:13px;}.mejs-long-video .mejs-controls .mejs-time-rail .mejs-time-float{width:48px;}.mejs-long-video .mejs-controls .mejs-time-rail .mejs-time-float-current{width:44px;}.mejs-long-video .mejs-controls .mejs-time-rail .mejs-time-float-corner{left:18px;}.mejs-controls .mejs-fullscreen-button button{background-position:-32px 0;}.mejs-controls .mejs-unfullscreen button{background-position:-32px -16px;}.mejs-controls .mejs-mute button{background-position:-16px -16px;}.mejs-controls .mejs-unmute button{background-position:-16px 0;}.mejs-controls .mejs-volume-button{position:relative;}.mejs-controls .mejs-volume-button .mejs-volume-slider{display:none;height:115px;width:25px;background:url(background.png);background:rgba(50,50,50,0.7);-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;top:-115px;left:0;z-index:1;position:absolute;margin:0;}.mejs-controls .mejs-volume-button:hover{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;}.mejs-controls .mejs-volume-button .mejs-volume-slider .mejs-volume-total{position:absolute;left:11px;top:8px;width:2px;height:100px;background:#ddd;background:rgba(255,255,255,0.5);margin:0;}.mejs-controls .mejs-volume-button .mejs-volume-slider .mejs-volume-current{position:absolute;left:11px;top:8px;width:2px;height:100px;background:#ddd;background:rgba(255,255,255,0.9);margin:0;}.mejs-controls .mejs-volume-button .mejs-volume-slider .mejs-volume-handle{position:absolute;left:4px;top:-3px;width:16px;height:6px;background:#ddd;background:rgba(255,255,255,0.9);cursor:N-resize;-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;margin:0;}.mejs-controls div.mejs-horizontal-volume-slider{height:26px;width:60px;position:relative;}.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total{position:absolute;left:0;top:11px;width:50px;height:8px;margin:0;padding:0;font-size:1px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background:#333;background:rgba(50,50,50,0.8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(30,30,30,0.8)),to(rgba(60,60,60,0.8)));background:-webkit-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-moz-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-o-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-ms-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:linear-gradient(rgba(30,30,30,0.8),rgba(60,60,60,0.8));}.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current{position:absolute;left:0;top:11px;width:50px;height:8px;margin:0;padding:0;font-size:1px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background:#fff;background:rgba(255,255,255,0.8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(255,255,255,0.9)),to(rgba(200,200,200,0.8)));background:-webkit-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-moz-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-o-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-ms-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:linear-gradient(rgba(255,255,255,0.9),rgba(200,200,200,0.8));}.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-handle{display:none;}.mejs-controls .mejs-captions-button{position:relative;}.mejs-controls .mejs-captions-button button{background-position:-48px 0;}.mejs-controls .mejs-captions-button .mejs-captions-selector{visibility:hidden;position:absolute;bottom:26px;right:-10px;width:130px;height:100px;background:url(background.png);background:rgba(50,50,50,0.7);border:solid 1px transparent;padding:10px;overflow:hidden;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}.mejs-controls .mejs-captions-button .mejs-captions-selector ul{margin:0;padding:0;display:block;list-style-type:none!important;overflow:hidden;}.mejs-controls .mejs-captions-button .mejs-captions-selector ul li{margin:0 0 6px 0;padding:0;list-style-type:none!important;display:block;color:#fff;overflow:hidden;}.mejs-controls .mejs-captions-button .mejs-captions-selector ul li input{clear:both;float:left;margin:3px 3px 0 5px;}.mejs-controls .mejs-captions-button .mejs-captions-selector ul li label{width:100px;float:left;padding:4px 0 0 0;line-height:15px;font-family:helvetica,arial;font-size:10px;}.mejs-controls .mejs-captions-button .mejs-captions-translations{font-size:10px;margin:0 0 5px 0;}.mejs-chapters{position:absolute;top:0;left:0;-xborder-right:solid 1px #fff;width:10000px;z-index:1;}.mejs-chapters .mejs-chapter{position:absolute;float:left;background:#222;background:rgba(0,0,0,0.7);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(50,50,50,0.7)),to(rgba(0,0,0,0.7)));background:-webkit-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-moz-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-o-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-ms-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:linear-gradient(rgba(50,50,50,0.7),rgba(0,0,0,0.7));filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,startColorstr=#323232,endColorstr=#000000);overflow:hidden;border:0;}.mejs-chapters .mejs-chapter .mejs-chapter-block{font-size:11px;color:#fff;padding:5px;display:block;border-right:solid 1px #333;border-bottom:solid 1px #333;cursor:pointer;}.mejs-chapters .mejs-chapter .mejs-chapter-block-last{border-right:none;}.mejs-chapters .mejs-chapter .mejs-chapter-block:hover{background:#666;background:rgba(102,102,102,0.7);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(102,102,102,0.7)),to(rgba(50,50,50,0.6)));background:-webkit-linear-gradient(top,rgba(102,102,102,0.7),rgba(50,50,50,0.6));background:-moz-linear-gradient(top,rgba(102,102,102,0.7),rgba(50,50,50,0.6));background:-o-linear-gradient(top,rgba(102,102,102,0.7),rgba(50,50,50,0.6));background:-ms-linear-gradient(top,rgba(102,102,102,0.7),rgba(50,50,50,0.6));background:linear-gradient(rgba(102,102,102,0.7),rgba(50,50,50,0.6));filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,startColorstr=#666666,endColorstr=#323232);}.mejs-chapters .mejs-chapter .mejs-chapter-block .ch-title{font-size:12px;font-weight:bold;display:block;white-space:nowrap;text-overflow:ellipsis;margin:0 0 3px 0;line-height:12px;}.mejs-chapters .mejs-chapter .mejs-chapter-block .ch-timespan{font-size:12px;line-height:12px;margin:3px 0 4px 0;display:block;white-space:nowrap;text-overflow:ellipsis;}.mejs-captions-layer{position:absolute;bottom:0;left:0;text-align:center;line-height:22px;font-size:12px;color:#fff;}.mejs-captions-layer a{color:#fff;text-decoration:underline;}.mejs-captions-layer[lang=ar]{font-size:20px;font-weight:normal;}.mejs-captions-position{position:absolute;width:100%;bottom:15px;left:0;}.mejs-captions-position-hover{bottom:45px;}.mejs-captions-text{padding:3px 5px;background:url(background.png);background:rgba(20,20,20,0.8);}.mejs-clear{clear:both;}.me-cannotplay a{color:#fff;font-weight:bold;}.me-cannotplay span{padding:15px;display:block;}.mejs-controls .mejs-loop-off button{background-position:-64px -16px;}.mejs-controls .mejs-loop-on button{background-position:-64px 0;}.mejs-controls .mejs-backlight-off button{background-position:-80px -16px;}.mejs-controls .mejs-backlight-on button{background-position:-80px 0;}.mejs-controls .mejs-picturecontrols-button{background-position:-96px 0;}.mejs-contextmenu{position:absolute;width:150px;padding:10px;border-radius:4px;top:0;left:0;background:#fff;border:solid 1px #999;z-index:1001;}.mejs-contextmenu .mejs-contextmenu-separator{height:1px;font-size:0;margin:5px 6px;background:#333;}.mejs-contextmenu .mejs-contextmenu-item{font-family:Helvetica,Arial;font-size:12px;padding:4px 6px;cursor:pointer;color:#333;}.mejs-contextmenu .mejs-contextmenu-item:hover{background:#2C7C91;color:#fff;}.mejs-controls .mejs-sourcechooser-button{position:relative;}.mejs-controls .mejs-sourcechooser-button button{background-position:-128px 0;}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector{visibility:hidden;position:absolute;bottom:26px;right:-10px;width:130px;height:100px;background:url(background.png);background:rgba(50,50,50,0.7);border:solid 1px transparent;padding:10px;overflow:hidden;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector ul{margin:0;padding:0;display:block;list-style-type:none!important;overflow:hidden;}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector ul li{margin:0 0 6px 0;padding:0;list-style-type:none!important;display:block;color:#fff;overflow:hidden;}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector ul li input{clear:both;float:left;margin:3px 3px 0 5px;}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector ul li label{width:100px;float:left;padding:4px 0 0 0;line-height:15px;font-family:helvetica,arial;font-size:10px;}.mejs-postroll-layer{position:absolute;bottom:0;left:0;width:100%;height:100%;background:url(background.png);background:rgba(50,50,50,0.7);z-index:1000;overflow:hidden;}.mejs-postroll-layer-content{width:100%;height:100%;}.mejs-postroll-close{position:absolute;right:0;top:0;background:url(background.png);background:rgba(50,50,50,0.7);color:#fff;padding:4px;z-index:100;cursor:pointer;}
\ No newline at end of file diff --git a/lib/mediaelementjs/mediaelementplayer.js b/lib/mediaelementjs/mediaelementplayer.js new file mode 100644 index 00000000..16f1aa27 --- /dev/null +++ b/lib/mediaelementjs/mediaelementplayer.js @@ -0,0 +1,94 @@ +/*! + * MediaElementPlayer + * http://mediaelementjs.com/ + * + * Creates a controller bar for HTML5 <video> add <audio> tags + * using jQuery and MediaElement.js (HTML5 Flash/Silverlight wrapper) + * + * Copyright 2010-2012, John Dyer (http://j.hn/) + * License: MIT + * + */if(typeof jQuery!="undefined")mejs.$=jQuery;else if(typeof ender!="undefined")mejs.$=ender; +(function(f){mejs.MepDefaults={poster:"",defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,defaultAudioWidth:400,defaultAudioHeight:30,defaultSeekBackwardInterval:function(a){return a.duration*0.05},defaultSeekForwardInterval:function(a){return a.duration*0.05},audioWidth:-1,audioHeight:-1,startVolume:0.8,loop:false,autoRewind:true,enableAutosize:true,alwaysShowHours:false,showTimecodeFrameCount:false,framesPerSecond:25,autosizeProgress:true,alwaysShowControls:false,clickToPlayPause:true, +iPadUseNativeControls:false,iPhoneUseNativeControls:false,AndroidUseNativeControls:false,features:["playpause","current","progress","duration","tracks","volume","fullscreen"],isVideo:true,enableKeyboard:true,pauseOtherPlayers:true,keyActions:[{keys:[32,179],action:function(a,b){b.paused||b.ended?b.play():b.pause()}},{keys:[38],action:function(a,b){b.setVolume(Math.min(b.volume+0.1,1))}},{keys:[40],action:function(a,b){b.setVolume(Math.max(b.volume-0.1,0))}},{keys:[37,227],action:function(a,b){if(!isNaN(b.duration)&& +b.duration>0){if(a.isVideo){a.showControls();a.startControlsTimer()}var c=Math.max(b.currentTime-a.options.defaultSeekBackwardInterval(b),0);b.setCurrentTime(c)}}},{keys:[39,228],action:function(a,b){if(!isNaN(b.duration)&&b.duration>0){if(a.isVideo){a.showControls();a.startControlsTimer()}var c=Math.min(b.currentTime+a.options.defaultSeekForwardInterval(b),b.duration);b.setCurrentTime(c)}}},{keys:[70],action:function(a){if(typeof a.enterFullScreen!="undefined")a.isFullScreen?a.exitFullScreen():a.enterFullScreen()}}]}; +mejs.mepIndex=0;mejs.players=[];mejs.MediaElementPlayer=function(a,b){if(!(this instanceof mejs.MediaElementPlayer))return new mejs.MediaElementPlayer(a,b);this.$media=this.$node=f(a);this.node=this.media=this.$media[0];if(typeof this.node.player!="undefined")return this.node.player;else this.node.player=this;if(typeof b=="undefined")b=this.$node.data("mejsoptions");this.options=f.extend({},mejs.MepDefaults,b);mejs.players.push(this);this.init();return this};mejs.MediaElementPlayer.prototype={hasFocus:false, +controlsAreVisible:true,init:function(){var a=this,b=mejs.MediaFeatures,c=f.extend(true,{},a.options,{success:function(e,g){a.meReady(e,g)},error:function(e){a.handleError(e)}}),d=a.media.tagName.toLowerCase();a.isDynamic=d!=="audio"&&d!=="video";a.isVideo=a.isDynamic?a.options.isVideo:d!=="audio"&&a.options.isVideo;if(b.isiPad&&a.options.iPadUseNativeControls||b.isiPhone&&a.options.iPhoneUseNativeControls){a.$media.attr("controls","controls");if(b.isiPad&&a.media.getAttribute("autoplay")!==null){a.media.load(); +a.media.play()}}else if(!(b.isAndroid&&a.options.AndroidUseNativeControls)){a.$media.removeAttr("controls");a.id="mep_"+mejs.mepIndex++;a.container=f('<div id="'+a.id+'" class="mejs-container '+(mejs.MediaFeatures.svg?"svg":"no-svg")+'"><div class="mejs-inner"><div class="mejs-mediaelement"></div><div class="mejs-layers"></div><div class="mejs-controls"></div><div class="mejs-clear"></div></div></div>').addClass(a.$media[0].className).insertBefore(a.$media);a.container.addClass((b.isAndroid?"mejs-android ": +"")+(b.isiOS?"mejs-ios ":"")+(b.isiPad?"mejs-ipad ":"")+(b.isiPhone?"mejs-iphone ":"")+(a.isVideo?"mejs-video ":"mejs-audio "));if(b.isiOS){b=a.$media.clone();a.container.find(".mejs-mediaelement").append(b);a.$media.remove();a.$node=a.$media=b;a.node=a.media=b[0]}else a.container.find(".mejs-mediaelement").append(a.$media);a.controls=a.container.find(".mejs-controls");a.layers=a.container.find(".mejs-layers");b=a.isVideo?"video":"audio";d=b.substring(0,1).toUpperCase()+b.substring(1);a.width=a.options[b+ +"Width"]>0||a.options[b+"Width"].toString().indexOf("%")>-1?a.options[b+"Width"]:a.media.style.width!==""&&a.media.style.width!==null?a.media.style.width:a.media.getAttribute("width")!==null?a.$media.attr("width"):a.options["default"+d+"Width"];a.height=a.options[b+"Height"]>0||a.options[b+"Height"].toString().indexOf("%")>-1?a.options[b+"Height"]:a.media.style.height!==""&&a.media.style.height!==null?a.media.style.height:a.$media[0].getAttribute("height")!==null?a.$media.attr("height"):a.options["default"+ +d+"Height"];a.setPlayerSize(a.width,a.height);c.pluginWidth=a.height;c.pluginHeight=a.width}mejs.MediaElement(a.$media[0],c);a.container.trigger("controlsshown")},showControls:function(a){var b=this;a=typeof a=="undefined"||a;if(!b.controlsAreVisible){if(a){b.controls.css("visibility","visible").stop(true,true).fadeIn(200,function(){b.controlsAreVisible=true;b.container.trigger("controlsshown")});b.container.find(".mejs-control").css("visibility","visible").stop(true,true).fadeIn(200,function(){b.controlsAreVisible= +true})}else{b.controls.css("visibility","visible").css("display","block");b.container.find(".mejs-control").css("visibility","visible").css("display","block");b.controlsAreVisible=true;b.container.trigger("controlsshown")}b.setControlsSize()}},hideControls:function(a){var b=this;a=typeof a=="undefined"||a;if(b.controlsAreVisible)if(a){b.controls.stop(true,true).fadeOut(200,function(){f(this).css("visibility","hidden").css("display","block");b.controlsAreVisible=false;b.container.trigger("controlshidden")}); +b.container.find(".mejs-control").stop(true,true).fadeOut(200,function(){f(this).css("visibility","hidden").css("display","block")})}else{b.controls.css("visibility","hidden").css("display","block");b.container.find(".mejs-control").css("visibility","hidden").css("display","block");b.controlsAreVisible=false;b.container.trigger("controlshidden")}},controlsTimer:null,startControlsTimer:function(a){var b=this;a=typeof a!="undefined"?a:1500;b.killControlsTimer("start");b.controlsTimer=setTimeout(function(){b.hideControls(); +b.killControlsTimer("hide")},a)},killControlsTimer:function(){if(this.controlsTimer!==null){clearTimeout(this.controlsTimer);delete this.controlsTimer;this.controlsTimer=null}},controlsEnabled:true,disableControls:function(){this.killControlsTimer();this.hideControls(false);this.controlsEnabled=false},enableControls:function(){this.showControls(false);this.controlsEnabled=true},meReady:function(a,b){var c=this,d=mejs.MediaFeatures,e=b.getAttribute("autoplay");e=!(typeof e=="undefined"||e===null|| +e==="false");var g;if(!c.created){c.created=true;c.media=a;c.domNode=b;if(!(d.isAndroid&&c.options.AndroidUseNativeControls)&&!(d.isiPad&&c.options.iPadUseNativeControls)&&!(d.isiPhone&&c.options.iPhoneUseNativeControls)){c.buildposter(c,c.controls,c.layers,c.media);c.buildkeyboard(c,c.controls,c.layers,c.media);c.buildoverlays(c,c.controls,c.layers,c.media);c.findTracks();for(g in c.options.features){d=c.options.features[g];if(c["build"+d])try{c["build"+d](c,c.controls,c.layers,c.media)}catch(k){}}c.container.trigger("controlsready"); +c.setPlayerSize(c.width,c.height);c.setControlsSize();if(c.isVideo){if(mejs.MediaFeatures.hasTouch)c.$media.bind("touchstart",function(){if(c.controlsAreVisible)c.hideControls(false);else c.controlsEnabled&&c.showControls(false)});else{c.media.addEventListener("click",function(){if(c.options.clickToPlayPause)c.media.paused?c.media.play():c.media.pause()});c.container.bind("mouseenter mouseover",function(){if(c.controlsEnabled)if(!c.options.alwaysShowControls){c.killControlsTimer("enter");c.showControls(); +c.startControlsTimer(2500)}}).bind("mousemove",function(){if(c.controlsEnabled){c.controlsAreVisible||c.showControls();c.options.alwaysShowControls||c.startControlsTimer(2500)}}).bind("mouseleave",function(){c.controlsEnabled&&!c.media.paused&&!c.options.alwaysShowControls&&c.startControlsTimer(1E3)})}e&&!c.options.alwaysShowControls&&c.hideControls();c.options.enableAutosize&&c.media.addEventListener("loadedmetadata",function(h){if(c.options.videoHeight<=0&&c.domNode.getAttribute("height")===null&& +!isNaN(h.target.videoHeight)){c.setPlayerSize(h.target.videoWidth,h.target.videoHeight);c.setControlsSize();c.media.setVideoSize(h.target.videoWidth,h.target.videoHeight)}},false)}a.addEventListener("play",function(){for(var h=0,o=mejs.players.length;h<o;h++){var n=mejs.players[h];n.id!=c.id&&c.options.pauseOtherPlayers&&!n.paused&&!n.ended&&n.pause();n.hasFocus=false}c.hasFocus=true},false);c.media.addEventListener("ended",function(){if(c.options.autoRewind)try{c.media.setCurrentTime(0)}catch(h){}c.media.pause(); +c.setProgressRail&&c.setProgressRail();c.setCurrentRail&&c.setCurrentRail();if(c.options.loop)c.media.play();else!c.options.alwaysShowControls&&c.controlsEnabled&&c.showControls()},false);c.media.addEventListener("loadedmetadata",function(){c.updateDuration&&c.updateDuration();c.updateCurrent&&c.updateCurrent();if(!c.isFullScreen){c.setPlayerSize(c.width,c.height);c.setControlsSize()}},false);setTimeout(function(){c.setPlayerSize(c.width,c.height);c.setControlsSize()},50);f(window).resize(function(){c.isFullScreen|| +mejs.MediaFeatures.hasTrueNativeFullScreen&&document.webkitIsFullScreen||c.setPlayerSize(c.width,c.height);c.setControlsSize()});c.media.pluginType=="youtube"&&c.container.find(".mejs-overlay-play").hide()}if(e&&a.pluginType=="native"){a.load();a.play()}if(c.options.success)typeof c.options.success=="string"?window[c.options.success](c.media,c.domNode,c):c.options.success(c.media,c.domNode,c)}},handleError:function(a){this.controls.hide();this.options.error&&this.options.error(a)},setPlayerSize:function(a, +b){if(typeof a!="undefined")this.width=a;if(typeof b!="undefined")this.height=b;if(this.height.toString().indexOf("%")>0||this.$node.css("max-width")==="100%"||this.$node[0].currentStyle&&this.$node[0].currentStyle.maxWidth==="100%"){var c=this.isVideo?this.media.videoWidth&&this.media.videoWidth>0?this.media.videoWidth:this.options.defaultVideoWidth:this.options.defaultAudioWidth,d=this.isVideo?this.media.videoHeight&&this.media.videoHeight>0?this.media.videoHeight:this.options.defaultVideoHeight: +this.options.defaultAudioHeight,e=this.container.parent().closest(":visible").width();c=this.isVideo||!this.options.autosizeProgress?parseInt(e*d/c,10):d;if(this.container.parent()[0].tagName.toLowerCase()==="body"){e=f(window).width();c=f(window).height()}if(c!=0&&e!=0){this.container.width(e).height(c);this.$media.width("100%").height("100%");this.container.find("object, embed, iframe").width("100%").height("100%");this.isVideo&&this.media.setVideoSize&&this.media.setVideoSize(e,c);this.layers.children(".mejs-layer").width("100%").height("100%")}}else{this.container.width(this.width).height(this.height); +this.layers.children(".mejs-layer").width(this.width).height(this.height)}},setControlsSize:function(){var a=0,b=0,c=this.controls.find(".mejs-time-rail"),d=this.controls.find(".mejs-time-total");this.controls.find(".mejs-time-current");this.controls.find(".mejs-time-loaded");var e=c.siblings();if(this.options&&!this.options.autosizeProgress)b=parseInt(c.css("width"));if(b===0||!b){e.each(function(){if(f(this).css("position")!="absolute")a+=f(this).outerWidth(true)});b=this.controls.width()-a-(c.outerWidth(true)- +c.width())}c.width(b);d.width(b-(d.outerWidth(true)-d.width()));this.setProgressRail&&this.setProgressRail();this.setCurrentRail&&this.setCurrentRail()},buildposter:function(a,b,c,d){var e=f('<div class="mejs-poster mejs-layer"></div>').appendTo(c);b=a.$media.attr("poster");if(a.options.poster!=="")b=a.options.poster;b!==""&&b!=null?this.setPoster(b):e.hide();d.addEventListener("play",function(){e.hide()},false)},setPoster:function(a){var b=this.container.find(".mejs-poster"),c=b.find("img");if(c.length== +0)c=f('<img width="100%" height="100%" />').appendTo(b);c.attr("src",a)},buildoverlays:function(a,b,c,d){var e=this;if(a.isVideo){var g=f('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-loading"><span></span></div></div>').hide().appendTo(c),k=f('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-error"></div></div>').hide().appendTo(c),h=f('<div class="mejs-overlay mejs-layer mejs-overlay-play"><div class="mejs-overlay-button"></div></div>').appendTo(c).click(function(){if(e.options.clickToPlayPause)d.paused? +d.play():d.pause()});d.addEventListener("play",function(){h.hide();g.hide();b.find(".mejs-time-buffering").hide();k.hide()},false);d.addEventListener("playing",function(){h.hide();g.hide();b.find(".mejs-time-buffering").hide();k.hide()},false);d.addEventListener("seeking",function(){g.show();b.find(".mejs-time-buffering").show()},false);d.addEventListener("seeked",function(){g.hide();b.find(".mejs-time-buffering").hide()},false);d.addEventListener("pause",function(){mejs.MediaFeatures.isiPhone||h.show()}, +false);d.addEventListener("waiting",function(){g.show();b.find(".mejs-time-buffering").show()},false);d.addEventListener("loadeddata",function(){g.show();b.find(".mejs-time-buffering").show()},false);d.addEventListener("canplay",function(){g.hide();b.find(".mejs-time-buffering").hide()},false);d.addEventListener("error",function(){g.hide();b.find(".mejs-time-buffering").hide();k.show();k.find("mejs-overlay-error").html("Error loading this resource")},false)}},buildkeyboard:function(a,b,c,d){f(document).keydown(function(e){if(a.hasFocus&& +a.options.enableKeyboard)for(var g=0,k=a.options.keyActions.length;g<k;g++)for(var h=a.options.keyActions[g],o=0,n=h.keys.length;o<n;o++)if(e.keyCode==h.keys[o]){e.preventDefault();h.action(a,d,e.keyCode);return false}return true});f(document).click(function(e){if(f(e.target).closest(".mejs-container").length==0)a.hasFocus=false})},findTracks:function(){var a=this,b=a.$media.find("track");a.tracks=[];b.each(function(c,d){d=f(d);a.tracks.push({srclang:d.attr("srclang").toLowerCase(),src:d.attr("src"), +kind:d.attr("kind"),label:d.attr("label")||"",entries:[],isLoaded:false})})},changeSkin:function(a){this.container[0].className="mejs-container "+a;this.setPlayerSize(this.width,this.height);this.setControlsSize()},play:function(){this.media.play()},pause:function(){this.media.pause()},load:function(){this.media.load()},setMuted:function(a){this.media.setMuted(a)},setCurrentTime:function(a){this.media.setCurrentTime(a)},getCurrentTime:function(){return this.media.currentTime},setVolume:function(a){this.media.setVolume(a)}, +getVolume:function(){return this.media.volume},setSrc:function(a){this.media.setSrc(a)},remove:function(){if(this.media.pluginType==="flash")this.media.remove();else this.media.pluginType==="native"&&this.$media.prop("controls",true);this.isDynamic||this.$node.insertBefore(this.container);this.container.remove()}};if(typeof jQuery!="undefined")jQuery.fn.mediaelementplayer=function(a){return this.each(function(){new mejs.MediaElementPlayer(this,a)})};f(document).ready(function(){f(".mejs-player").mediaelementplayer()}); +window.MediaElementPlayer=mejs.MediaElementPlayer})(mejs.$); +(function(f){f.extend(mejs.MepDefaults,{playpauseText:"Play/Pause"});f.extend(MediaElementPlayer.prototype,{buildplaypause:function(a,b,c,d){var e=f('<div class="mejs-button mejs-playpause-button mejs-play" ><button type="button" aria-controls="'+this.id+'" title="'+this.options.playpauseText+'"></button></div>').appendTo(b).click(function(g){g.preventDefault();d.paused?d.play():d.pause();return false});d.addEventListener("play",function(){e.removeClass("mejs-play").addClass("mejs-pause")},false); +d.addEventListener("playing",function(){e.removeClass("mejs-play").addClass("mejs-pause")},false);d.addEventListener("pause",function(){e.removeClass("mejs-pause").addClass("mejs-play")},false);d.addEventListener("paused",function(){e.removeClass("mejs-pause").addClass("mejs-play")},false)}})})(mejs.$); +(function(f){f.extend(mejs.MepDefaults,{stopText:"Stop"});f.extend(MediaElementPlayer.prototype,{buildstop:function(a,b,c,d){f('<div class="mejs-button mejs-stop-button mejs-stop"><button type="button" aria-controls="'+this.id+'" title="'+this.options.stopText+'"></button></div>').appendTo(b).click(function(){d.paused||d.pause();if(d.currentTime>0){d.setCurrentTime(0);d.pause();b.find(".mejs-time-current").width("0px");b.find(".mejs-time-handle").css("left","0px");b.find(".mejs-time-float-current").html(mejs.Utility.secondsToTimeCode(0)); +b.find(".mejs-currenttime").html(mejs.Utility.secondsToTimeCode(0));c.find(".mejs-poster").show()}})}})})(mejs.$); +(function(f){f.extend(MediaElementPlayer.prototype,{buildprogress:function(a,b,c,d){f('<div class="mejs-time-rail"><span class="mejs-time-total"><span class="mejs-time-buffering"></span><span class="mejs-time-loaded"></span><span class="mejs-time-current"></span><span class="mejs-time-handle"></span><span class="mejs-time-float"><span class="mejs-time-float-current">00:00</span><span class="mejs-time-float-corner"></span></span></span></div>').appendTo(b);b.find(".mejs-time-buffering").hide();var e= +b.find(".mejs-time-total");c=b.find(".mejs-time-loaded");var g=b.find(".mejs-time-current"),k=b.find(".mejs-time-handle"),h=b.find(".mejs-time-float"),o=b.find(".mejs-time-float-current"),n=function(m){m=m.pageX;var q=e.offset(),i=e.outerWidth(true),j=0,l=j=0;if(d.duration){if(m<q.left)m=q.left;else if(m>i+q.left)m=i+q.left;l=m-q.left;j=l/i;j=j<=0.02?0:j*d.duration;p&&j!==d.currentTime&&d.setCurrentTime(j);if(!mejs.MediaFeatures.hasTouch){h.css("left",l);o.html(mejs.Utility.secondsToTimeCode(j)); +h.show()}}},p=false;e.bind("mousedown",function(m){if(m.which===1){p=true;n(m);f(document).bind("mousemove.dur",function(q){n(q)}).bind("mouseup.dur",function(){p=false;h.hide();f(document).unbind(".dur")});return false}}).bind("mouseenter",function(){f(document).bind("mousemove.dur",function(m){n(m)});mejs.MediaFeatures.hasTouch||h.show()}).bind("mouseleave",function(){if(!p){f(document).unbind(".dur");h.hide()}});d.addEventListener("progress",function(m){a.setProgressRail(m);a.setCurrentRail(m)}, +false);d.addEventListener("timeupdate",function(m){a.setProgressRail(m);a.setCurrentRail(m)},false);this.loaded=c;this.total=e;this.current=g;this.handle=k},setProgressRail:function(a){var b=a!=undefined?a.target:this.media,c=null;if(b&&b.buffered&&b.buffered.length>0&&b.buffered.end&&b.duration)c=b.buffered.end(0)/b.duration;else if(b&&b.bytesTotal!=undefined&&b.bytesTotal>0&&b.bufferedBytes!=undefined)c=b.bufferedBytes/b.bytesTotal;else if(a&&a.lengthComputable&&a.total!=0)c=a.loaded/a.total;if(c!== +null){c=Math.min(1,Math.max(0,c));this.loaded&&this.total&&this.loaded.width(this.total.width()*c)}},setCurrentRail:function(){if(this.media.currentTime!=undefined&&this.media.duration)if(this.total&&this.handle){var a=this.total.width()*this.media.currentTime/this.media.duration,b=a-this.handle.outerWidth(true)/2;this.current.width(a);this.handle.css("left",b)}}})})(mejs.$); +(function(f){f.extend(mejs.MepDefaults,{duration:-1,timeAndDurationSeparator:" <span> | </span> "});f.extend(MediaElementPlayer.prototype,{buildcurrent:function(a,b,c,d){f('<div class="mejs-time"><span class="mejs-currenttime">'+(a.options.alwaysShowHours?"00:":"")+(a.options.showTimecodeFrameCount?"00:00:00":"00:00")+"</span></div>").appendTo(b);this.currenttime=this.controls.find(".mejs-currenttime");d.addEventListener("timeupdate",function(){a.updateCurrent()},false)},buildduration:function(a, +b,c,d){if(b.children().last().find(".mejs-currenttime").length>0)f(this.options.timeAndDurationSeparator+'<span class="mejs-duration">'+(this.options.duration>0?mejs.Utility.secondsToTimeCode(this.options.duration,this.options.alwaysShowHours||this.media.duration>3600,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25):(a.options.alwaysShowHours?"00:":"")+(a.options.showTimecodeFrameCount?"00:00:00":"00:00"))+"</span>").appendTo(b.find(".mejs-time"));else{b.find(".mejs-currenttime").parent().addClass("mejs-currenttime-container"); +f('<div class="mejs-time mejs-duration-container"><span class="mejs-duration">'+(this.options.duration>0?mejs.Utility.secondsToTimeCode(this.options.duration,this.options.alwaysShowHours||this.media.duration>3600,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25):(a.options.alwaysShowHours?"00:":"")+(a.options.showTimecodeFrameCount?"00:00:00":"00:00"))+"</span></div>").appendTo(b)}this.durationD=this.controls.find(".mejs-duration");d.addEventListener("timeupdate",function(){a.updateDuration()}, +false)},updateCurrent:function(){if(this.currenttime)this.currenttime.html(mejs.Utility.secondsToTimeCode(this.media.currentTime,this.options.alwaysShowHours||this.media.duration>3600,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25))},updateDuration:function(){this.container.toggleClass("mejs-long-video",this.media.duration>3600);if(this.media.duration&&this.durationD)this.durationD.html(mejs.Utility.secondsToTimeCode(this.media.duration,this.options.alwaysShowHours,this.options.showTimecodeFrameCount, +this.options.framesPerSecond||25))}})})(mejs.$); +(function(f){f.extend(mejs.MepDefaults,{muteText:"Mute Toggle",hideVolumeOnTouchDevices:true,audioVolume:"horizontal",videoVolume:"vertical"});f.extend(MediaElementPlayer.prototype,{buildvolume:function(a,b,c,d){if(!(mejs.MediaFeatures.hasTouch&&this.options.hideVolumeOnTouchDevices)){var e=this.isVideo?this.options.videoVolume:this.options.audioVolume,g=e=="horizontal"?f('<div class="mejs-button mejs-volume-button mejs-mute"><button type="button" aria-controls="'+this.id+'" title="'+this.options.muteText+ +'"></button></div><div class="mejs-horizontal-volume-slider"><div class="mejs-horizontal-volume-total"></div><div class="mejs-horizontal-volume-current"></div><div class="mejs-horizontal-volume-handle"></div></div>').appendTo(b):f('<div class="mejs-button mejs-volume-button mejs-mute"><button type="button" aria-controls="'+this.id+'" title="'+this.options.muteText+'"></button><div class="mejs-volume-slider"><div class="mejs-volume-total"></div><div class="mejs-volume-current"></div><div class="mejs-volume-handle"></div></div></div>').appendTo(b), +k=this.container.find(".mejs-volume-slider, .mejs-horizontal-volume-slider"),h=this.container.find(".mejs-volume-total, .mejs-horizontal-volume-total"),o=this.container.find(".mejs-volume-current, .mejs-horizontal-volume-current"),n=this.container.find(".mejs-volume-handle, .mejs-horizontal-volume-handle"),p=function(j,l){if(!k.is(":visible")&&typeof l=="undefined"){k.show();p(j,true);k.hide()}else{j=Math.max(0,j);j=Math.min(j,1);j==0?g.removeClass("mejs-mute").addClass("mejs-unmute"):g.removeClass("mejs-unmute").addClass("mejs-mute"); +if(e=="vertical"){var r=h.height(),s=h.position(),t=r-r*j;n.css("top",Math.round(s.top+t-n.height()/2));o.height(r-t);o.css("top",s.top+t)}else{r=h.width();s=h.position();r=r*j;n.css("left",Math.round(s.left+r-n.width()/2));o.width(Math.round(r))}}},m=function(j){var l=null,r=h.offset();if(e=="vertical"){l=h.height();parseInt(h.css("top").replace(/px/,""),10);l=(l-(j.pageY-r.top))/l;if(r.top==0||r.left==0)return}else{l=h.width();l=(j.pageX-r.left)/l}l=Math.max(0,l);l=Math.min(l,1);p(l);l==0?d.setMuted(true): +d.setMuted(false);d.setVolume(l)},q=false,i=false;g.hover(function(){k.show();i=true},function(){i=false;!q&&e=="vertical"&&k.hide()});k.bind("mouseover",function(){i=true}).bind("mousedown",function(j){m(j);f(document).bind("mousemove.vol",function(l){m(l)}).bind("mouseup.vol",function(){q=false;f(document).unbind(".vol");!i&&e=="vertical"&&k.hide()});q=true;return false});g.find("button").click(function(){d.setMuted(!d.muted)});d.addEventListener("volumechange",function(){if(!q)if(d.muted){p(0); +g.removeClass("mejs-mute").addClass("mejs-unmute")}else{p(d.volume);g.removeClass("mejs-unmute").addClass("mejs-mute")}},false);if(this.container.is(":visible")){p(a.options.startVolume);d.pluginType==="native"&&d.setVolume(a.options.startVolume)}}}})})(mejs.$); +(function(f){f.extend(mejs.MepDefaults,{usePluginFullScreen:true,newWindowCallback:function(){return""},fullscreenText:mejs.i18n.t("Fullscreen")});f.extend(MediaElementPlayer.prototype,{isFullScreen:false,isNativeFullScreen:false,docStyleOverflow:null,isInIframe:false,buildfullscreen:function(a,b,c,d){if(a.isVideo){a.isInIframe=window.location!=window.parent.location;if(mejs.MediaFeatures.hasTrueNativeFullScreen){c=null;c=mejs.MediaFeatures.hasMozNativeFullScreen?f(document):a.container;c.bind(mejs.MediaFeatures.fullScreenEventName, +function(){if(mejs.MediaFeatures.isFullScreen()){a.isNativeFullScreen=true;a.setControlsSize()}else{a.isNativeFullScreen=false;a.exitFullScreen()}})}var e=this,g=f('<div class="mejs-button mejs-fullscreen-button"><button type="button" aria-controls="'+e.id+'" title="'+e.options.fullscreenText+'"></button></div>').appendTo(b);if(e.media.pluginType==="native"||!e.options.usePluginFullScreen&&!mejs.MediaFeatures.isFirefox)g.click(function(){mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()|| +a.isFullScreen?a.exitFullScreen():a.enterFullScreen()});else{var k=null;if(function(){var i=document.createElement("x"),j=document.documentElement,l=window.getComputedStyle;if(!("pointerEvents"in i.style))return false;i.style.pointerEvents="auto";i.style.pointerEvents="x";j.appendChild(i);l=l&&l(i,"").pointerEvents==="auto";j.removeChild(i);return!!l}()&&!mejs.MediaFeatures.isOpera){var h=false,o=function(){if(h){n.hide();p.hide();m.hide();g.css("pointer-events","");e.controls.css("pointer-events", +"");h=false}},n=f('<div class="mejs-fullscreen-hover" />').appendTo(e.container).mouseover(o),p=f('<div class="mejs-fullscreen-hover" />').appendTo(e.container).mouseover(o),m=f('<div class="mejs-fullscreen-hover" />').appendTo(e.container).mouseover(o),q=function(){var i={position:"absolute",top:0,left:0};n.css(i);p.css(i);m.css(i);n.width(e.container.width()).height(e.container.height()-e.controls.height());i=g.offset().left-e.container.offset().left;fullScreenBtnWidth=g.outerWidth(true);p.width(i).height(e.controls.height()).css({top:e.container.height()- +e.controls.height()});m.width(e.container.width()-i-fullScreenBtnWidth).height(e.controls.height()).css({top:e.container.height()-e.controls.height(),left:i+fullScreenBtnWidth})};f(document).resize(function(){q()});g.mouseover(function(){if(!e.isFullScreen){var i=g.offset(),j=a.container.offset();d.positionFullscreenButton(i.left-j.left,i.top-j.top,false);g.css("pointer-events","none");e.controls.css("pointer-events","none");n.show();m.show();p.show();q();h=true}});d.addEventListener("fullscreenchange", +function(){o()})}else g.mouseover(function(){if(k!==null){clearTimeout(k);delete k}var i=g.offset(),j=a.container.offset();d.positionFullscreenButton(i.left-j.left,i.top-j.top,true)}).mouseout(function(){if(k!==null){clearTimeout(k);delete k}k=setTimeout(function(){d.hideFullscreenButton()},1500)})}a.fullscreenBtn=g;f(document).bind("keydown",function(i){if((mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||e.isFullScreen)&&i.keyCode==27)a.exitFullScreen()})}},enterFullScreen:function(){var a= +this;if(!(a.media.pluginType!=="native"&&(mejs.MediaFeatures.isFirefox||a.options.usePluginFullScreen))){docStyleOverflow=document.documentElement.style.overflow;document.documentElement.style.overflow="hidden";normalHeight=a.container.height();normalWidth=a.container.width();if(a.media.pluginType==="native")if(mejs.MediaFeatures.hasTrueNativeFullScreen){mejs.MediaFeatures.requestFullScreen(a.container[0]);a.isInIframe&&setTimeout(function c(){if(a.isNativeFullScreen)f(window).width()!==screen.width? +a.exitFullScreen():setTimeout(c,500)},500)}else if(mejs.MediaFeatures.hasSemiNativeFullScreen){a.media.webkitEnterFullscreen();return}if(a.isInIframe){var b=a.options.newWindowCallback(this);if(b!=="")if(mejs.MediaFeatures.hasTrueNativeFullScreen)setTimeout(function(){if(!a.isNativeFullScreen){a.pause();window.open(b,a.id,"top=0,left=0,width="+screen.availWidth+",height="+screen.availHeight+",resizable=yes,scrollbars=no,status=no,toolbar=no")}},250);else{a.pause();window.open(b,a.id,"top=0,left=0,width="+ +screen.availWidth+",height="+screen.availHeight+",resizable=yes,scrollbars=no,status=no,toolbar=no");return}}a.container.addClass("mejs-container-fullscreen").width("100%").height("100%");setTimeout(function(){a.container.css({width:"100%",height:"100%"});a.setControlsSize()},500);if(a.pluginType==="native")a.$media.width("100%").height("100%");else{a.container.find("object, embed, iframe").width("100%").height("100%");a.media.setVideoSize(f(window).width(),f(window).height())}a.layers.children("div").width("100%").height("100%"); +a.fullscreenBtn&&a.fullscreenBtn.removeClass("mejs-fullscreen").addClass("mejs-unfullscreen");a.setControlsSize();a.isFullScreen=true}},exitFullScreen:function(){if(this.media.pluginType!=="native"&&mejs.MediaFeatures.isFirefox)this.media.setFullscreen(false);else{if(mejs.MediaFeatures.hasTrueNativeFullScreen&&(mejs.MediaFeatures.isFullScreen()||this.isFullScreen))mejs.MediaFeatures.cancelFullScreen();document.documentElement.style.overflow=docStyleOverflow;this.container.removeClass("mejs-container-fullscreen").width(normalWidth).height(normalHeight); +if(this.pluginType==="native")this.$media.width(normalWidth).height(normalHeight);else{this.container.find("object embed").width(normalWidth).height(normalHeight);this.media.setVideoSize(normalWidth,normalHeight)}this.layers.children("div").width(normalWidth).height(normalHeight);this.fullscreenBtn.removeClass("mejs-unfullscreen").addClass("mejs-fullscreen");this.setControlsSize();this.isFullScreen=false}}})})(mejs.$); +(function(f){f.extend(mejs.MepDefaults,{startLanguage:"",tracksText:"Captions/Subtitles"});f.extend(MediaElementPlayer.prototype,{hasChapters:false,buildtracks:function(a,b,c,d){if(a.isVideo)if(a.tracks.length!=0){var e;a.chapters=f('<div class="mejs-chapters mejs-layer"></div>').prependTo(c).hide();a.captions=f('<div class="mejs-captions-layer mejs-layer"><div class="mejs-captions-position"><span class="mejs-captions-text"></span></div></div>').prependTo(c).hide();a.captionsText=a.captions.find(".mejs-captions-text"); +a.captionsButton=f('<div class="mejs-button mejs-captions-button"><button type="button" aria-controls="'+this.id+'" title="'+this.options.tracksText+'"></button><div class="mejs-captions-selector"><ul><li><input type="radio" name="'+a.id+'_captions" id="'+a.id+'_captions_none" value="none" checked="checked" /><label for="'+a.id+'_captions_none">None</label></li></ul></div></div>').appendTo(b).hover(function(){f(this).find(".mejs-captions-selector").css("visibility","visible")},function(){f(this).find(".mejs-captions-selector").css("visibility", +"hidden")}).delegate("input[type=radio]","click",function(){lang=this.value;if(lang=="none")a.selectedTrack=null;else for(e=0;e<a.tracks.length;e++)if(a.tracks[e].srclang==lang){a.selectedTrack=a.tracks[e];a.captions.attr("lang",a.selectedTrack.srclang);a.displayCaptions();break}});a.options.alwaysShowControls?a.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover"):a.container.bind("controlsshown",function(){a.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover")}).bind("controlshidden", +function(){d.paused||a.container.find(".mejs-captions-position").removeClass("mejs-captions-position-hover")});a.trackToLoad=-1;a.selectedTrack=null;a.isLoadingTrack=false;for(e=0;e<a.tracks.length;e++)a.tracks[e].kind=="subtitles"&&a.addTrackButton(a.tracks[e].srclang,a.tracks[e].label);a.loadNextTrack();d.addEventListener("timeupdate",function(){a.displayCaptions()},false);d.addEventListener("loadedmetadata",function(){a.displayChapters()},false);a.container.hover(function(){if(a.hasChapters){a.chapters.css("visibility", +"visible");a.chapters.fadeIn(200).height(a.chapters.find(".mejs-chapter").outerHeight())}},function(){a.hasChapters&&!d.paused&&a.chapters.fadeOut(200,function(){f(this).css("visibility","hidden");f(this).css("display","block")})});a.node.getAttribute("autoplay")!==null&&a.chapters.css("visibility","hidden")}},loadNextTrack:function(){this.trackToLoad++;if(this.trackToLoad<this.tracks.length){this.isLoadingTrack=true;this.loadTrack(this.trackToLoad)}else this.isLoadingTrack=false},loadTrack:function(a){var b= +this,c=b.tracks[a];f.ajax({url:c.src,dataType:"text",success:function(d){c.entries=typeof d=="string"&&/<tt\s+xml/ig.exec(d)?mejs.TrackFormatParser.dfxp.parse(d):mejs.TrackFormatParser.webvvt.parse(d);c.isLoaded=true;b.enableTrackButton(c.srclang,c.label);b.loadNextTrack();c.kind=="chapters"&&b.media.addEventListener("play",function(){b.media.duration>0&&b.displayChapters(c)},false)},error:function(){b.loadNextTrack()}})},enableTrackButton:function(a,b){if(b==="")b=mejs.language.codes[a]||a;this.captionsButton.find("input[value="+ +a+"]").prop("disabled",false).siblings("label").html(b);this.options.startLanguage==a&&f("#"+this.id+"_captions_"+a).click();this.adjustLanguageBox()},addTrackButton:function(a,b){if(b==="")b=mejs.language.codes[a]||a;this.captionsButton.find("ul").append(f('<li><input type="radio" name="'+this.id+'_captions" id="'+this.id+"_captions_"+a+'" value="'+a+'" disabled="disabled" /><label for="'+this.id+"_captions_"+a+'">'+b+" (loading)</label></li>"));this.adjustLanguageBox();this.container.find(".mejs-captions-translations option[value="+ +a+"]").remove()},adjustLanguageBox:function(){this.captionsButton.find(".mejs-captions-selector").height(this.captionsButton.find(".mejs-captions-selector ul").outerHeight(true)+this.captionsButton.find(".mejs-captions-translations").outerHeight(true))},displayCaptions:function(){if(typeof this.tracks!="undefined"){var a,b=this.selectedTrack;if(b!=null&&b.isLoaded)for(a=0;a<b.entries.times.length;a++)if(this.media.currentTime>=b.entries.times[a].start&&this.media.currentTime<=b.entries.times[a].stop){this.captionsText.html(b.entries.text[a]); +this.captions.show().height(0);return}this.captions.hide()}},displayChapters:function(){var a;for(a=0;a<this.tracks.length;a++)if(this.tracks[a].kind=="chapters"&&this.tracks[a].isLoaded){this.drawChapters(this.tracks[a]);this.hasChapters=true;break}},drawChapters:function(a){var b=this,c,d,e=d=0;b.chapters.empty();for(c=0;c<a.entries.times.length;c++){d=a.entries.times[c].stop-a.entries.times[c].start;d=Math.floor(d/b.media.duration*100);if(d+e>100||c==a.entries.times.length-1&&d+e<100)d=100-e;b.chapters.append(f('<div class="mejs-chapter" rel="'+ +a.entries.times[c].start+'" style="left: '+e.toString()+"%;width: "+d.toString()+'%;"><div class="mejs-chapter-block'+(c==a.entries.times.length-1?" mejs-chapter-block-last":"")+'"><span class="ch-title">'+a.entries.text[c]+'</span><span class="ch-time">'+mejs.Utility.secondsToTimeCode(a.entries.times[c].start)+"–"+mejs.Utility.secondsToTimeCode(a.entries.times[c].stop)+"</span></div></div>"));e+=d}b.chapters.find("div.mejs-chapter").click(function(){b.media.setCurrentTime(parseFloat(f(this).attr("rel"))); +b.media.paused&&b.media.play()});b.chapters.show()}});mejs.language={codes:{af:"Afrikaans",sq:"Albanian",ar:"Arabic",be:"Belarusian",bg:"Bulgarian",ca:"Catalan",zh:"Chinese","zh-cn":"Chinese Simplified","zh-tw":"Chinese Traditional",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",et:"Estonian",tl:"Filipino",fi:"Finnish",fr:"French",gl:"Galician",de:"German",el:"Greek",ht:"Haitian Creole",iw:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",ga:"Irish",it:"Italian",ja:"Japanese", +ko:"Korean",lv:"Latvian",lt:"Lithuanian",mk:"Macedonian",ms:"Malay",mt:"Maltese",no:"Norwegian",fa:"Persian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sr:"Serbian",sk:"Slovak",sl:"Slovenian",es:"Spanish",sw:"Swahili",sv:"Swedish",tl:"Tagalog",th:"Thai",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese",cy:"Welsh",yi:"Yiddish"}};mejs.TrackFormatParser={webvvt:{pattern_identifier:/^([a-zA-z]+-)?[0-9]+$/,pattern_timecode:/^([0-9]{2}:[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ([0-9]{2}:[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/, +parse:function(a){var b=0;a=mejs.TrackFormatParser.split2(a,/\r?\n/);for(var c={text:[],times:[]},d,e;b<a.length;b++)if(this.pattern_identifier.exec(a[b])){b++;if((d=this.pattern_timecode.exec(a[b]))&&b<a.length){b++;e=a[b];for(b++;a[b]!==""&&b<a.length;){e=e+"\n"+a[b];b++}e=f.trim(e).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,"<a href='$1' target='_blank'>$1</a>");c.text.push(e);c.times.push({start:mejs.Utility.convertSMPTEtoSeconds(d[1])==0?0.2:mejs.Utility.convertSMPTEtoSeconds(d[1]), +stop:mejs.Utility.convertSMPTEtoSeconds(d[3]),settings:d[5]})}}return c}},dfxp:{parse:function(a){a=f(a).filter("tt");var b=0;b=a.children("div").eq(0);var c=b.find("p");b=a.find("#"+b.attr("style"));var d,e;a={text:[],times:[]};if(b.length){e=b.removeAttr("id").get(0).attributes;if(e.length){d={};for(b=0;b<e.length;b++)d[e[b].name.split(":")[1]]=e[b].value}}for(b=0;b<c.length;b++){var g;e={start:null,stop:null,style:null};if(c.eq(b).attr("begin"))e.start=mejs.Utility.convertSMPTEtoSeconds(c.eq(b).attr("begin")); +if(!e.start&&c.eq(b-1).attr("end"))e.start=mejs.Utility.convertSMPTEtoSeconds(c.eq(b-1).attr("end"));if(c.eq(b).attr("end"))e.stop=mejs.Utility.convertSMPTEtoSeconds(c.eq(b).attr("end"));if(!e.stop&&c.eq(b+1).attr("begin"))e.stop=mejs.Utility.convertSMPTEtoSeconds(c.eq(b+1).attr("begin"));if(d){g="";for(var k in d)g+=k+":"+d[k]+";"}if(g)e.style=g;if(e.start==0)e.start=0.2;a.times.push(e);e=f.trim(c.eq(b).html()).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig, +"<a href='$1' target='_blank'>$1</a>");a.text.push(e);if(a.times.start==0)a.times.start=2}return a}},split2:function(a,b){return a.split(b)}};if("x\n\ny".split(/\n/gi).length!=3)mejs.TrackFormatParser.split2=function(a,b){var c=[],d="",e;for(e=0;e<a.length;e++){d+=a.substring(e,e+1);if(b.test(d)){c.push(d.replace(b,""));d=""}}c.push(d);return c}})(mejs.$); +(function(f){f.extend(mejs.MepDefaults,{contextMenuItems:[{render:function(a){if(typeof a.enterFullScreen=="undefined")return null;return a.isFullScreen?"Turn off Fullscreen":"Go Fullscreen"},click:function(a){a.isFullScreen?a.exitFullScreen():a.enterFullScreen()}},{render:function(a){return a.media.muted?"Unmute":"Mute"},click:function(a){a.media.muted?a.setMuted(false):a.setMuted(true)}},{isSeparator:true},{render:function(){return"Download Video"},click:function(a){window.location.href=a.media.currentSrc}}]}); +f.extend(MediaElementPlayer.prototype,{buildcontextmenu:function(a){a.contextMenu=f('<div class="mejs-contextmenu"></div>').appendTo(f("body")).hide();a.container.bind("contextmenu",function(b){if(a.isContextMenuEnabled){b.preventDefault();a.renderContextMenu(b.clientX-1,b.clientY-1);return false}});a.container.bind("click",function(){a.contextMenu.hide()});a.contextMenu.bind("mouseleave",function(){a.startContextMenuTimer()})},isContextMenuEnabled:true,enableContextMenu:function(){this.isContextMenuEnabled= +true},disableContextMenu:function(){this.isContextMenuEnabled=false},contextMenuTimeout:null,startContextMenuTimer:function(){var a=this;a.killContextMenuTimer();a.contextMenuTimer=setTimeout(function(){a.hideContextMenu();a.killContextMenuTimer()},750)},killContextMenuTimer:function(){var a=this.contextMenuTimer;if(a!=null){clearTimeout(a);delete a}},hideContextMenu:function(){this.contextMenu.hide()},renderContextMenu:function(a,b){for(var c=this,d="",e=c.options.contextMenuItems,g=0,k=e.length;g< +k;g++)if(e[g].isSeparator)d+='<div class="mejs-contextmenu-separator"></div>';else{var h=e[g].render(c);if(h!=null)d+='<div class="mejs-contextmenu-item" data-itemindex="'+g+'" id="element-'+Math.random()*1E6+'">'+h+"</div>"}c.contextMenu.empty().append(f(d)).css({top:b,left:a}).show();c.contextMenu.find(".mejs-contextmenu-item").each(function(){var o=f(this),n=parseInt(o.data("itemindex"),10),p=c.options.contextMenuItems[n];typeof p.show!="undefined"&&p.show(o,c);o.click(function(){typeof p.click!= +"undefined"&&p.click(c);c.contextMenu.hide()})});setTimeout(function(){c.killControlsTimer("rev3")},100)}})})(mejs.$); +(function(f){f.extend(mejs.MepDefaults,{postrollCloseText:mejs.i18n.t("Close")});f.extend(MediaElementPlayer.prototype,{buildpostroll:function(a,b,c){var d=this.container.find('link[rel="postroll"]').attr("href");if(typeof d!=="undefined"){a.postroll=f('<div class="mejs-postroll-layer mejs-layer"><a class="mejs-postroll-close" onclick="$(this).parent().hide();return false;">'+this.options.postrollCloseText+'</a><div class="mejs-postroll-layer-content"></div></div>').prependTo(c).hide();this.media.addEventListener("ended", +function(){f.ajax({dataType:"html",url:d,success:function(e){c.find(".mejs-postroll-layer-content").html(e)}});a.postroll.show()},false)}}})})(mejs.$); diff --git a/lib/mediaelementjs/silverlightmediaelement.xap b/lib/mediaelementjs/silverlightmediaelement.xap Binary files differnew file mode 100644 index 00000000..9d55c2e4 --- /dev/null +++ b/lib/mediaelementjs/silverlightmediaelement.xap diff --git a/modules/gallery/helpers/gallery_theme.php b/modules/gallery/helpers/gallery_theme.php index 3c6d71e9..e5f6b0b4 100644 --- a/modules/gallery/helpers/gallery_theme.php +++ b/modules/gallery/helpers/gallery_theme.php @@ -49,6 +49,10 @@ class gallery_theme_Core { . $theme->script("l10n_client.js"); } + // Add MediaElementJS library + $buf .= $theme->script("mediaelementjs/mediaelement.js"); + $buf .= $theme->script("mediaelementjs/mediaelementplayer.js"); + $buf .= $theme->css("mediaelementjs/mediaelementplayer.css"); $buf .= $theme->css("uploadify/uploadify.css"); return $buf; } diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php index e8afaec3..1e16d307 100644 --- a/modules/gallery/models/item.php +++ b/modules/gallery/models/item.php @@ -737,40 +737,42 @@ class Item_Model_Core extends ORM_MPTT { } /** - * Return a view for movies. By default this is a Flowplayer v3 <script> tag, but - * movie_img events can override this and provide their own player/view. If no player/view - * is found and the movie is unsupported by Flowplayer v3, this returns a simple download link. + * Return a view for movies. By default, this uses MediaElementPlayer on an HTML5-compliant + * <video> object, but movie_img events can override this and provide their own player/view. + * If none are found and the player can't play the movie, this returns a simple download link. * @param array $extra_attrs * @return string */ public function movie_img($extra_attrs) { - $max_size = module::get_var("gallery", "resize_size", 640); + $player_width = module::get_var("gallery", "resize_size", 640); $width = $this->width; $height = $this->height; if ($width == 0 || $height == 0) { - // Not set correctly, likely because ffmpeg isn't available. Making the window 0x0 causes the - // video to be effectively unviewable. So, let's guess: set width to max_size and guess a - // height (using 4:3 aspect ratio). Once the video metadata is loaded, js in - // movieplayer-flash.html.php will correct these values. - $width = $max_size; + // Not set correctly, likely because FFmpeg isn't available. Making the window 0x0 causes the + // player to be unviewable during loading. So, let's guess: set width to player_width and + // guess a height (using 4:3 aspect ratio). Once the video metadata is loaded, the player + // will correct these values. + $width = $player_width; $height = ceil($width * 3/4); } - $attrs = array_merge(array("id" => "g-item-id-{$this->id}"), $extra_attrs, - array("class" => "g-movie")); + $div_attrs = array_merge(array("id" => "g-item-id-{$this->id}"), $extra_attrs, + array("class" => "g-movie", "style" => "width: {$player_width}px;")); // Run movie_img events, which can either: - // - generate a view, which is used in place of the standard Flowplayer v3 player + // - generate a view, which is used in place of the standard MediaElementPlayer // (use view variable) - // - alter the arguments sent to the standard player - // (use fp_flash_params and fp_flash_config variables) + // - change the file sent to the player + // (use width, height, url, and filename variables) + // - alter the arguments sent to the player + // (use video_attrs and player_options variables) $movie_img = new stdClass(); - $movie_img->max_size = $max_size; $movie_img->width = $width; $movie_img->height = $height; - $movie_img->attrs = $attrs; $movie_img->url = $this->file_url(true); - $movie_img->fp_flash_params = array(); // add'l Flowplayer params values (will be json encoded) - $movie_img->fp_flash_config = array(); // add'l Flowplayer config values (will be json encoded) + $movie_img->filename = $this->name; + $movie_img->div_attrs = $div_attrs; // attrs for the outer .g-movie <div> + $movie_img->video_attrs = array(); // add'l <video> attrs + $movie_img->player_options = array(); // add'l MediaElementPlayer options (will be json encoded) $movie_img->view = array(); module::event("movie_img", $movie_img, $this); @@ -778,26 +780,26 @@ class Item_Model_Core extends ORM_MPTT { // View generated - use it $view = implode("\n", $movie_img->view); } else { - // View NOT generated - see if filetype supported by Flowplayer v3 - // Note that the extension list below is hard-coded and doesn't use the legal_file helper - // since anything else will not work in Flowplayer v3. - if (in_array(strtolower(pathinfo($this->name, PATHINFO_EXTENSION)), - array("flv", "mp4", "m4v", "mov", "f4v"))) { - // Filetype supported by Flowplayer v3 - use it (default) - $view = new View("movieplayer-flash.html"); - $view->max_size = $movie_img->max_size; + // View not generated - see if the filetype is supported by MediaElementPlayer. + // Note that the extension list below doesn't use the legal_file helper but rather + // is hard-coded based on player specifications. + $extension = strtolower(pathinfo($movie_img->filename, PATHINFO_EXTENSION)); + if (in_array($extension, array("webm", "ogv", "mp4", "flv", "m4v", "mov", "f4v", "wmv"))) { + // Filetype supported by MediaElementPlayer - use it (default) + $view = new View("movieplayer.html"); $view->width = $movie_img->width; $view->height = $movie_img->height; - $view->attrs = $movie_img->attrs; - $view->url = $movie_img->url; - $view->fp_flash_params = $movie_img->fp_flash_params; - $view->fp_flash_config = $movie_img->fp_flash_config; + $view->div_attrs = $movie_img->div_attrs; + $view->video_attrs = array_merge(array("controls" => "controls", "autoplay" => "autoplay", + "style" => "max-width: 100%"), $movie_img->video_attrs); + $view->source_attrs = array("type" => legal_file::get_movie_types_by_extension($extension), + "src" => $movie_img->url); + $view->player_options = $movie_img->player_options; } else { - // Filetype NOT supported by Flowplayer v3 - display download link - $attrs = array_merge($attrs, array("style" => "width: {$max_size}px;", - "download" => $this->name, // forces download (HTML5 only) - "class" => "g-movie g-movie-download-link")); - $view = html::anchor($this->file_url(true), t("Click here to download item."), $attrs); + // Filetype not supported by MediaElementPlayer - display download link + $div_attrs["class"] .= " g-movie-download-link"; // add class + $div_attrs["download"] = $movie_img->filename; // force download (HTML5 only) + $view = html::anchor($movie_img->url, t("Click here to download item."), $div_attrs); } } return $view; diff --git a/modules/gallery/tests/xss_data.txt b/modules/gallery/tests/xss_data.txt index 9c796999..7e77a70b 100644 --- a/modules/gallery/tests/xss_data.txt +++ b/modules/gallery/tests/xss_data.txt @@ -223,13 +223,13 @@ modules/gallery/views/menu_dialog.html.php 5 DIRTY_JS $menu- modules/gallery/views/menu_link.html.php 3 DIRTY $menu->css_id?"id='{$menu->css_id}'":"" modules/gallery/views/menu_link.html.php 4 DIRTY_ATTR $menu->css_class modules/gallery/views/menu_link.html.php 5 DIRTY_JS $menu->url -modules/gallery/views/movieplayer-flash.html.php 3 DIRTY html::anchor($url,"",$attrs) -modules/gallery/views/movieplayer-flash.html.php 5 DIRTY_JS $attrs["id"] -modules/gallery/views/movieplayer-flash.html.php 6 DIRTY_JS $max_size -modules/gallery/views/movieplayer-flash.html.php 24 DIRTY_JS url::abs_file("lib/flowplayer-flash/flowplayer.swf") -modules/gallery/views/movieplayer-flash.html.php 31 DIRTY_JS url::abs_file("lib/flowplayer-flash/flowplayer.pseudostreaming-byterange.swf") -modules/gallery/views/movieplayer-flash.html.php 49 DIRTY_JS $width -modules/gallery/views/movieplayer-flash.html.php 49 DIRTY_JS $height +modules/gallery/views/movieplayer.html.php 2 DIRTY html::attributes($div_attrs) +modules/gallery/views/movieplayer.html.php 3 DIRTY html::attributes($video_attrs) +modules/gallery/views/movieplayer.html.php 4 DIRTY html::attributes($source_attrs) +modules/gallery/views/movieplayer.html.php 8 DIRTY_JS $div_attrs["id"] +modules/gallery/views/movieplayer.html.php 10 DIRTY_JS $width +modules/gallery/views/movieplayer.html.php 11 DIRTY_JS $height +modules/gallery/views/movieplayer.html.php 14 DIRTY_JS url::abs_file("lib/mediaelementjs/") modules/gallery/views/permissions_browse.html.php 3 DIRTY_JS url::site("permissions/form/__ITEM__") modules/gallery/views/permissions_browse.html.php 16 DIRTY_JS url::site("permissions/change/__CMD__/__GROUP__/__PERM__/__ITEM__?csrf=$csrf") modules/gallery/views/permissions_browse.html.php 43 DIRTY_ATTR $parent->id diff --git a/modules/gallery/views/movieplayer-flash.html.php b/modules/gallery/views/movieplayer-flash.html.php deleted file mode 100644 index 12303bf4..00000000 --- a/modules/gallery/views/movieplayer-flash.html.php +++ /dev/null @@ -1,50 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access.") ?> -<script type="text/javascript" src="<?= url::file("lib/flowplayer-flash/flowplayer.js") ?>"></script> -<?= html::anchor($url, "", $attrs) ?> -<script type="text/javascript"> - var id = "<?= $attrs["id"] ?>"; - var max_size = <?= $max_size ?>; - // set the size of the movie html anchor, taking into account max_size and height of control bar - function set_movie_size(width, height) { - if((width > max_size) || (height > max_size)) { - if (width > height) { - height = Math.ceil(height * max_size / width); - width = max_size; - } else { - width = Math.ceil(width * max_size / height); - height = max_size; - } - } - height += flowplayer(id).getConfig().plugins.controls.height; - $("#" + id).css({width: width, height: height}); - }; - // setup flowplayer - flowplayer(id, - $.extend(true, { - "src": "<?= url::abs_file("lib/flowplayer-flash/flowplayer.swf") ?>", - "wmode": "transparent", - "provider": "pseudostreaming" - }, <?= json_encode($fp_flash_params) ?>), - $.extend(true, { - "plugins": { - "pseudostreaming": { - "url": "<?= url::abs_file("lib/flowplayer-flash/flowplayer.pseudostreaming-byterange.swf") ?>" - }, - "controls": { - "autoHide": "always", - "hideDelay": 2000, - "height": 24 - } - }, - "clip": { - "scaling": "fit", - "onMetaData": function(clip) { - // set movie size a second time using actual size from metadata - set_movie_size(parseInt(clip.metaData.width), parseInt(clip.metaData.height)); - } - } - }, <?= json_encode($fp_flash_config) ?>) - ).ipad(); - // set movie size using width and height passed from movie_img function - $("document").ready(set_movie_size(<?= $width ?>, <?= $height ?>)); -</script> diff --git a/modules/gallery/views/movieplayer.html.php b/modules/gallery/views/movieplayer.html.php new file mode 100644 index 00000000..f78cc91a --- /dev/null +++ b/modules/gallery/views/movieplayer.html.php @@ -0,0 +1,17 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<div <?= html::attributes($div_attrs) ?>> + <video <?= html::attributes($video_attrs) ?>> + <source <?= html::attributes($source_attrs) ?>> + </video> +</div> +<script type="text/javascript"> + $("#<?= $div_attrs["id"] ?> video").mediaelementplayer( + $.extend(true, { + defaultVideoWidth: <?= $width ?>, + defaultVideoHeight: <?= $height ?>, + startVolume: 1.0, + features: ["playpause", "progress", "current", "duration", "volume", "fullscreen"], + pluginPath: "<?= url::abs_file("lib/mediaelementjs/") ?>" + }, <?= json_encode($player_options) ?>) + ); +</script> diff --git a/themes/wind/css/screen.css b/themes/wind/css/screen.css index cbeaed34..fa1704b0 100644 --- a/themes/wind/css/screen.css +++ b/themes/wind/css/screen.css @@ -531,7 +531,7 @@ td { } #g-item img.g-resize, -#g-item a.g-movie { +#g-item .g-movie { display: block; margin: 0 auto; } |