Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updates

  • Loading branch information...
commit daccf4029b0be6d7ecf6e3ded634cd35dad0c607 1 parent e124e41
@KasimAhmic authored
View
2  index.html
@@ -180,7 +180,7 @@ <h2 id="project_tagline">I found this great jPlayer skin but it only worked for
<h3>Compatibility</h3>
-<p>Midnight Black will support anyt jPlayer version from 2.1.0 all the way to the current developmental build. I recommend you keep up to date on your jPlayer installation. Midnight Black also uses some CSS3 features such as border radius and text shadow so it won't show up in IE8 or lower. If you want, you can use <a href="http://css3pie.com/">CSS3PIE</a> to enable border radius in IE8 and lower but text-shadow is still a WIP.</p>
+<p>Midnight Black will support any jPlayer version from 2.1.0 all the way to the current developmental build. I recommend you keep up to date on your jPlayer installation. Midnight Black also uses some CSS3 features such as border-radius, text-shadow, and box-shadow (specifically box-shdaow: inset) so it won't show up in IE8 or lower. If you want, you can use <a href="http://css3pie.com/">CSS3PIE</a> to enable border-radius in IE8 and lower but text-shadow and box-shadow: inset are still a WIP. I'll add support for CSS3PIE as soon as they add more functionality to it.</p>
<h3>Licensing</h3>
View
2  js/jquery.jplayer.min.js
@@ -1 +1 @@
-(function(a,b){if(typeof define==="function"&&define.amd){define(["jquery"],b)}else{b(a.jQuery)}})(this,function(a,b){a.fn.jPlayer=function(c){var d="jPlayer";var e=typeof c==="string",f=Array.prototype.slice.call(arguments,1),g=this;c=!e&&f.length?a.extend.apply(null,[true,c].concat(f)):c;if(e&&c.charAt(0)==="_"){return g}if(e){this.each(function(){var e=a.data(this,d),h=e&&a.isFunction(e[c])?e[c].apply(e,f):e;if(h!==e&&h!==b){g=h;return false}})}else{this.each(function(){var b=a.data(this,d);if(b){b.option(c||{})}else{a.data(this,d,new a.jPlayer(c,this))}})}return g};a.jPlayer=function(b,c){if(arguments.length){this.element=a(c);this.options=a.extend(true,{},this.options,b);var d=this;this.element.bind("remove.jPlayer",function(){d.destroy()});this._init()}};a.jPlayer.emulateMethods="load play pause";a.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate";a.jPlayer.emulateOptions="muted volume";a.jPlayer.reservedEvent="ready flashreset resize repeat error warning";a.jPlayer.event={};a.each(["ready","flashreset","resize","repeat","click","error","warning","loadstart","progress","suspend","abort","emptied","stalled","play","pause","loadedmetadata","loadeddata","waiting","playing","canplay","canplaythrough","seeking","seeked","timeupdate","ended","ratechange","durationchange","volumechange"],function(){a.jPlayer.event[this]="jPlayer_"+this});a.jPlayer.htmlEvent=["loadstart","abort","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","ratechange"];a.jPlayer.pause=function(){a.each(a.jPlayer.prototype.instances,function(a,b){if(b.data("jPlayer").status.srcSet){b.jPlayer("pause")}})};a.jPlayer.timeFormat={showHour:false,showMin:true,showSec:true,padHour:false,padMin:true,padSec:true,sepHour:":",sepMin:":",sepSec:""};a.jPlayer.convertTime=function(b){b=b&&typeof b==="number"?b:0;var c=new Date(b*1e3),d=c.getUTCHours(),e=a.jPlayer.timeFormat.showHour?c.getUTCMinutes():c.getUTCMinutes()+d*60,f=a.jPlayer.timeFormat.showMin?c.getUTCSeconds():c.getUTCSeconds()+e*60,g=a.jPlayer.timeFormat.padHour&&d<10?"0"+d:d,h=a.jPlayer.timeFormat.padMin&&e<10?"0"+e:e,i=a.jPlayer.timeFormat.padSec&&f<10?"0"+f:f,j="";j+=a.jPlayer.timeFormat.showHour?g+a.jPlayer.timeFormat.sepHour:"";j+=a.jPlayer.timeFormat.showMin?h+a.jPlayer.timeFormat.sepMin:"";j+=a.jPlayer.timeFormat.showSec?i+a.jPlayer.timeFormat.sepSec:"";return j};a.jPlayer.uaBrowser=function(a){var b=a.toLowerCase();var c=/(webkit)[ \/]([\w.]+)/;var d=/(opera)(?:.*version)?[ \/]([\w.]+)/;var e=/(msie) ([\w.]+)/;var f=/(mozilla)(?:.*? rv:([\w.]+))?/;var g=c.exec(b)||d.exec(b)||e.exec(b)||b.indexOf("compatible")<0&&f.exec(b)||[];return{browser:g[1]||"",version:g[2]||"0"}};a.jPlayer.uaPlatform=function(a){var b=a.toLowerCase();var c=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/;var d=/(ipad|playbook)/;var e=/(android)/;var f=/(mobile)/;var g=c.exec(b)||[];var h=d.exec(b)||!f.exec(b)&&e.exec(b)||[];if(g[1]){g[1]=g[1].replace(/\s/g,"_")}return{platform:g[1]||"",tablet:h[1]||""}};a.jPlayer.browser={};a.jPlayer.platform={};var c=a.jPlayer.uaBrowser(navigator.userAgent);if(c.browser){a.jPlayer.browser[c.browser]=true;a.jPlayer.browser.version=c.version}var d=a.jPlayer.uaPlatform(navigator.userAgent);if(d.platform){a.jPlayer.platform[d.platform]=true;a.jPlayer.platform.mobile=!d.tablet;a.jPlayer.platform.tablet=!!d.tablet}a.jPlayer.getDocMode=function(){var b;if(a.jPlayer.browser.msie){if(document.documentMode){b=document.documentMode}else{b=5;if(document.compatMode){if(document.compatMode==="CSS1Compat"){b=7}}}}return b};a.jPlayer.browser.documentMode=a.jPlayer.getDocMode();a.jPlayer.prototype={count:0,version:{script:"2.2.8",needFlash:"2.2.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",preload:"metadata",volume:.8,muted:false,wmode:"opaque",backgroundColor:"#000000",cssSelectorAncestor:"#jp_container_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",currentTime:".jp-current-time",duration:".jp-duration",fullScreen:".jp-full-screen",restoreScreen:".jp-restore-screen",repeat:".jp-repeat",repeatOff:".jp-repeat-off",gui:".jp-gui",noSolution:".jp-no-solution"},fullScreen:false,autohide:{restored:false,full:true,fadeIn:200,fadeOut:600,hold:1e3},loop:false,repeat:function(b){if(b.jPlayer.options.loop){a(this).unbind(".jPlayerRepeat").bind(a.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){a(this).jPlayer("play")})}else{a(this).unbind(".jPlayerRepeat")}},nativeVideoControls:{},noFullScreen:{msie:/msie [0-6]/,ipad:/ipad.*?os [0-4]/,iphone:/iphone/,ipod:/ipod/,android_pad:/android [0-3](?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,webos:/webos/},noVolume:{ipad:/ipad/,iphone:/iphone/,ipod:/ipod/,android_pad:/android(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,webos:/webos/,playbook:/playbook/},verticalVolume:false,idPrefix:"jp",noConflict:"jQuery",emulateHtml:false,errorAlerts:false,warningAlerts:false},optionsAudio:{size:{width:"0px",height:"0px",cssClass:""},sizeFull:{width:"0px",height:"0px",cssClass:""}},optionsVideo:{size:{width:"480px",height:"270px",cssClass:"jp-video-270p"},sizeFull:{width:"100%",height:"100%",cssClass:"jp-video-full"}},instances:{},status:{src:"",media:{},paused:true,format:{},formatType:"",waitForPlay:true,waitForLoad:true,srcSet:false,video:false,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:false},solution:{html:true,flash:true},format:{mp3:{codec:'audio/mpeg; codecs="mp3"',flashCanPlay:true,media:"audio"},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:true,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis"',flashCanPlay:false,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:false,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:false,media:"audio"},fla:{codec:"audio/x-flv",flashCanPlay:true,media:"audio"},rtmpa:{codec:'audio/rtmp; codecs="rtmp"',flashCanPlay:true,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:true,media:"video"},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:false,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:false,media:"video"},flv:{codec:"video/x-flv",flashCanPlay:true,media:"video"},rtmpv:{codec:'video/rtmp; codecs="rtmp"',flashCanPlay:true,media:"video"}},_init:function(){var c=this;this.element.empty();this.status=a.extend({},this.status);this.internal=a.extend({},this.internal);this.internal.cmdsIgnored=a.jPlayer.platform.ipad||a.jPlayer.platform.iphone||a.jPlayer.platform.ipod;this.internal.domNode=this.element.get(0);this.formats=[];this.solutions=[];this.require={};this.htmlElement={};this.html={};this.html.audio={};this.html.video={};this.flash={};this.css={};this.css.cs={};this.css.jq={};this.ancestorJq=[];this.options.volume=this._limitValue(this.options.volume,0,1);a.each(this.options.supplied.toLowerCase().split(","),function(b,d){var e=d.replace(/^\s+|\s+$/g,"");if(c.format[e]){var f=false;a.each(c.formats,function(a,b){if(e===b){f=true;return false}});if(!f){c.formats.push(e)}}});a.each(this.options.solution.toLowerCase().split(","),function(b,d){var e=d.replace(/^\s+|\s+$/g,"");if(c.solution[e]){var f=false;a.each(c.solutions,function(a,b){if(e===b){f=true;return false}});if(!f){c.solutions.push(e)}}});this.internal.instance="jp_"+this.count;this.instances[this.internal.instance]=this.element;if(!this.element.attr("id")){this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count)}this.internal.self=a.extend({},{id:this.element.attr("id"),jq:this.element});this.internal.audio=a.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:b});this.internal.video=a.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:b});this.internal.flash=a.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:b,swf:this.options.swfPath+(this.options.swfPath.toLowerCase().slice(-4)!==".swf"?(this.options.swfPath&&this.options.swfPath.slice(-1)!=="/"?"/":"")+"Jplayer.swf":"")});this.internal.poster=a.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:b});a.each(a.jPlayer.event,function(a,d){if(c.options[a]!==b){c.element.bind(d+".jPlayer",c.options[a]);c.options[a]=b}});this.require.audio=false;this.require.video=false;a.each(this.formats,function(a,b){c.require[c.format[b].media]=true});if(this.require.video){this.options=a.extend(true,{},this.optionsVideo,this.options)}else{this.options=a.extend(true,{},this.optionsAudio,this.options)}this._setSize();this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this.status.noFullScreen=this._uaBlocklist(this.options.noFullScreen);this.status.noVolume=this._uaBlocklist(this.options.noVolume);this._restrictNativeVideoControls();this.htmlElement.poster=document.createElement("img");this.htmlElement.poster.id=this.internal.poster.id;this.htmlElement.poster.onload=function(){if(!c.status.video||c.status.waitForPlay){c.internal.poster.jq.show()}};this.element.append(this.htmlElement.poster);this.internal.poster.jq=a("#"+this.internal.poster.id);this.internal.poster.jq.css({width:this.status.width,height:this.status.height});this.internal.poster.jq.hide();this.internal.poster.jq.bind("click.jPlayer",function(){c._trigger(a.jPlayer.event.click)});this.html.audio.available=false;if(this.require.audio){this.htmlElement.audio=document.createElement("audio");this.htmlElement.audio.id=this.internal.audio.id;this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio)}this.html.video.available=false;if(this.require.video){this.htmlElement.video=document.createElement("video");this.htmlElement.video.id=this.internal.video.id;this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video)}this.flash.available=this._checkForFlash(10);this.html.canPlay={};this.flash.canPlay={};a.each(this.formats,function(a,b){c.html.canPlay[b]=c.html[c.format[b].media].available&&""!==c.htmlElement[c.format[b].media].canPlayType(c.format[b].codec);c.flash.canPlay[b]=c.format[b].flashCanPlay&&c.flash.available});this.html.desired=false;this.flash.desired=false;a.each(this.solutions,function(b,d){if(b===0){c[d].desired=true}else{var e=false;var f=false;a.each(c.formats,function(a,b){if(c[c.solutions[0]].canPlay[b]){if(c.format[b].media==="video"){f=true}else{e=true}}});c[d].desired=c.require.audio&&!e||c.require.video&&!f}});this.html.support={};this.flash.support={};a.each(this.formats,function(a,b){c.html.support[b]=c.html.canPlay[b]&&c.html.desired;c.flash.support[b]=c.flash.canPlay[b]&&c.flash.desired});this.html.used=false;this.flash.used=false;a.each(this.solutions,function(b,d){a.each(c.formats,function(a,b){if(c[d].support[b]){c[d].used=true;return false}})});this._resetActive();this._resetGate();this._cssSelectorAncestor(this.options.cssSelectorAncestor);if(!(this.html.used||this.flash.used)){this._error({type:a.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:a.jPlayer.errorMsg.NO_SOLUTION,hint:a.jPlayer.errorHint.NO_SOLUTION});if(this.css.jq.noSolution.length){this.css.jq.noSolution.show()}}else{if(this.css.jq.noSolution.length){this.css.jq.noSolution.hide()}}if(this.flash.used){var d,e="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+"&muted="+this.options.muted;if(a.jPlayer.browser.msie&&(Number(a.jPlayer.browser.version)<9||a.jPlayer.browser.documentMode<9)){var f='<object id="'+this.internal.flash.id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="0" height="0" tabindex="-1"></object>';var g=['<param name="movie" value="'+this.internal.flash.swf+'" />','<param name="FlashVars" value="'+e+'" />','<param name="allowScriptAccess" value="always" />','<param name="bgcolor" value="'+this.options.backgroundColor+'" />','<param name="wmode" value="'+this.options.wmode+'" />'];d=document.createElement(f);for(var h=0;h<g.length;h++){d.appendChild(document.createElement(g[h]))}}else{var i=function(a,b,c){var d=document.createElement("param");d.setAttribute("name",b);d.setAttribute("value",c);a.appendChild(d)};d=document.createElement("object");d.setAttribute("id",this.internal.flash.id);d.setAttribute("data",this.internal.flash.swf);d.setAttribute("type","application/x-shockwave-flash");d.setAttribute("width","1");d.setAttribute("height","1");d.setAttribute("tabindex","-1");i(d,"flashvars",e);i(d,"allowscriptaccess","always");i(d,"bgcolor",this.options.backgroundColor);i(d,"wmode",this.options.wmode)}this.element.append(d);this.internal.flash.jq=a(d)}if(this.html.used){if(this.html.audio.available){this._addHtmlEventListeners(this.htmlElement.audio,this.html.audio);this.element.append(this.htmlElement.audio);this.internal.audio.jq=a("#"+this.internal.audio.id)}if(this.html.video.available){this._addHtmlEventListeners(this.htmlElement.video,this.html.video);this.element.append(this.htmlElement.video);this.internal.video.jq=a("#"+this.internal.video.id);if(this.status.nativeVideoControls){this.internal.video.jq.css({width:this.status.width,height:this.status.height})}else{this.internal.video.jq.css({width:"0px",height:"0px"})}this.internal.video.jq.bind("click.jPlayer",function(){c._trigger(a.jPlayer.event.click)})}}if(this.options.emulateHtml){this._emulateHtmlBridge()}if(this.html.used&&!this.flash.used){setTimeout(function(){c.internal.ready=true;c.version.flash="n/a";c._trigger(a.jPlayer.event.repeat);c._trigger(a.jPlayer.event.ready)},100)}this._updateNativeVideoControls();this._updateInterface();this._updateButtons(false);this._updateAutohide();this._updateVolume(this.options.volume);this._updateMute(this.options.muted);if(this.css.jq.videoPlay.length){this.css.jq.videoPlay.hide()}a.jPlayer.prototype.count++},destroy:function(){this.clearMedia();this._removeUiClass();if(this.css.jq.currentTime.length){this.css.jq.currentTime.text("")}if(this.css.jq.duration.length){this.css.jq.duration.text("")}a.each(this.css.jq,function(a,b){if(b.length){b.unbind(".jPlayer")}});this.internal.poster.jq.unbind(".jPlayer");if(this.internal.video.jq){this.internal.video.jq.unbind(".jPlayer")}if(this.options.emulateHtml){this._destroyHtmlBridge()}this.element.removeData("jPlayer");this.element.unbind(".jPlayer");this.element.empty();delete this.instances[this.internal.instance]},enable:function(){},disable:function(){},_testCanPlayType:function(a){try{a.canPlayType(this.format.mp3.codec);return true}catch(b){return false}},_uaBlocklist:function(b){var c=navigator.userAgent.toLowerCase(),d=false;a.each(b,function(a,b){if(b&&b.test(c)){d=true;return false}});return d},_restrictNativeVideoControls:function(){if(this.require.audio){if(this.status.nativeVideoControls){this.status.nativeVideoControls=false;this.status.noFullScreen=true}}},_updateNativeVideoControls:function(){if(this.html.video.available&&this.html.used){this.htmlElement.video.controls=this.status.nativeVideoControls;this._updateAutohide();if(this.status.nativeVideoControls&&this.require.video){this.internal.poster.jq.hide();this.internal.video.jq.css({width:this.status.width,height:this.status.height})}else if(this.status.waitForPlay&&this.status.video){this.internal.poster.jq.show();this.internal.video.jq.css({width:"0px",height:"0px"})}}},_addHtmlEventListeners:function(b,c){var d=this;b.preload=this.options.preload;b.muted=this.options.muted;b.volume=this.options.volume;b.addEventListener("progress",function(){if(c.gate){if(d.internal.cmdsIgnored&&this.readyState>0){d.internal.cmdsIgnored=false}d._getHtmlStatus(b);d._updateInterface();d._trigger(a.jPlayer.event.progress)}},false);b.addEventListener("timeupdate",function(){if(c.gate){d._getHtmlStatus(b);d._updateInterface();d._trigger(a.jPlayer.event.timeupdate)}},false);b.addEventListener("durationchange",function(){if(c.gate){d._getHtmlStatus(b);d._updateInterface();d._trigger(a.jPlayer.event.durationchange)}},false);b.addEventListener("play",function(){if(c.gate){d._updateButtons(true);d._html_checkWaitForPlay();d._trigger(a.jPlayer.event.play)}},false);b.addEventListener("playing",function(){if(c.gate){d._updateButtons(true);d._seeked();d._trigger(a.jPlayer.event.playing)}},false);b.addEventListener("pause",function(){if(c.gate){d._updateButtons(false);d._trigger(a.jPlayer.event.pause)}},false);b.addEventListener("waiting",function(){if(c.gate){d._seeking();d._trigger(a.jPlayer.event.waiting)}},false);b.addEventListener("seeking",function(){if(c.gate){d._seeking();d._trigger(a.jPlayer.event.seeking)}},false);b.addEventListener("seeked",function(){if(c.gate){d._seeked();d._trigger(a.jPlayer.event.seeked)}},false);b.addEventListener("volumechange",function(){if(c.gate){d.options.volume=b.volume;d.options.muted=b.muted;d._updateMute();d._updateVolume();d._trigger(a.jPlayer.event.volumechange)}},false);b.addEventListener("suspend",function(){if(c.gate){d._seeked();d._trigger(a.jPlayer.event.suspend)}},false);b.addEventListener("ended",function(){if(c.gate){if(!a.jPlayer.browser.webkit){d.htmlElement.media.currentTime=0}d.htmlElement.media.pause();d._updateButtons(false);d._getHtmlStatus(b,true);d._updateInterface();d._trigger(a.jPlayer.event.ended)}},false);b.addEventListener("error",function(){if(c.gate){d._updateButtons(false);d._seeked();if(d.status.srcSet){clearTimeout(d.internal.htmlDlyCmdId);d.status.waitForLoad=true;d.status.waitForPlay=true;if(d.status.video&&!d.status.nativeVideoControls){d.internal.video.jq.css({width:"0px",height:"0px"})}if(d._validString(d.status.media.poster)&&!d.status.nativeVideoControls){d.internal.poster.jq.show()}if(d.css.jq.videoPlay.length){d.css.jq.videoPlay.show()}d._error({type:a.jPlayer.error.URL,context:d.status.src,message:a.jPlayer.errorMsg.URL,hint:a.jPlayer.errorHint.URL})}}},false);a.each(a.jPlayer.htmlEvent,function(e,f){b.addEventListener(this,function(){if(c.gate){d._trigger(a.jPlayer.event[f])}},false)})},_getHtmlStatus:function(a,b){var c=0,d=0,e=0,f=0;if(isFinite(a.duration)){this.status.duration=a.duration}c=a.currentTime;d=this.status.duration>0?100*c/this.status.duration:0;if(typeof a.seekable==="object"&&a.seekable.length>0){e=this.status.duration>0?100*a.seekable.end(a.seekable.length-1)/this.status.duration:100;f=this.status.duration>0?100*a.currentTime/a.seekable.end(a.seekable.length-1):0}else{e=100;f=d}if(b){c=0;f=0;d=0}this.status.seekPercent=e;this.status.currentPercentRelative=f;this.status.currentPercentAbsolute=d;this.status.currentTime=c;this.status.readyState=a.readyState;this.status.networkState=a.networkState;this.status.playbackRate=a.playbackRate;this.status.ended=a.ended},_resetStatus:function(){this.status=a.extend({},this.status,a.jPlayer.prototype.status)},_trigger:function(b,c,d){var e=a.Event(b);e.jPlayer={};e.jPlayer.version=a.extend({},this.version);e.jPlayer.options=a.extend(true,{},this.options);e.jPlayer.status=a.extend(true,{},this.status);e.jPlayer.html=a.extend(true,{},this.html);e.jPlayer.flash=a.extend(true,{},this.flash);if(c){e.jPlayer.error=a.extend({},c)}if(d){e.jPlayer.warning=a.extend({},d)}this.element.trigger(e)},jPlayerFlashEvent:function(b,c){if(b===a.jPlayer.event.ready){if(!this.internal.ready){this.internal.ready=true;this.internal.flash.jq.css({width:"0px",height:"0px"});this.version.flash=c.version;if(this.version.needFlash!==this.version.flash){this._error({type:a.jPlayer.error.VERSION,context:this.version.flash,message:a.jPlayer.errorMsg.VERSION+this.version.flash,hint:a.jPlayer.errorHint.VERSION})}this._trigger(a.jPlayer.event.repeat);this._trigger(b)}else{if(this.flash.gate){if(this.status.srcSet){var d=this.status.currentTime,e=this.status.paused;this.setMedia(this.status.media);if(d>0){if(e){this.pause(d)}else{this.play(d)}}}this._trigger(a.jPlayer.event.flashreset)}}}if(this.flash.gate){switch(b){case a.jPlayer.event.progress:this._getFlashStatus(c);this._updateInterface();this._trigger(b);break;case a.jPlayer.event.timeupdate:this._getFlashStatus(c);this._updateInterface();this._trigger(b);break;case a.jPlayer.event.play:this._seeked();this._updateButtons(true);this._trigger(b);break;case a.jPlayer.event.pause:this._updateButtons(false);this._trigger(b);break;case a.jPlayer.event.ended:this._updateButtons(false);this._trigger(b);break;case a.jPlayer.event.click:this._trigger(b);break;case a.jPlayer.event.error:this.status.waitForLoad=true;this.status.waitForPlay=true;if(this.status.video){this.internal.flash.jq.css({width:"0px",height:"0px"})}if(this._validString(this.status.media.poster)){this.internal.poster.jq.show()}if(this.css.jq.videoPlay.length&&this.status.video){this.css.jq.videoPlay.show()}if(this.status.video){this._flash_setVideo(this.status.media)}else{this._flash_setAudio(this.status.media)}this._updateButtons(false);this._error({type:a.jPlayer.error.URL,context:c.src,message:a.jPlayer.errorMsg.URL,hint:a.jPlayer.errorHint.URL});break;case a.jPlayer.event.seeking:this._seeking();this._trigger(b);break;case a.jPlayer.event.seeked:this._seeked();this._trigger(b);break;case a.jPlayer.event.ready:break;default:this._trigger(b)}}return false},_getFlashStatus:function(a){this.status.seekPercent=a.seekPercent;this.status.currentPercentRelative=a.currentPercentRelative;this.status.currentPercentAbsolute=a.currentPercentAbsolute;this.status.currentTime=a.currentTime;this.status.duration=a.duration;this.status.readyState=4;this.status.networkState=0;this.status.playbackRate=1;this.status.ended=false},_updateButtons:function(a){if(a!==b){this.status.paused=!a;if(this.css.jq.play.length&&this.css.jq.pause.length){if(a){this.css.jq.play.hide();this.css.jq.pause.show()}else{this.css.jq.play.show();this.css.jq.pause.hide()}}}if(this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length){if(this.status.noFullScreen){this.css.jq.fullScreen.hide();this.css.jq.restoreScreen.hide()}else if(this.options.fullScreen){this.css.jq.fullScreen.hide();this.css.jq.restoreScreen.show()}else{this.css.jq.fullScreen.show();this.css.jq.restoreScreen.hide()}}if(this.css.jq.repeat.length&&this.css.jq.repeatOff.length){if(this.options.loop){this.css.jq.repeat.hide();this.css.jq.repeatOff.show()}else{this.css.jq.repeat.show();this.css.jq.repeatOff.hide()}}},_updateInterface:function(){if(this.css.jq.seekBar.length){this.css.jq.seekBar.width(this.status.seekPercent+"%")}if(this.css.jq.playBar.length){this.css.jq.playBar.width(this.status.currentPercentRelative+"%")}if(this.css.jq.currentTime.length){this.css.jq.currentTime.text(a.jPlayer.convertTime(this.status.currentTime))}if(this.css.jq.duration.length){this.css.jq.duration.text(a.jPlayer.convertTime(this.status.duration))}},_seeking:function(){if(this.css.jq.seekBar.length){this.css.jq.seekBar.addClass("jp-seeking-bg")}},_seeked:function(){if(this.css.jq.seekBar.length){this.css.jq.seekBar.removeClass("jp-seeking-bg")}},_resetGate:function(){this.html.audio.gate=false;this.html.video.gate=false;this.flash.gate=false},_resetActive:function(){this.html.active=false;this.flash.active=false},setMedia:function(b){var c=this,d=false,e=this.status.media.poster!==b.poster;this._resetMedia();this._resetGate();this._resetActive();a.each(this.formats,function(e,f){var g=c.format[f].media==="video";a.each(c.solutions,function(a,e){if(c[e].support[f]&&c._validString(b[f])){var h=e==="html";if(g){if(h){c.html.video.gate=true;c._html_setVideo(b);c.html.active=true}else{c.flash.gate=true;c._flash_setVideo(b);c.flash.active=true}if(c.css.jq.videoPlay.length){c.css.jq.videoPlay.show()}c.status.video=true}else{if(h){c.html.audio.gate=true;c._html_setAudio(b);c.html.active=true}else{c.flash.gate=true;c._flash_setAudio(b);c.flash.active=true}if(c.css.jq.videoPlay.length){c.css.jq.videoPlay.hide()}c.status.video=false}d=true;return false}});if(d){return false}});if(d){if(!(this.status.nativeVideoControls&&this.html.video.gate)){if(this._validString(b.poster)){if(e){this.htmlElement.poster.src=b.poster}else{this.internal.poster.jq.show()}}}this.status.srcSet=true;this.status.media=a.extend({},b);this._updateButtons(false);this._updateInterface()}else{this._error({type:a.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:a.jPlayer.errorMsg.NO_SUPPORT,hint:a.jPlayer.errorHint.NO_SUPPORT})}},_resetMedia:function(){this._resetStatus();this._updateButtons(false);this._updateInterface();this._seeked();this.internal.poster.jq.hide();clearTimeout(this.internal.htmlDlyCmdId);if(this.html.active){this._html_resetMedia()}else if(this.flash.active){this._flash_resetMedia()}},clearMedia:function(){this._resetMedia();if(this.html.active){this._html_clearMedia()}else if(this.flash.active){this._flash_clearMedia()}this._resetGate();this._resetActive()},load:function(){if(this.status.srcSet){if(this.html.active){this._html_load()}else if(this.flash.active){this._flash_load()}}else{this._urlNotSetError("load")}},play:function(a){a=typeof a==="number"?a:NaN;if(this.status.srcSet){if(this.html.active){this._html_play(a)}else if(this.flash.active){this._flash_play(a)}}else{this._urlNotSetError("play")}},videoPlay:function(){this.play()},pause:function(a){a=typeof a==="number"?a:NaN;if(this.status.srcSet){if(this.html.active){this._html_pause(a)}else if(this.flash.active){this._flash_pause(a)}}else{this._urlNotSetError("pause")}},pauseOthers:function(){var b=this;a.each(this.instances,function(a,c){if(b.element!==c){if(c.data("jPlayer").status.srcSet){c.jPlayer("pause")}}})},stop:function(){if(this.status.srcSet){if(this.html.active){this._html_pause(0)}else if(this.flash.active){this._flash_pause(0)}}else{this._urlNotSetError("stop")}},playHead:function(a){a=this._limitValue(a,0,100);if(this.status.srcSet){if(this.html.active){this._html_playHead(a)}else if(this.flash.active){this._flash_playHead(a)}}else{this._urlNotSetError("playHead")}},_muted:function(b){this.options.muted=b;if(this.html.used){this._html_mute(b)}if(this.flash.used){this._flash_mute(b)}if(!this.html.video.gate&&!this.html.audio.gate){this._updateMute(b);this._updateVolume(this.options.volume);this._trigger(a.jPlayer.event.volumechange)}},mute:function(a){a=a===b?true:!!a;this._muted(a)},unmute:function(a){a=a===b?true:!!a;this._muted(!a)},_updateMute:function(a){if(a===b){a=this.options.muted}if(this.css.jq.mute.length&&this.css.jq.unmute.length){if(this.status.noVolume){this.css.jq.mute.hide();this.css.jq.unmute.hide()}else if(a){this.css.jq.mute.hide();this.css.jq.unmute.show()}else{this.css.jq.mute.show();this.css.jq.unmute.hide()}}},volume:function(b){b=this._limitValue(b,0,1);this.options.volume=b;if(this.html.used){this._html_volume(b)}if(this.flash.used){this._flash_volume(b)}if(!this.html.video.gate&&!this.html.audio.gate){this._updateVolume(b);this._trigger(a.jPlayer.event.volumechange)}},volumeBar:function(a){if(this.css.jq.volumeBar.length){var b=this.css.jq.volumeBar.offset(),c=a.pageX-b.left,d=this.css.jq.volumeBar.width(),e=this.css.jq.volumeBar.height()-a.pageY+b.top,f=this.css.jq.volumeBar.height();if(this.options.verticalVolume){this.volume(e/f)}else{this.volume(c/d)}}if(this.options.muted){this._muted(false)}},volumeBarValue:function(a){this.volumeBar(a)},_updateVolume:function(a){if(a===b){a=this.options.volume}a=this.options.muted?0:a;if(this.status.noVolume){if(this.css.jq.volumeBar.length){this.css.jq.volumeBar.hide()}if(this.css.jq.volumeBarValue.length){this.css.jq.volumeBarValue.hide()}if(this.css.jq.volumeMax.length){this.css.jq.volumeMax.hide()}}else{if(this.css.jq.volumeBar.length){this.css.jq.volumeBar.show()}if(this.css.jq.volumeBarValue.length){this.css.jq.volumeBarValue.show();this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](a*100+"%")}if(this.css.jq.volumeMax.length){this.css.jq.volumeMax.show()}}},volumeMax:function(){this.volume(1);if(this.options.muted){this._muted(false)}},_cssSelectorAncestor:function(b){var c=this;this.options.cssSelectorAncestor=b;this._removeUiClass();this.ancestorJq=b?a(b):[];if(b&&this.ancestorJq.length!==1){this._warning({type:a.jPlayer.warning.CSS_SELECTOR_COUNT,context:b,message:a.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:a.jPlayer.warningHint.CSS_SELECTOR_COUNT})}this._addUiClass();a.each(this.options.cssSelector,function(a,b){c._cssSelector(a,b)})},_cssSelector:function(b,c){var d=this;if(typeof c==="string"){if(a.jPlayer.prototype.options.cssSelector[b]){if(this.css.jq[b]&&this.css.jq[b].length){this.css.jq[b].unbind(".jPlayer")}this.options.cssSelector[b]=c;this.css.cs[b]=this.options.cssSelectorAncestor+" "+c;if(c){this.css.jq[b]=a(this.css.cs[b])}else{this.css.jq[b]=[]}if(this.css.jq[b].length){var e=function(c){d[b](c);a(this).blur();return false};this.css.jq[b].bind("click.jPlayer",e)}if(c&&this.css.jq[b].length!==1){this._warning({type:a.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[b],message:a.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[b].length+" found for "+b+" method.",hint:a.jPlayer.warningHint.CSS_SELECTOR_COUNT})}}else{this._warning({type:a.jPlayer.warning.CSS_SELECTOR_METHOD,context:b,message:a.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:a.jPlayer.warningHint.CSS_SELECTOR_METHOD})}}else{this._warning({type:a.jPlayer.warning.CSS_SELECTOR_STRING,context:c,message:a.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:a.jPlayer.warningHint.CSS_SELECTOR_STRING})}},seekBar:function(a){if(this.css.jq.seekBar){var b=this.css.jq.seekBar.offset();var c=a.pageX-b.left;var d=this.css.jq.seekBar.width();var e=100*c/d;this.playHead(e)}},playBar:function(a){this.seekBar(a)},repeat:function(){this._loop(true)},repeatOff:function(){this._loop(false)},_loop:function(b){if(this.options.loop!==b){this.options.loop=b;this._updateButtons();this._trigger(a.jPlayer.event.repeat)}},currentTime:function(){},duration:function(){},gui:function(){},noSolution:function(){},option:function(c,d){var e=c;if(arguments.length===0){return a.extend(true,{},this.options)}if(typeof c==="string"){var f=c.split(".");if(d===b){var g=a.extend(true,{},this.options);for(var h=0;h<f.length;h++){if(g[f[h]]!==b){g=g[f[h]]}else{this._warning({type:a.jPlayer.warning.OPTION_KEY,context:c,message:a.jPlayer.warningMsg.OPTION_KEY,hint:a.jPlayer.warningHint.OPTION_KEY});return b}}return g}e={};var i=e;for(var j=0;j<f.length;j++){if(j<f.length-1){i[f[j]]={};i=i[f[j]]}else{i[f[j]]=d}}}this._setOptions(e);return this},_setOptions:function(b){var c=this;a.each(b,function(a,b){c._setOption(a,b)});return this},_setOption:function(b,c){var d=this;switch(b){case"volume":this.volume(c);break;case"muted":this._muted(c);break;case"cssSelectorAncestor":this._cssSelectorAncestor(c);break;case"cssSelector":a.each(c,function(a,b){d._cssSelector(a,b)});break;case"fullScreen":if(this.options[b]!==c){this._removeUiClass();this.options[b]=c;this._refreshSize()}break;case"size":if(!this.options.fullScreen&&this.options[b].cssClass!==c.cssClass){this._removeUiClass()}this.options[b]=a.extend({},this.options[b],c);this._refreshSize();break;case"sizeFull":if(this.options.fullScreen&&this.options[b].cssClass!==c.cssClass){this._removeUiClass()}this.options[b]=a.extend({},this.options[b],c);this._refreshSize();break;case"autohide":this.options[b]=a.extend({},this.options[b],c);this._updateAutohide();break;case"loop":this._loop(c);break;case"nativeVideoControls":this.options[b]=a.extend({},this.options[b],c);this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this._restrictNativeVideoControls();this._updateNativeVideoControls();break;case"noFullScreen":this.options[b]=a.extend({},this.options[b],c);this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this.status.noFullScreen=this._uaBlocklist(this.options.noFullScreen);this._restrictNativeVideoControls();this._updateButtons();break;case"noVolume":this.options[b]=a.extend({},this.options[b],c);this.status.noVolume=this._uaBlocklist(this.options.noVolume);this._updateVolume();this._updateMute();break;case"emulateHtml":if(this.options[b]!==c){this.options[b]=c;if(c){this._emulateHtmlBridge()}else{this._destroyHtmlBridge()}}break}return this},_refreshSize:function(){this._setSize();this._addUiClass();this._updateSize();this._updateButtons();this._updateAutohide();this._trigger(a.jPlayer.event.resize)},_setSize:function(){if(this.options.fullScreen){this.status.width=this.options.sizeFull.width;this.status.height=this.options.sizeFull.height;this.status.cssClass=this.options.sizeFull.cssClass}else{this.status.width=this.options.size.width;this.status.height=this.options.size.height;this.status.cssClass=this.options.size.cssClass}this.element.css({width:this.status.width,height:this.status.height})},_addUiClass:function(){if(this.ancestorJq.length){this.ancestorJq.addClass(this.status.cssClass)}},_removeUiClass:function(){if(this.ancestorJq.length){this.ancestorJq.removeClass(this.status.cssClass)}},_updateSize:function(){this.internal.poster.jq.css({width:this.status.width,height:this.status.height});if(!this.status.waitForPlay&&this.html.active&&this.status.video||this.html.video.available&&this.html.used&&this.status.nativeVideoControls){this.internal.video.jq.css({width:this.status.width,height:this.status.height})}else if(!this.status.waitForPlay&&this.flash.active&&this.status.video){this.internal.flash.jq.css({width:this.status.width,height:this.status.height})}},_updateAutohide:function(){var a=this,b="mousemove.jPlayer",c=".jPlayerAutohide",d=b+c,e=function(){a.css.jq.gui.fadeIn(a.options.autohide.fadeIn,function(){clearTimeout(a.internal.autohideId);a.internal.autohideId=setTimeout(function(){a.css.jq.gui.fadeOut(a.options.autohide.fadeOut)},a.options.autohide.hold)})};if(this.css.jq.gui.length){this.css.jq.gui.stop(true,true);clearTimeout(this.internal.autohideId);this.element.unbind(c);this.css.jq.gui.unbind(c);if(!this.status.nativeVideoControls){if(this.options.fullScreen&&this.options.autohide.full||!this.options.fullScreen&&this.options.autohide.restored){this.element.bind(d,e);this.css.jq.gui.bind(d,e);this.css.jq.gui.hide()}else{this.css.jq.gui.show()}}else{this.css.jq.gui.hide()}}},fullScreen:function(){this._setOption("fullScreen",true);a("body").addClass("noScroll")},restoreScreen:function(){this._setOption("fullScreen",false);a("body").removeClass("noScroll")},_html_initMedia:function(){this.htmlElement.media.src=this.status.src;if(this.options.preload!=="none"){this._html_load()}this._trigger(a.jPlayer.event.timeupdate)},_html_setAudio:function(b){var c=this;a.each(this.formats,function(a,d){if(c.html.support[d]&&b[d]){c.status.src=b[d];c.status.format[d]=true;c.status.formatType=d;return false}});this.htmlElement.media=this.htmlElement.audio;this._html_initMedia()},_html_setVideo:function(b){var c=this;a.each(this.formats,function(a,d){if(c.html.support[d]&&b[d]){c.status.src=b[d];c.status.format[d]=true;c.status.formatType=d;return false}});if(this.status.nativeVideoControls){this.htmlElement.video.poster=this._validString(b.poster)?b.poster:""}this.htmlElement.media=this.htmlElement.video;this._html_initMedia()},_html_resetMedia:function(){if(this.htmlElement.media){if(this.htmlElement.media.id===this.internal.video.id&&!this.status.nativeVideoControls){this.internal.video.jq.css({width:"0px",height:"0px"})}this.htmlElement.media.pause()}},_html_clearMedia:function(){if(this.htmlElement.media){this.htmlElement.media.src="about:blank";this.htmlElement.media.load()}},_html_load:function(){if(this.status.waitForLoad){this.status.waitForLoad=false;this.htmlElement.media.load()}clearTimeout(this.internal.htmlDlyCmdId)},_html_play:function(a){var b=this,c=this.htmlElement.media;this._html_load();if(!isNaN(a)){if(this.internal.cmdsIgnored){c.play()}try{if(!c.seekable||typeof c.seekable==="object"&&c.seekable.length>0){c.currentTime=a;c.play()}else{throw 1}}catch(d){this.internal.htmlDlyCmdId=setTimeout(function(){b.play(a)},250);return}}else{c.play()}this._html_checkWaitForPlay()},_html_pause:function(a){var b=this,c=this.htmlElement.media;if(a>0){this._html_load()}else{clearTimeout(this.internal.htmlDlyCmdId)}c.pause();if(!isNaN(a)){try{if(!c.seekable||typeof c.seekable==="object"&&c.seekable.length>0){c.currentTime=a}else{throw 1}}catch(d){this.internal.htmlDlyCmdId=setTimeout(function(){b.pause(a)},250);return}}if(a>0){this._html_checkWaitForPlay()}},_html_playHead:function(a){var b=this,c=this.htmlElement.media;this._html_load();try{if(typeof c.seekable==="object"&&c.seekable.length>0){c.currentTime=a*c.seekable.end(c.seekable.length-1)/100}else if(c.duration>0&&!isNaN(c.duration)){c.currentTime=a*c.duration/100}else{throw"e"}}catch(d){this.internal.htmlDlyCmdId=setTimeout(function(){b.playHead(a)},250);return}if(!this.status.waitForLoad){this._html_checkWaitForPlay()}},_html_checkWaitForPlay:function(){if(this.status.waitForPlay){this.status.waitForPlay=false;if(this.css.jq.videoPlay.length){this.css.jq.videoPlay.hide()}if(this.status.video){this.internal.poster.jq.hide();this.internal.video.jq.css({width:this.status.width,height:this.status.height})}}},_html_volume:function(a){if(this.html.audio.available){this.htmlElement.audio.volume=a}if(this.html.video.available){this.htmlElement.video.volume=a}},_html_mute:function(a){if(this.html.audio.available){this.htmlElement.audio.muted=a}if(this.html.video.available){this.htmlElement.video.muted=a}},_flash_setAudio:function(b){var c=this;try{a.each(this.formats,function(a,d){if(c.flash.support[d]&&b[d]){switch(d){case"m4a":case"fla":c._getMovie().fl_setAudio_m4a(b[d]);break;case"mp3":c._getMovie().fl_setAudio_mp3(b[d]);break;case"rtmpa":c._getMovie().fl_setAudio_rtmp(b[d]);break}c.status.src=b[d];c.status.format[d]=true;c.status.formatType=d;return false}});if(this.options.preload==="auto"){this._flash_load();this.status.waitForLoad=false}}catch(d){this._flashError(d)}},_flash_setVideo:function(b){var c=this;try{a.each(this.formats,function(a,d){if(c.flash.support[d]&&b[d]){switch(d){case"m4v":case"flv":c._getMovie().fl_setVideo_m4v(b[d]);break;case"rtmpv":c._getMovie().fl_setVideo_rtmp(b[d]);break}c.status.src=b[d];c.status.format[d]=true;c.status.formatType=d;return false}});if(this.options.preload==="auto"){this._flash_load();this.status.waitForLoad=false}}catch(d){this._flashError(d)}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"});this._flash_pause(NaN)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(a){this._flashError(a)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(a){this._flashError(a)}this.status.waitForLoad=false},_flash_play:function(a){try{this._getMovie().fl_play(a)}catch(b){this._flashError(b)}this.status.waitForLoad=false;this._flash_checkWaitForPlay()},_flash_pause:function(a){try{this._getMovie().fl_pause(a)}catch(b){this._flashError(b)}if(a>0){this.status.waitForLoad=false;this._flash_checkWaitForPlay()}},_flash_playHead:function(a){try{this._getMovie().fl_play_head(a)}catch(b){this._flashError(b)}if(!this.status.waitForLoad){this._flash_checkWaitForPlay()}},_flash_checkWaitForPlay:function(){if(this.status.waitForPlay){this.status.waitForPlay=false;if(this.css.jq.videoPlay.length){this.css.jq.videoPlay.hide()}if(this.status.video){this.internal.poster.jq.hide();this.internal.flash.jq.css({width:this.status.width,height:this.status.height})}}},_flash_volume:function(a){try{this._getMovie().fl_volume(a)}catch(b){this._flashError(b)}},_flash_mute:function(a){try{this._getMovie().fl_mute(a)}catch(b){this._flashError(b)}},_getMovie:function(){return document[this.internal.flash.id]},_checkForFlash:function(a){var b=false;var c;if(window.ActiveXObject){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a);b=true}catch(d){}}else if(navigator.plugins&&navigator.mimeTypes.length>0){c=navigator.plugins["Shockwave Flash"];if(c){var e=navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1");if(e>=a){b=true}}}return b},_validString:function(a){return a&&typeof a==="string"},_limitValue:function(a,b,c){return a<b?b:a>c?c:a},_urlNotSetError:function(b){this._error({type:a.jPlayer.error.URL_NOT_SET,context:b,message:a.jPlayer.errorMsg.URL_NOT_SET,hint:a.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(b){var c;if(!this.internal.ready){c="FLASH"}else{c="FLASH_DISABLED"}this._error({type:a.jPlayer.error[c],context:this.internal.flash.swf,message:a.jPlayer.errorMsg[c]+b.message,hint:a.jPlayer.errorHint[c]});this.internal.flash.jq.css({width:"1px",height:"1px"})},_error:function(b){this._trigger(a.jPlayer.event.error,b);if(this.options.errorAlerts){this._alert("Error!"+(b.message?"\n\n"+b.message:"")+(b.hint?"\n\n"+b.hint:"")+"\n\nContext: "+b.context)}},_warning:function(c){this._trigger(a.jPlayer.event.warning,b,c);if(this.options.warningAlerts){this._alert("Warning!"+(c.message?"\n\n"+c.message:"")+(c.hint?"\n\n"+c.hint:"")+"\n\nContext: "+c.context)}},_alert:function(a){alert("jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+a)},_emulateHtmlBridge:function(){var b=this;a.each(a.jPlayer.emulateMethods.split(/\s+/g),function(a,c){b.internal.domNode[c]=function(a){b[c](a)}});a.each(a.jPlayer.event,function(c,d){var e=true;a.each(a.jPlayer.reservedEvent.split(/\s+/g),function(a,b){if(b===c){e=false;return false}});if(e){b.element.bind(d+".jPlayer.jPlayerHtml",function(){b._emulateHtmlUpdate();var a=document.createEvent("Event");a.initEvent(c,false,true);b.internal.domNode.dispatchEvent(a)})}})},_emulateHtmlUpdate:function(){var b=this;a.each(a.jPlayer.emulateStatus.split(/\s+/g),function(a,c){b.internal.domNode[c]=b.status[c]});a.each(a.jPlayer.emulateOptions.split(/\s+/g),function(a,c){b.internal.domNode[c]=b.options[c]})},_destroyHtmlBridge:function(){var b=this;this.element.unbind(".jPlayerHtml");var c=a.jPlayer.emulateMethods+" "+a.jPlayer.emulateStatus+" "+a.jPlayer.emulateOptions;a.each(c.split(/\s+/g),function(a,c){delete b.internal.domNode[c]})}};a.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"};a.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+a.jPlayer.prototype.version.script+" needs Jplayer.swf version "+a.jPlayer.prototype.version.needFlash+" but found "};a.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."};a.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"};a.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",OPTION_KEY:"The option requested in jPlayer('option') is undefined."};a.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}})
+(function(a,b){if(typeof define==="function"&&define.amd){define(["jquery"],b)}else{b(a.jQuery)}})(this,function(a,b){a.fn.jPlayer=function(c){var d="jPlayer";var e=typeof c==="string",f=Array.prototype.slice.call(arguments,1),g=this;c=!e&&f.length?a.extend.apply(null,[true,c].concat(f)):c;if(e&&c.charAt(0)==="_"){return g}if(e){this.each(function(){var e=a.data(this,d),h=e&&a.isFunction(e[c])?e[c].apply(e,f):e;if(h!==e&&h!==b){g=h;return false}})}else{this.each(function(){var b=a.data(this,d);if(b){b.option(c||{})}else{a.data(this,d,new a.jPlayer(c,this))}})}return g};a.jPlayer=function(b,c){if(arguments.length){this.element=a(c);this.options=a.extend(true,{},this.options,b);var d=this;this.element.bind("remove.jPlayer",function(){d.destroy()});this._init()}};a.jPlayer.emulateMethods="load play pause";a.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate";a.jPlayer.emulateOptions="muted volume";a.jPlayer.reservedEvent="ready flashreset resize repeat error warning";a.jPlayer.event={};a.each(["ready","flashreset","resize","repeat","click","error","warning","loadstart","progress","suspend","abort","emptied","stalled","play","pause","loadedmetadata","loadeddata","waiting","playing","canplay","canplaythrough","seeking","seeked","timeupdate","ended","ratechange","durationchange","volumechange"],function(){a.jPlayer.event[this]="jPlayer_"+this});a.jPlayer.htmlEvent=["loadstart","abort","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","ratechange"];a.jPlayer.pause=function(){a.each(a.jPlayer.prototype.instances,function(a,b){if(b.data("jPlayer").status.srcSet){b.jPlayer("pause")}})};a.jPlayer.timeFormat={showHour:false,showMin:true,showSec:true,padHour:false,padMin:true,padSec:true,sepHour:":",sepMin:":",sepSec:""};a.jPlayer.convertTime=function(b){b=b&&typeof b==="number"?b:0;var c=new Date(b*1e3),d=c.getUTCHours(),e=a.jPlayer.timeFormat.showHour?c.getUTCMinutes():c.getUTCMinutes()+d*60,f=a.jPlayer.timeFormat.showMin?c.getUTCSeconds():c.getUTCSeconds()+e*60,g=a.jPlayer.timeFormat.padHour&&d<10?"0"+d:d,h=a.jPlayer.timeFormat.padMin&&e<10?"0"+e:e,i=a.jPlayer.timeFormat.padSec&&f<10?"0"+f:f,j="";j+=a.jPlayer.timeFormat.showHour?g+a.jPlayer.timeFormat.sepHour:"";j+=a.jPlayer.timeFormat.showMin?h+a.jPlayer.timeFormat.sepMin:"";j+=a.jPlayer.timeFormat.showSec?i+a.jPlayer.timeFormat.sepSec:"";return j};a.jPlayer.uaBrowser=function(a){var b=a.toLowerCase();var c=/(webkit)[ \/]([\w.]+)/;var d=/(opera)(?:.*version)?[ \/]([\w.]+)/;var e=/(msie) ([\w.]+)/;var f=/(mozilla)(?:.*? rv:([\w.]+))?/;var g=c.exec(b)||d.exec(b)||e.exec(b)||b.indexOf("compatible")<0&&f.exec(b)||[];return{browser:g[1]||"",version:g[2]||"0"}};a.jPlayer.uaPlatform=function(a){var b=a.toLowerCase();var c=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/;var d=/(ipad|playbook)/;var e=/(android)/;var f=/(mobile)/;var g=c.exec(b)||[];var h=d.exec(b)||!f.exec(b)&&e.exec(b)||[];if(g[1]){g[1]=g[1].replace(/\s/g,"_")}return{platform:g[1]||"",tablet:h[1]||""}};a.jPlayer.browser={};a.jPlayer.platform={};var c=a.jPlayer.uaBrowser(navigator.userAgent);if(c.browser){a.jPlayer.browser[c.browser]=true;a.jPlayer.browser.version=c.version}var d=a.jPlayer.uaPlatform(navigator.userAgent);if(d.platform){a.jPlayer.platform[d.platform]=true;a.jPlayer.platform.mobile=!d.tablet;a.jPlayer.platform.tablet=!!d.tablet}a.jPlayer.getDocMode=function(){var b;if(a.jPlayer.browser.msie){if(document.documentMode){b=document.documentMode}else{b=5;if(document.compatMode){if(document.compatMode==="CSS1Compat"){b=7}}}}return b};a.jPlayer.browser.documentMode=a.jPlayer.getDocMode();a.jPlayer.prototype={count:0,version:{script:"2.2.8",needFlash:"2.2.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",preload:"metadata",volume:.8,muted:false,wmode:"opaque",backgroundColor:"#000000",cssSelectorAncestor:"#jp_container_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",currentTime:".jp-current-time",duration:".jp-duration",fullScreen:".jp-full-screen",restoreScreen:".jp-restore-screen",repeat:".jp-repeat",repeatOff:".jp-repeat-off",gui:".jp-gui",noSolution:".jp-no-solution"},fullScreen:false,autohide:{restored:false,full:true,fadeIn:200,fadeOut:600,hold:1e3},loop:false,repeat:function(b){if(b.jPlayer.options.loop){a(this).unbind(".jPlayerRepeat").bind(a.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){a(this).jPlayer("play")})}else{a(this).unbind(".jPlayerRepeat")}},nativeVideoControls:{},noFullScreen:{msie:/msie [0-6]/,ipad:/ipad.*?os [0-4]/,iphone:/iphone/,ipod:/ipod/,android_pad:/android [0-3](?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,webos:/webos/},noVolume:{ipad:/ipad/,iphone:/iphone/,ipod:/ipod/,android_pad:/android(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,webos:/webos/,playbook:/playbook/},verticalVolume:false,idPrefix:"jp",noConflict:"jQuery",emulateHtml:false,errorAlerts:false,warningAlerts:false},optionsAudio:{size:{width:"0px",height:"0px",cssClass:""},sizeFull:{width:"0px",height:"0px",cssClass:""}},optionsVideo:{size:{width:"480px",height:"270px",cssClass:"jp-video-270p"},sizeFull:{width:"100%",height:"100%",cssClass:"jp-video-full"}},instances:{},status:{src:"",media:{},paused:true,format:{},formatType:"",waitForPlay:true,waitForLoad:true,srcSet:false,video:false,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:false},solution:{html:true,flash:true},format:{mp3:{codec:'audio/mpeg; codecs="mp3"',flashCanPlay:true,media:"audio"},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:true,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis"',flashCanPlay:false,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:false,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:false,media:"audio"},fla:{codec:"audio/x-flv",flashCanPlay:true,media:"audio"},rtmpa:{codec:'audio/rtmp; codecs="rtmp"',flashCanPlay:true,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:true,media:"video"},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:false,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:false,media:"video"},flv:{codec:"video/x-flv",flashCanPlay:true,media:"video"},rtmpv:{codec:'video/rtmp; codecs="rtmp"',flashCanPlay:true,media:"video"}},_init:function(){var c=this;this.element.empty();this.status=a.extend({},this.status);this.internal=a.extend({},this.internal);this.internal.cmdsIgnored=a.jPlayer.platform.ipad||a.jPlayer.platform.iphone||a.jPlayer.platform.ipod;this.internal.domNode=this.element.get(0);this.formats=[];this.solutions=[];this.require={};this.htmlElement={};this.html={};this.html.audio={};this.html.video={};this.flash={};this.css={};this.css.cs={};this.css.jq={};this.ancestorJq=[];this.options.volume=this._limitValue(this.options.volume,0,1);a.each(this.options.supplied.toLowerCase().split(","),function(b,d){var e=d.replace(/^\s+|\s+$/g,"");if(c.format[e]){var f=false;a.each(c.formats,function(a,b){if(e===b){f=true;return false}});if(!f){c.formats.push(e)}}});a.each(this.options.solution.toLowerCase().split(","),function(b,d){var e=d.replace(/^\s+|\s+$/g,"");if(c.solution[e]){var f=false;a.each(c.solutions,function(a,b){if(e===b){f=true;return false}});if(!f){c.solutions.push(e)}}});this.internal.instance="jp_"+this.count;this.instances[this.internal.instance]=this.element;if(!this.element.attr("id")){this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count)}this.internal.self=a.extend({},{id:this.element.attr("id"),jq:this.element});this.internal.audio=a.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:b});this.internal.video=a.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:b});this.internal.flash=a.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:b,swf:this.options.swfPath+(this.options.swfPath.toLowerCase().slice(-4)!==".swf"?(this.options.swfPath&&this.options.swfPath.slice(-1)!=="/"?"/":"")+"Jplayer.swf":"")});this.internal.poster=a.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:b});a.each(a.jPlayer.event,function(a,d){if(c.options[a]!==b){c.element.bind(d+".jPlayer",c.options[a]);c.options[a]=b}});this.require.audio=false;this.require.video=false;a.each(this.formats,function(a,b){c.require[c.format[b].media]=true});if(this.require.video){this.options=a.extend(true,{},this.optionsVideo,this.options)}else{this.options=a.extend(true,{},this.optionsAudio,this.options)}this._setSize();this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this.status.noFullScreen=this._uaBlocklist(this.options.noFullScreen);this.status.noVolume=this._uaBlocklist(this.options.noVolume);this._restrictNativeVideoControls();this.htmlElement.poster=document.createElement("img");this.htmlElement.poster.id=this.internal.poster.id;this.htmlElement.poster.onload=function(){if(!c.status.video||c.status.waitForPlay){c.internal.poster.jq.show()}};this.element.append(this.htmlElement.poster);this.internal.poster.jq=a("#"+this.internal.poster.id);this.internal.poster.jq.css({width:this.status.width,height:this.status.height});this.internal.poster.jq.hide();this.internal.poster.jq.bind("click.jPlayer",function(){c._trigger(a.jPlayer.event.click)});this.html.audio.available=false;if(this.require.audio){this.htmlElement.audio=document.createElement("audio");this.htmlElement.audio.id=this.internal.audio.id;this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio)}this.html.video.available=false;if(this.require.video){this.htmlElement.video=document.createElement("video");this.htmlElement.video.id=this.internal.video.id;this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video)}this.flash.available=this._checkForFlash(10);this.html.canPlay={};this.flash.canPlay={};a.each(this.formats,function(a,b){c.html.canPlay[b]=c.html[c.format[b].media].available&&""!==c.htmlElement[c.format[b].media].canPlayType(c.format[b].codec);c.flash.canPlay[b]=c.format[b].flashCanPlay&&c.flash.available});this.html.desired=false;this.flash.desired=false;a.each(this.solutions,function(b,d){if(b===0){c[d].desired=true}else{var e=false;var f=false;a.each(c.formats,function(a,b){if(c[c.solutions[0]].canPlay[b]){if(c.format[b].media==="video"){f=true}else{e=true}}});c[d].desired=c.require.audio&&!e||c.require.video&&!f}});this.html.support={};this.flash.support={};a.each(this.formats,function(a,b){c.html.support[b]=c.html.canPlay[b]&&c.html.desired;c.flash.support[b]=c.flash.canPlay[b]&&c.flash.desired});this.html.used=false;this.flash.used=false;a.each(this.solutions,function(b,d){a.each(c.formats,function(a,b){if(c[d].support[b]){c[d].used=true;return false}})});this._resetActive();this._resetGate();this._cssSelectorAncestor(this.options.cssSelectorAncestor);if(!(this.html.used||this.flash.used)){this._error({type:a.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:a.jPlayer.errorMsg.NO_SOLUTION,hint:a.jPlayer.errorHint.NO_SOLUTION});if(this.css.jq.noSolution.length){this.css.jq.noSolution.show()}}else{if(this.css.jq.noSolution.length){this.css.jq.noSolution.hide()}}if(this.flash.used){var d,e="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+"&muted="+this.options.muted;if(a.jPlayer.browser.msie&&(Number(a.jPlayer.browser.version)<9||a.jPlayer.browser.documentMode<9)){var f='<object id="'+this.internal.flash.id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="0" height="0" tabindex="-1"></object>';var g=['<param name="movie" value="'+this.internal.flash.swf+'" />','<param name="FlashVars" value="'+e+'" />','<param name="allowScriptAccess" value="always" />','<param name="bgcolor" value="'+this.options.backgroundColor+'" />','<param name="wmode" value="'+this.options.wmode+'" />'];d=document.createElement(f);for(var h=0;h<g.length;h++){d.appendChild(document.createElement(g[h]))}}else{var i=function(a,b,c){var d=document.createElement("param");d.setAttribute("name",b);d.setAttribute("value",c);a.appendChild(d)};d=document.createElement("object");d.setAttribute("id",this.internal.flash.id);d.setAttribute("data",this.internal.flash.swf);d.setAttribute("type","application/x-shockwave-flash");d.setAttribute("width","1");d.setAttribute("height","1");d.setAttribute("tabindex","-1");i(d,"flashvars",e);i(d,"allowscriptaccess","always");i(d,"bgcolor",this.options.backgroundColor);i(d,"wmode",this.options.wmode)}this.element.append(d);this.internal.flash.jq=a(d)}if(this.html.used){if(this.html.audio.available){this._addHtmlEventListeners(this.htmlElement.audio,this.html.audio);this.element.append(this.htmlElement.audio);this.internal.audio.jq=a("#"+this.internal.audio.id)}if(this.html.video.available){this._addHtmlEventListeners(this.htmlElement.video,this.html.video);this.element.append(this.htmlElement.video);this.internal.video.jq=a("#"+this.internal.video.id);if(this.status.nativeVideoControls){this.internal.video.jq.css({width:this.status.width,height:this.status.height})}else{this.internal.video.jq.css({width:"0px",height:"0px"})}this.internal.video.jq.bind("click.jPlayer",function(){c._trigger(a.jPlayer.event.click)})}}if(this.options.emulateHtml){this._emulateHtmlBridge()}if(this.html.used&&!this.flash.used){setTimeout(function(){c.internal.ready=true;c.version.flash="n/a";c._trigger(a.jPlayer.event.repeat);c._trigger(a.jPlayer.event.ready)},100)}this._updateNativeVideoControls();this._updateInterface();this._updateButtons(false);this._updateAutohide();this._updateVolume(this.options.volume);this._updateMute(this.options.muted);if(this.css.jq.videoPlay.length){this.css.jq.videoPlay.hide()}a.jPlayer.prototype.count++},destroy:function(){this.clearMedia();this._removeUiClass();if(this.css.jq.currentTime.length){this.css.jq.currentTime.text("")}if(this.css.jq.duration.length){this.css.jq.duration.text("")}a.each(this.css.jq,function(a,b){if(b.length){b.unbind(".jPlayer")}});this.internal.poster.jq.unbind(".jPlayer");if(this.internal.video.jq){this.internal.video.jq.unbind(".jPlayer")}if(this.options.emulateHtml){this._destroyHtmlBridge()}this.element.removeData("jPlayer");this.element.unbind(".jPlayer");this.element.empty();delete this.instances[this.internal.instance]},enable:function(){},disable:function(){},_testCanPlayType:function(a){try{a.canPlayType(this.format.mp3.codec);return true}catch(b){return false}},_uaBlocklist:function(b){var c=navigator.userAgent.toLowerCase(),d=false;a.each(b,function(a,b){if(b&&b.test(c)){d=true;return false}});return d},_restrictNativeVideoControls:function(){if(this.require.audio){if(this.status.nativeVideoControls){this.status.nativeVideoControls=false;this.status.noFullScreen=true}}},_updateNativeVideoControls:function(){if(this.html.video.available&&this.html.used){this.htmlElement.video.controls=this.status.nativeVideoControls;this._updateAutohide();if(this.status.nativeVideoControls&&this.require.video){this.internal.poster.jq.hide();this.internal.video.jq.css({width:this.status.width,height:this.status.height})}else if(this.status.waitForPlay&&this.status.video){this.internal.poster.jq.show();this.internal.video.jq.css({width:"0px",height:"0px"})}}},_addHtmlEventListeners:function(b,c){var d=this;b.preload=this.options.preload;b.muted=this.options.muted;b.volume=this.options.volume;b.addEventListener("progress",function(){if(c.gate){if(d.internal.cmdsIgnored&&this.readyState>0){d.internal.cmdsIgnored=false}d._getHtmlStatus(b);d._updateInterface();d._trigger(a.jPlayer.event.progress)}},false);b.addEventListener("timeupdate",function(){if(c.gate){d._getHtmlStatus(b);d._updateInterface();d._trigger(a.jPlayer.event.timeupdate)}},false);b.addEventListener("durationchange",function(){if(c.gate){d._getHtmlStatus(b);d._updateInterface();d._trigger(a.jPlayer.event.durationchange)}},false);b.addEventListener("play",function(){if(c.gate){d._updateButtons(true);d._html_checkWaitForPlay();d._trigger(a.jPlayer.event.play)}},false);b.addEventListener("playing",function(){if(c.gate){d._updateButtons(true);d._seeked();d._trigger(a.jPlayer.event.playing)}},false);b.addEventListener("pause",function(){if(c.gate){d._updateButtons(false);d._trigger(a.jPlayer.event.pause)}},false);b.addEventListener("waiting",function(){if(c.gate){d._seeking();d._trigger(a.jPlayer.event.waiting)}},false);b.addEventListener("seeking",function(){if(c.gate){d._seeking();d._trigger(a.jPlayer.event.seeking)}},false);b.addEventListener("seeked",function(){if(c.gate){d._seeked();d._trigger(a.jPlayer.event.seeked)}},false);b.addEventListener("volumechange",function(){if(c.gate){d.options.volume=b.volume;d.options.muted=b.muted;d._updateMute();d._updateVolume();d._trigger(a.jPlayer.event.volumechange)}},false);b.addEventListener("suspend",function(){if(c.gate){d._seeked();d._trigger(a.jPlayer.event.suspend)}},false);b.addEventListener("ended",function(){if(c.gate){if(!a.jPlayer.browser.webkit){d.htmlElement.media.currentTime=0}d.htmlElement.media.pause();d._updateButtons(false);d._getHtmlStatus(b,true);d._updateInterface();d._trigger(a.jPlayer.event.ended)}},false);b.addEventListener("error",function(){if(c.gate){d._updateButtons(false);d._seeked();if(d.status.srcSet){clearTimeout(d.internal.htmlDlyCmdId);d.status.waitForLoad=true;d.status.waitForPlay=true;if(d.status.video&&!d.status.nativeVideoControls){d.internal.video.jq.css({width:"0px",height:"0px"})}if(d._validString(d.status.media.poster)&&!d.status.nativeVideoControls){d.internal.poster.jq.show()}if(d.css.jq.videoPlay.length){d.css.jq.videoPlay.show()}d._error({type:a.jPlayer.error.URL,context:d.status.src,message:a.jPlayer.errorMsg.URL,hint:a.jPlayer.errorHint.URL})}}},false);a.each(a.jPlayer.htmlEvent,function(e,f){b.addEventListener(this,function(){if(c.gate){d._trigger(a.jPlayer.event[f])}},false)})},_getHtmlStatus:function(a,b){var c=0,d=0,e=0,f=0;if(isFinite(a.duration)){this.status.duration=a.duration}c=a.currentTime;d=this.status.duration>0?100*c/this.status.duration:0;if(typeof a.seekable==="object"&&a.seekable.length>0){e=this.status.duration>0?100*a.seekable.end(a.seekable.length-1)/this.status.duration:100;f=this.status.duration>0?100*a.currentTime/a.seekable.end(a.seekable.length-1):0}else{e=100;f=d}if(b){c=0;f=0;d=0}this.status.seekPercent=e;this.status.currentPercentRelative=f;this.status.currentPercentAbsolute=d;this.status.currentTime=c;this.status.readyState=a.readyState;this.status.networkState=a.networkState;this.status.playbackRate=a.playbackRate;this.status.ended=a.ended},_resetStatus:function(){this.status=a.extend({},this.status,a.jPlayer.prototype.status)},_trigger:function(b,c,d){var e=a.Event(b);e.jPlayer={};e.jPlayer.version=a.extend({},this.version);e.jPlayer.options=a.extend(true,{},this.options);e.jPlayer.status=a.extend(true,{},this.status);e.jPlayer.html=a.extend(true,{},this.html);e.jPlayer.flash=a.extend(true,{},this.flash);if(c){e.jPlayer.error=a.extend({},c)}if(d){e.jPlayer.warning=a.extend({},d)}this.element.trigger(e)},jPlayerFlashEvent:function(b,c){if(b===a.jPlayer.event.ready){if(!this.internal.ready){this.internal.ready=true;this.internal.flash.jq.css({width:"0px",height:"0px"});this.version.flash=c.version;if(this.version.needFlash!==this.version.flash){this._error({type:a.jPlayer.error.VERSION,context:this.version.flash,message:a.jPlayer.errorMsg.VERSION+this.version.flash,hint:a.jPlayer.errorHint.VERSION})}this._trigger(a.jPlayer.event.repeat);this._trigger(b)}else{if(this.flash.gate){if(this.status.srcSet){var d=this.status.currentTime,e=this.status.paused;this.setMedia(this.status.media);if(d>0){if(e){this.pause(d)}else{this.play(d)}}}this._trigger(a.jPlayer.event.flashreset)}}}if(this.flash.gate){switch(b){case a.jPlayer.event.progress:this._getFlashStatus(c);this._updateInterface();this._trigger(b);break;case a.jPlayer.event.timeupdate:this._getFlashStatus(c);this._updateInterface();this._trigger(b);break;case a.jPlayer.event.play:this._seeked();this._updateButtons(true);this._trigger(b);break;case a.jPlayer.event.pause:this._updateButtons(false);this._trigger(b);break;case a.jPlayer.event.ended:this._updateButtons(false);this._trigger(b);break;case a.jPlayer.event.click:this._trigger(b);break;case a.jPlayer.event.error:this.status.waitForLoad=true;this.status.waitForPlay=true;if(this.status.video){this.internal.flash.jq.css({width:"0px",height:"0px"})}if(this._validString(this.status.media.poster)){this.internal.poster.jq.show()}if(this.css.jq.videoPlay.length&&this.status.video){this.css.jq.videoPlay.show()}if(this.status.video){this._flash_setVideo(this.status.media)}else{this._flash_setAudio(this.status.media)}this._updateButtons(false);this._error({type:a.jPlayer.error.URL,context:c.src,message:a.jPlayer.errorMsg.URL,hint:a.jPlayer.errorHint.URL});break;case a.jPlayer.event.seeking:this._seeking();this._trigger(b);break;case a.jPlayer.event.seeked:this._seeked();this._trigger(b);break;case a.jPlayer.event.ready:break;default:this._trigger(b)}}return false},_getFlashStatus:function(a){this.status.seekPercent=a.seekPercent;this.status.currentPercentRelative=a.currentPercentRelative;this.status.currentPercentAbsolute=a.currentPercentAbsolute;this.status.currentTime=a.currentTime;this.status.duration=a.duration;this.status.readyState=4;this.status.networkState=0;this.status.playbackRate=1;this.status.ended=false},_updateButtons:function(a){if(a!==b){this.status.paused=!a;if(this.css.jq.play.length&&this.css.jq.pause.length){if(a){this.css.jq.play.hide();this.css.jq.pause.show()}else{this.css.jq.play.show();this.css.jq.pause.hide()}}}if(this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length){if(this.status.noFullScreen){this.css.jq.fullScreen.hide();this.css.jq.restoreScreen.hide()}else if(this.options.fullScreen){this.css.jq.fullScreen.hide();this.css.jq.restoreScreen.show()}else{this.css.jq.fullScreen.show();this.css.jq.restoreScreen.hide()}}if(this.css.jq.repeat.length&&this.css.jq.repeatOff.length){if(this.options.loop){this.css.jq.repeat.hide();this.css.jq.repeatOff.show()}else{this.css.jq.repeat.show();this.css.jq.repeatOff.hide()}}},_updateInterface:function(){if(this.css.jq.seekBar.length){this.css.jq.seekBar.width(this.status.seekPercent+"%")}if(this.css.jq.playBar.length){this.css.jq.playBar.width(this.status.currentPercentRelative+"%")}if(this.css.jq.currentTime.length){this.css.jq.currentTime.text(a.jPlayer.convertTime(this.status.currentTime))}if(this.css.jq.duration.length){this.css.jq.duration.text(a.jPlayer.convertTime(this.status.duration))}},_seeking:function(){if(this.css.jq.seekBar.length){this.css.jq.seekBar.addClass("jp-seeking-bg")}},_seeked:function(){if(this.css.jq.seekBar.length){this.css.jq.seekBar.removeClass("jp-seeking-bg")}},_resetGate:function(){this.html.audio.gate=false;this.html.video.gate=false;this.flash.gate=false},_resetActive:function(){this.html.active=false;this.flash.active=false},setMedia:function(b){var c=this,d=false,e=this.status.media.poster!==b.poster;this._resetMedia();this._resetGate();this._resetActive();a.each(this.formats,function(e,f){var g=c.format[f].media==="video";a.each(c.solutions,function(a,e){if(c[e].support[f]&&c._validString(b[f])){var h=e==="html";if(g){if(h){c.html.video.gate=true;c._html_setVideo(b);c.html.active=true}else{c.flash.gate=true;c._flash_setVideo(b);c.flash.active=true}if(c.css.jq.videoPlay.length){c.css.jq.videoPlay.show()}c.status.video=true}else{if(h){c.html.audio.gate=true;c._html_setAudio(b);c.html.active=true}else{c.flash.gate=true;c._flash_setAudio(b);c.flash.active=true}if(c.css.jq.videoPlay.length){c.css.jq.videoPlay.hide()}c.status.video=false}d=true;return false}});if(d){return false}});if(d){if(!(this.status.nativeVideoControls&&this.html.video.gate)){if(this._validString(b.poster)){if(e){this.htmlElement.poster.src=b.poster}else{this.internal.poster.jq.show()}}}this.status.srcSet=true;this.status.media=a.extend({},b);this._updateButtons(false);this._updateInterface()}else{this._error({type:a.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:a.jPlayer.errorMsg.NO_SUPPORT,hint:a.jPlayer.errorHint.NO_SUPPORT})}},_resetMedia:function(){this._resetStatus();this._updateButtons(false);this._updateInterface();this._seeked();this.internal.poster.jq.hide();clearTimeout(this.internal.htmlDlyCmdId);if(this.html.active){this._html_resetMedia()}else if(this.flash.active){this._flash_resetMedia()}},clearMedia:function(){this._resetMedia();if(this.html.active){this._html_clearMedia()}else if(this.flash.active){this._flash_clearMedia()}this._resetGate();this._resetActive()},load:function(){if(this.status.srcSet){if(this.html.active){this._html_load()}else if(this.flash.active){this._flash_load()}}else{this._urlNotSetError("load")}},play:function(a){a=typeof a==="number"?a:NaN;if(this.status.srcSet){if(this.html.active){this._html_play(a)}else if(this.flash.active){this._flash_play(a)}}else{this._urlNotSetError("play")}},videoPlay:function(){this.play()},pause:function(a){a=typeof a==="number"?a:NaN;if(this.status.srcSet){if(this.html.active){this._html_pause(a)}else if(this.flash.active){this._flash_pause(a)}}else{this._urlNotSetError("pause")}},pauseOthers:function(){var b=this;a.each(this.instances,function(a,c){if(b.element!==c){if(c.data("jPlayer").status.srcSet){c.jPlayer("pause")}}})},stop:function(){if(this.status.srcSet){if(this.html.active){this._html_pause(0)}else if(this.flash.active){this._flash_pause(0)}}else{this._urlNotSetError("stop")}},playHead:function(a){a=this._limitValue(a,0,100);if(this.status.srcSet){if(this.html.active){this._html_playHead(a)}else if(this.flash.active){this._flash_playHead(a)}}else{this._urlNotSetError("playHead")}},_muted:function(b){this.options.muted=b;if(this.html.used){this._html_mute(b)}if(this.flash.used){this._flash_mute(b)}if(!this.html.video.gate&&!this.html.audio.gate){this._updateMute(b);this._updateVolume(this.options.volume);this._trigger(a.jPlayer.event.volumechange)}},mute:function(a){a=a===b?true:!!a;this._muted(a)},unmute:function(a){a=a===b?true:!!a;this._muted(!a)},_updateMute:function(a){if(a===b){a=this.options.muted}if(this.css.jq.mute.length&&this.css.jq.unmute.length){if(this.status.noVolume){this.css.jq.mute.hide();this.css.jq.unmute.hide()}else if(a){this.css.jq.mute.hide();this.css.jq.unmute.show()}else{this.css.jq.mute.show();this.css.jq.unmute.hide()}}},volume:function(b){b=this._limitValue(b,0,1);this.options.volume=b;if(this.html.used){this._html_volume(b)}if(this.flash.used){this._flash_volume(b)}if(!this.html.video.gate&&!this.html.audio.gate){this._updateVolume(b);this._trigger(a.jPlayer.event.volumechange)}},volumeBar:function(a){if(this.css.jq.volumeBar.length){var b=this.css.jq.volumeBar.offset(),c=a.pageX-b.left,d=this.css.jq.volumeBar.width(),e=this.css.jq.volumeBar.height()-a.pageY+b.top,f=this.css.jq.volumeBar.height();if(this.options.verticalVolume){this.volume(e/f)}else{this.volume(c/d)}}if(this.options.muted){this._muted(false)}},volumeBarValue:function(a){this.volumeBar(a)},_updateVolume:function(a){if(a===b){a=this.options.volume}a=this.options.muted?0:a;if(this.status.noVolume){if(this.css.jq.volumeBar.length){this.css.jq.volumeBar.hide()}if(this.css.jq.volumeBarValue.length){this.css.jq.volumeBarValue.hide()}if(this.css.jq.volumeMax.length){this.css.jq.volumeMax.hide()}}else{if(this.css.jq.volumeBar.length){this.css.jq.volumeBar.show()}if(this.css.jq.volumeBarValue.length){this.css.jq.volumeBarValue.show();this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](a*100+"%")}if(this.css.jq.volumeMax.length){this.css.jq.volumeMax.show()}}},volumeMax:function(){this.volume(1);if(this.options.muted){this._muted(false)}},_cssSelectorAncestor:function(b){var c=this;this.options.cssSelectorAncestor=b;this._removeUiClass();this.ancestorJq=b?a(b):[];if(b&&this.ancestorJq.length!==1){this._warning({type:a.jPlayer.warning.CSS_SELECTOR_COUNT,context:b,message:a.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:a.jPlayer.warningHint.CSS_SELECTOR_COUNT})}this._addUiClass();a.each(this.options.cssSelector,function(a,b){c._cssSelector(a,b)})},_cssSelector:function(b,c){var d=this;if(typeof c==="string"){if(a.jPlayer.prototype.options.cssSelector[b]){if(this.css.jq[b]&&this.css.jq[b].length){this.css.jq[b].unbind(".jPlayer")}this.options.cssSelector[b]=c;this.css.cs[b]=this.options.cssSelectorAncestor+" "+c;if(c){this.css.jq[b]=a(this.css.cs[b])}else{this.css.jq[b]=[]}if(this.css.jq[b].length){var e=function(c){d[b](c);a(this).blur();return false};this.css.jq[b].bind("click.jPlayer",e)}if(c&&this.css.jq[b].length!==1){this._warning({type:a.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[b],message:a.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[b].length+" found for "+b+" method.",hint:a.jPlayer.warningHint.CSS_SELECTOR_COUNT})}}else{this._warning({type:a.jPlayer.warning.CSS_SELECTOR_METHOD,context:b,message:a.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:a.jPlayer.warningHint.CSS_SELECTOR_METHOD})}}else{this._warning({type:a.jPlayer.warning.CSS_SELECTOR_STRING,context:c,message:a.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:a.jPlayer.warningHint.CSS_SELECTOR_STRING})}},seekBar:function(a){if(this.css.jq.seekBar){var b=this.css.jq.seekBar.offset();var c=a.pageX-b.left;var d=this.css.jq.seekBar.width();var e=100*c/d;this.playHead(e)}},playBar:function(a){this.seekBar(a)},repeat:function(){this._loop(true)},repeatOff:function(){this._loop(false)},_loop:function(b){if(this.options.loop!==b){this.options.loop=b;this._updateButtons();this._trigger(a.jPlayer.event.repeat)}},currentTime:function(){},duration:function(){},gui:function(){},noSolution:function(){},option:function(c,d){var e=c;if(arguments.length===0){return a.extend(true,{},this.options)}if(typeof c==="string"){var f=c.split(".");if(d===b){var g=a.extend(true,{},this.options);for(var h=0;h<f.length;h++){if(g[f[h]]!==b){g=g[f[h]]}else{this._warning({type:a.jPlayer.warning.OPTION_KEY,context:c,message:a.jPlayer.warningMsg.OPTION_KEY,hint:a.jPlayer.warningHint.OPTION_KEY});return b}}return g}e={};var i=e;for(var j=0;j<f.length;j++){if(j<f.length-1){i[f[j]]={};i=i[f[j]]}else{i[f[j]]=d}}}this._setOptions(e);return this},_setOptions:function(b){var c=this;a.each(b,function(a,b){c._setOption(a,b)});return this},_setOption:function(b,c){var d=this;switch(b){case"volume":this.volume(c);break;case"muted":this._muted(c);break;case"cssSelectorAncestor":this._cssSelectorAncestor(c);break;case"cssSelector":a.each(c,function(a,b){d._cssSelector(a,b)});break;case"fullScreen":if(this.options[b]!==c){this._removeUiClass();this.options[b]=c;this._refreshSize()}break;case"size":if(!this.options.fullScreen&&this.options[b].cssClass!==c.cssClass){this._removeUiClass()}this.options[b]=a.extend({},this.options[b],c);this._refreshSize();break;case"sizeFull":if(this.options.fullScreen&&this.options[b].cssClass!==c.cssClass){this._removeUiClass()}this.options[b]=a.extend({},this.options[b],c);this._refreshSize();break;case"autohide":this.options[b]=a.extend({},this.options[b],c);this._updateAutohide();break;case"loop":this._loop(c);break;case"nativeVideoControls":this.options[b]=a.extend({},this.options[b],c);this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this._restrictNativeVideoControls();this._updateNativeVideoControls();break;case"noFullScreen":this.options[b]=a.extend({},this.options[b],c);this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this.status.noFullScreen=this._uaBlocklist(this.options.noFullScreen);this._restrictNativeVideoControls();this._updateButtons();break;case"noVolume":this.options[b]=a.extend({},this.options[b],c);this.status.noVolume=this._uaBlocklist(this.options.noVolume);this._updateVolume();this._updateMute();break;case"emulateHtml":if(this.options[b]!==c){this.options[b]=c;if(c){this._emulateHtmlBridge()}else{this._destroyHtmlBridge()}}break}return this},_refreshSize:function(){this._setSize();this._addUiClass();this._updateSize();this._updateButtons();this._updateAutohide();this._trigger(a.jPlayer.event.resize)},_setSize:function(){if(this.options.fullScreen){this.status.width=this.options.sizeFull.width;this.status.height=this.options.sizeFull.height;this.status.cssClass=this.options.sizeFull.cssClass}else{this.status.width=this.options.size.width;this.status.height=this.options.size.height;this.status.cssClass=this.options.size.cssClass}this.element.css({width:this.status.width,height:this.status.height})},_addUiClass:function(){if(this.ancestorJq.length){this.ancestorJq.addClass(this.status.cssClass)}},_removeUiClass:function(){if(this.ancestorJq.length){this.ancestorJq.removeClass(this.status.cssClass)}},_updateSize:function(){this.internal.poster.jq.css({width:this.status.width,height:this.status.height});if(!this.status.waitForPlay&&this.html.active&&this.status.video||this.html.video.available&&this.html.used&&this.status.nativeVideoControls){this.internal.video.jq.css({width:this.status.width,height:this.status.height})}else if(!this.status.waitForPlay&&this.flash.active&&this.status.video){this.internal.flash.jq.css({width:this.status.width,height:this.status.height})}},_updateAutohide:function(){var a=this,b="mousemove.jPlayer",c=".jPlayerAutohide",d=b+c,e=function(){a.css.jq.gui.fadeIn(a.options.autohide.fadeIn,function(){clearTimeout(a.internal.autohideId);a.internal.autohideId=setTimeout(function(){a.css.jq.gui.fadeOut(a.options.autohide.fadeOut)},a.options.autohide.hold)})};if(this.css.jq.gui.length){this.css.jq.gui.stop(true,true);clearTimeout(this.internal.autohideId);this.element.unbind(c);this.css.jq.gui.unbind(c);if(!this.status.nativeVideoControls){if(this.options.fullScreen&&this.options.autohide.full||!this.options.fullScreen&&this.options.autohide.restored){this.element.bind(d,e);this.css.jq.gui.bind(d,e);this.css.jq.gui.hide()}else{this.css.jq.gui.show()}}else{this.css.jq.gui.hide()}}},fullScreen:function(){this._setOption("fullScreen",true)},restoreScreen:function(){this._setOption("fullScreen",false)},_html_initMedia:function(){this.htmlElement.media.src=this.status.src;if(this.options.preload!=="none"){this._html_load()}this._trigger(a.jPlayer.event.timeupdate)},_html_setAudio:function(b){var c=this;a.each(this.formats,function(a,d){if(c.html.support[d]&&b[d]){c.status.src=b[d];c.status.format[d]=true;c.status.formatType=d;return false}});this.htmlElement.media=this.htmlElement.audio;this._html_initMedia()},_html_setVideo:function(b){var c=this;a.each(this.formats,function(a,d){if(c.html.support[d]&&b[d]){c.status.src=b[d];c.status.format[d]=true;c.status.formatType=d;return false}});if(this.status.nativeVideoControls){this.htmlElement.video.poster=this._validString(b.poster)?b.poster:""}this.htmlElement.media=this.htmlElement.video;this._html_initMedia()},_html_resetMedia:function(){if(this.htmlElement.media){if(this.htmlElement.media.id===this.internal.video.id&&!this.status.nativeVideoControls){this.internal.video.jq.css({width:"0px",height:"0px"})}this.htmlElement.media.pause()}},_html_clearMedia:function(){if(this.htmlElement.media){this.htmlElement.media.src="about:blank";this.htmlElement.media.load()}},_html_load:function(){if(this.status.waitForLoad){this.status.waitForLoad=false;this.htmlElement.media.load()}clearTimeout(this.internal.htmlDlyCmdId)},_html_play:function(a){var b=this,c=this.htmlElement.media;this._html_load();if(!isNaN(a)){if(this.internal.cmdsIgnored){c.play()}try{if(!c.seekable||typeof c.seekable==="object"&&c.seekable.length>0){c.currentTime=a;c.play()}else{throw 1}}catch(d){this.internal.htmlDlyCmdId=setTimeout(function(){b.play(a)},250);return}}else{c.play()}this._html_checkWaitForPlay()},_html_pause:function(a){var b=this,c=this.htmlElement.media;if(a>0){this._html_load()}else{clearTimeout(this.internal.htmlDlyCmdId)}c.pause();if(!isNaN(a)){try{if(!c.seekable||typeof c.seekable==="object"&&c.seekable.length>0){c.currentTime=a}else{throw 1}}catch(d){this.internal.htmlDlyCmdId=setTimeout(function(){b.pause(a)},250);return}}if(a>0){this._html_checkWaitForPlay()}},_html_playHead:function(a){var b=this,c=this.htmlElement.media;this._html_load();try{if(typeof c.seekable==="object"&&c.seekable.length>0){c.currentTime=a*c.seekable.end(c.seekable.length-1)/100}else if(c.duration>0&&!isNaN(c.duration)){c.currentTime=a*c.duration/100}else{throw"e"}}catch(d){this.internal.htmlDlyCmdId=setTimeout(function(){b.playHead(a)},250);return}if(!this.status.waitForLoad){this._html_checkWaitForPlay()}},_html_checkWaitForPlay:function(){if(this.status.waitForPlay){this.status.waitForPlay=false;if(this.css.jq.videoPlay.length){this.css.jq.videoPlay.hide()}if(this.status.video){this.internal.poster.jq.hide();this.internal.video.jq.css({width:this.status.width,height:this.status.height})}}},_html_volume:function(a){if(this.html.audio.available){this.htmlElement.audio.volume=a}if(this.html.video.available){this.htmlElement.video.volume=a}},_html_mute:function(a){if(this.html.audio.available){this.htmlElement.audio.muted=a}if(this.html.video.available){this.htmlElement.video.muted=a}},_flash_setAudio:function(b){var c=this;try{a.each(this.formats,function(a,d){if(c.flash.support[d]&&b[d]){switch(d){case"m4a":case"fla":c._getMovie().fl_setAudio_m4a(b[d]);break;case"mp3":c._getMovie().fl_setAudio_mp3(b[d]);break;case"rtmpa":c._getMovie().fl_setAudio_rtmp(b[d]);break}c.status.src=b[d];c.status.format[d]=true;c.status.formatType=d;return false}});if(this.options.preload==="auto"){this._flash_load();this.status.waitForLoad=false}}catch(d){this._flashError(d)}},_flash_setVideo:function(b){var c=this;try{a.each(this.formats,function(a,d){if(c.flash.support[d]&&b[d]){switch(d){case"m4v":case"flv":c._getMovie().fl_setVideo_m4v(b[d]);break;case"rtmpv":c._getMovie().fl_setVideo_rtmp(b[d]);break}c.status.src=b[d];c.status.format[d]=true;c.status.formatType=d;return false}});if(this.options.preload==="auto"){this._flash_load();this.status.waitForLoad=false}}catch(d){this._flashError(d)}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"});this._flash_pause(NaN)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(a){this._flashError(a)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(a){this._flashError(a)}this.status.waitForLoad=false},_flash_play:function(a){try{this._getMovie().fl_play(a)}catch(b){this._flashError(b)}this.status.waitForLoad=false;this._flash_checkWaitForPlay()},_flash_pause:function(a){try{this._getMovie().fl_pause(a)}catch(b){this._flashError(b)}if(a>0){this.status.waitForLoad=false;this._flash_checkWaitForPlay()}},_flash_playHead:function(a){try{this._getMovie().fl_play_head(a)}catch(b){this._flashError(b)}if(!this.status.waitForLoad){this._flash_checkWaitForPlay()}},_flash_checkWaitForPlay:function(){if(this.status.waitForPlay){this.status.waitForPlay=false;if(this.css.jq.videoPlay.length){this.css.jq.videoPlay.hide()}if(this.status.video){this.internal.poster.jq.hide();this.internal.flash.jq.css({width:this.status.width,height:this.status.height})}}},_flash_volume:function(a){try{this._getMovie().fl_volume(a)}catch(b){this._flashError(b)}},_flash_mute:function(a){try{this._getMovie().fl_mute(a)}catch(b){this._flashError(b)}},_getMovie:function(){return document[this.internal.flash.id]},_checkForFlash:function(a){var b=false;var c;if(window.ActiveXObject){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a);b=true}catch(d){}}else if(navigator.plugins&&navigator.mimeTypes.length>0){c=navigator.plugins["Shockwave Flash"];if(c){var e=navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1");if(e>=a){b=true}}}return b},_validString:function(a){return a&&typeof a==="string"},_limitValue:function(a,b,c){return a<b?b:a>c?c:a},_urlNotSetError:function(b){this._error({type:a.jPlayer.error.URL_NOT_SET,context:b,message:a.jPlayer.errorMsg.URL_NOT_SET,hint:a.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(b){var c;if(!this.internal.ready){c="FLASH"}else{c="FLASH_DISABLED"}this._error({type:a.jPlayer.error[c],context:this.internal.flash.swf,message:a.jPlayer.errorMsg[c]+b.message,hint:a.jPlayer.errorHint[c]});this.internal.flash.jq.css({width:"1px",height:"1px"})},_error:function(b){this._trigger(a.jPlayer.event.error,b);if(this.options.errorAlerts){this._alert("Error!"+(b.message?"\n\n"+b.message:"")+(b.hint?"\n\n"+b.hint:"")+"\n\nContext: "+b.context)}},_warning:function(c){this._trigger(a.jPlayer.event.warning,b,c);if(this.options.warningAlerts){this._alert("Warning!"+(c.message?"\n\n"+c.message:"")+(c.hint?"\n\n"+c.hint:"")+"\n\nContext: "+c.context)}},_alert:function(a){alert("jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+a)},_emulateHtmlBridge:function(){var b=this;a.each(a.jPlayer.emulateMethods.split(/\s+/g),function(a,c){b.internal.domNode[c]=function(a){b[c](a)}});a.each(a.jPlayer.event,function(c,d){var e=true;a.each(a.jPlayer.reservedEvent.split(/\s+/g),function(a,b){if(b===c){e=false;return false}});if(e){b.element.bind(d+".jPlayer.jPlayerHtml",function(){b._emulateHtmlUpdate();var a=document.createEvent("Event");a.initEvent(c,false,true);b.internal.domNode.dispatchEvent(a)})}})},_emulateHtmlUpdate:function(){var b=this;a.each(a.jPlayer.emulateStatus.split(/\s+/g),function(a,c){b.internal.domNode[c]=b.status[c]});a.each(a.jPlayer.emulateOptions.split(/\s+/g),function(a,c){b.internal.domNode[c]=b.options[c]})},_destroyHtmlBridge:function(){var b=this;this.element.unbind(".jPlayerHtml");var c=a.jPlayer.emulateMethods+" "+a.jPlayer.emulateStatus+" "+a.jPlayer.emulateOptions;a.each(c.split(/\s+/g),function(a,c){delete b.internal.domNode[c]})}};a.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"};a.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+a.jPlayer.prototype.version.script+" needs Jplayer.swf version "+a.jPlayer.prototype.version.needFlash+" but found "};a.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."};a.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"};a.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",OPTION_KEY:"The option requested in jPlayer('option') is undefined."};a.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}})
View
13 skin/midnight.black/jplayer.midnight.black.css
@@ -9,9 +9,10 @@
* - http://www.opensource.org/licenses/mit-license.php
* - http://www.gnu.org/copyleft/gpl.html
*
- * Authors: Per Sandström and Kasim Ahmic
- * Skin Version: 2.5 (jPlayer 2.2.8)
- * Date: October 26th 2012
+ * Authors: Per Sandström (Updated to support jPlayer 2.1.0 and on by Kasim Ahmic)
+ * Maintainer: Kasim Ahmic (TheInfection)
+ * Skin Version: 2.5 (jPlayer 2.1.x, 2.2.x)
+ * Date: October 31st 2012
*/
*:focus, *:active {
@@ -23,7 +24,7 @@
}
div.jp-jplayer {
- background-color: #000000;
+ background-color: #000;
margin: auto auto;
}
@@ -454,7 +455,7 @@ div.jp-title {
div.jp-title,
div.jp-playlist {
width:100%;
- background: url(jplayer.midnight.black.playlist_bg.png);
+ background: url(jplayer.midnight.black.playlist.png);
border:0;
text-align: left !important;
}
@@ -478,7 +479,7 @@ div.jp-title li {
div.jp-playlist li {
padding:5px 15px 5px 15px;
border-bottom: 1px solid #121212;
- background: url(jplayer.midnight.black.playlist_bg.png);
+ background: url(jplayer.midnight.black.playlist.png);
text-shadow: 0 1px 0px rgba(0,0,0,0.3);
}
View
BIN  skin/midnight.black/jplayer.midnight.black.playlist.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/midnight.black/jplayer.midnight.black.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit daccf40

Please sign in to comment.
Something went wrong with that request. Please try again.