| Current Path : /home/lejardintz/www/media/foundry/3.1/scripts/ |
| Current File : /home/lejardintz/www/media/foundry/3.1/scripts/jplayer.min.js |
!function(){var moduleFactory=function($){var module=this,jQuery=$,exports=function(){!function($,undefined){$.fn.jPlayer=function(options){var name="jPlayer",isMethodCall="string"==typeof options,args=Array.prototype.slice.call(arguments,1),returnValue=this;return options=!isMethodCall&&args.length?$.extend.apply(null,[!0,options].concat(args)):options,isMethodCall&&"_"===options.charAt(0)?returnValue:(isMethodCall?this.each(function(){var instance=$.data(this,name),methodValue=instance&&$.isFunction(instance[options])?instance[options].apply(instance,args):instance;
return methodValue!==instance&&methodValue!==undefined?(returnValue=methodValue,!1):void 0}):this.each(function(){var instance=$.data(this,name);instance?instance.option(options||{}):$.data(this,name,new $.jPlayer(options,this))}),returnValue)},$.jPlayer=function(options,element){if(arguments.length){this.element=$(element),this.options=$.extend(!0,{},this.options,options);var self=this;this.element.bind("remove.jPlayer",function(){self.destroy()}),this._init()}},$.jPlayer.emulateMethods="load play pause",$.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate",$.jPlayer.emulateOptions="muted volume",$.jPlayer.reservedEvent="ready flashreset resize repeat error warning",$.jPlayer.event={ready:"jPlayer_ready",flashreset:"jPlayer_flashreset",resize:"jPlayer_resize",repeat:"jPlayer_repeat",click:"jPlayer_click",error:"jPlayer_error",warning:"jPlayer_warning",loadstart:"jPlayer_loadstart",progress:"jPlayer_progress",suspend:"jPlayer_suspend",abort:"jPlayer_abort",emptied:"jPlayer_emptied",stalled:"jPlayer_stalled",play:"jPlayer_play",pause:"jPlayer_pause",loadedmetadata:"jPlayer_loadedmetadata",loadeddata:"jPlayer_loadeddata",waiting:"jPlayer_waiting",playing:"jPlayer_playing",canplay:"jPlayer_canplay",canplaythrough:"jPlayer_canplaythrough",seeking:"jPlayer_seeking",seeked:"jPlayer_seeked",timeupdate:"jPlayer_timeupdate",ended:"jPlayer_ended",ratechange:"jPlayer_ratechange",durationchange:"jPlayer_durationchange",volumechange:"jPlayer_volumechange"},$.jPlayer.htmlEvent=["loadstart","abort","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","ratechange"],$.jPlayer.pause=function(){$.each($.jPlayer.prototype.instances,function(i,element){element.data("jPlayer").status.srcSet&&element.jPlayer("pause")
})},$.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,sepHour:":",sepMin:":",sepSec:""},$.jPlayer.convertTime=function(s){var myTime=new Date(1e3*s),hour=myTime.getUTCHours(),min=myTime.getUTCMinutes(),sec=myTime.getUTCSeconds(),strHour=$.jPlayer.timeFormat.padHour&&10>hour?"0"+hour:hour,strMin=$.jPlayer.timeFormat.padMin&&10>min?"0"+min:min,strSec=$.jPlayer.timeFormat.padSec&&10>sec?"0"+sec:sec;return($.jPlayer.timeFormat.showHour?strHour+$.jPlayer.timeFormat.sepHour:"")+($.jPlayer.timeFormat.showMin?strMin+$.jPlayer.timeFormat.sepMin:"")+($.jPlayer.timeFormat.showSec?strSec+$.jPlayer.timeFormat.sepSec:"")
},$.jPlayer.uaBrowser=function(userAgent){var ua=userAgent.toLowerCase(),rwebkit=/(webkit)[ \/]([\w.]+)/,ropera=/(opera)(?:.*version)?[ \/]([\w.]+)/,rmsie=/(msie) ([\w.]+)/,rmozilla=/(mozilla)(?:.*? rv:([\w.]+))?/,match=rwebkit.exec(ua)||ropera.exec(ua)||rmsie.exec(ua)||ua.indexOf("compatible")<0&&rmozilla.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"}},$.jPlayer.uaPlatform=function(userAgent){var ua=userAgent.toLowerCase(),rplatform=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/,rtablet=/(ipad|playbook)/,randroid=/(android)/,rmobile=/(mobile)/,platform=rplatform.exec(ua)||[],tablet=rtablet.exec(ua)||!rmobile.exec(ua)&&randroid.exec(ua)||[];
return platform[1]&&(platform[1]=platform[1].replace(/\s/g,"_")),{platform:platform[1]||"",tablet:tablet[1]||""}},$.jPlayer.browser={},$.jPlayer.platform={};var browserMatch=$.jPlayer.uaBrowser(navigator.userAgent);browserMatch.browser&&($.jPlayer.browser[browserMatch.browser]=!0,$.jPlayer.browser.version=browserMatch.version);var platformMatch=$.jPlayer.uaPlatform(navigator.userAgent);platformMatch.platform&&($.jPlayer.platform[platformMatch.platform]=!0,$.jPlayer.platform.mobile=!platformMatch.tablet,$.jPlayer.platform.tablet=!!platformMatch.tablet),$.jPlayer.prototype={count:0,version:{script:"2.1.0",needFlash:"2.1.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",preload:"metadata",volume:.8,muted:!1,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:!1,autohide:{restored:!1,full:!0,fadeIn:200,fadeOut:600,hold:1e3},loop:!1,repeat:function(event){event.jPlayer.options.loop?$(this).unbind(".jPlayerRepeat").bind($.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){$(this).jPlayer("play")
}):$(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:!1,idPrefix:"jp",noConflict:"jQuery",emulateHtml:!1,errorAlerts:!1,warningAlerts:!1},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:!0,format:{},formatType:"",waitForPlay:!0,waitForLoad:!0,srcSet:!1,video:!1,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:!1},solution:{html:!0,flash:!0},format:{mp3:{codec:'audio/mpeg; codecs="mp3"',flashCanPlay:!0,media:"audio"},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:!0,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis"',flashCanPlay:!1,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:!1,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:!1,media:"audio"},fla:{codec:"audio/x-flv",flashCanPlay:!0,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!0,media:"video"},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:!1,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:!1,media:"video"},flv:{codec:"video/x-flv",flashCanPlay:!0,media:"video"}},_init:function(){var self=this;
if(this.element.empty(),this.status=$.extend({},this.status),this.internal=$.extend({},this.internal),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),$.each(this.options.supplied.toLowerCase().split(","),function(index1,value1){var format=value1.replace(/^\s+|\s+$/g,"");
if(self.format[format]){var dupFound=!1;$.each(self.formats,function(index2,value2){return format===value2?(dupFound=!0,!1):void 0}),dupFound||self.formats.push(format)}}),$.each(this.options.solution.toLowerCase().split(","),function(index1,value1){var solution=value1.replace(/^\s+|\s+$/g,"");if(self.solution[solution]){var dupFound=!1;$.each(self.solutions,function(index2,value2){return solution===value2?(dupFound=!0,!1):void 0}),dupFound||self.solutions.push(solution)}}),this.internal.instance="jp_"+this.count,this.instances[this.internal.instance]=this.element,this.element.attr("id")||this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count),this.internal.self=$.extend({},{id:this.element.attr("id"),jq:this.element}),this.internal.audio=$.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:undefined}),this.internal.video=$.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:undefined}),this.internal.flash=$.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:undefined,swf:this.options.swfPath+(".swf"!==this.options.swfPath.toLowerCase().slice(-4)?(this.options.swfPath&&"/"!==this.options.swfPath.slice(-1)?"/":"")+"Jplayer.swf":"")}),this.internal.poster=$.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:undefined}),$.each($.jPlayer.event,function(eventName,eventType){self.options[eventName]!==undefined&&(self.element.bind(eventType+".jPlayer",self.options[eventName]),self.options[eventName]=undefined)
}),this.require.audio=!1,this.require.video=!1,$.each(this.formats,function(priority,format){self.require[self.format[format].media]=!0}),this.options=this.require.video?$.extend(!0,{},this.optionsVideo,this.options):$.extend(!0,{},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(){(!self.status.video||self.status.waitForPlay)&&self.internal.poster.jq.show()
},this.element.append(this.htmlElement.poster),this.internal.poster.jq=$("#"+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(){self._trigger($.jPlayer.event.click)}),this.html.audio.available=!1,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=!1,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={},$.each(this.formats,function(priority,format){self.html.canPlay[format]=self.html[self.format[format].media].available&&""!==self.htmlElement[self.format[format].media].canPlayType(self.format[format].codec),self.flash.canPlay[format]=self.format[format].flashCanPlay&&self.flash.available
}),this.html.desired=!1,this.flash.desired=!1,$.each(this.solutions,function(solutionPriority,solution){if(0===solutionPriority)self[solution].desired=!0;else{var audioCanPlay=!1,videoCanPlay=!1;$.each(self.formats,function(formatPriority,format){self[self.solutions[0]].canPlay[format]&&("video"===self.format[format].media?videoCanPlay=!0:audioCanPlay=!0)}),self[solution].desired=self.require.audio&&!audioCanPlay||self.require.video&&!videoCanPlay}}),this.html.support={},this.flash.support={},$.each(this.formats,function(priority,format){self.html.support[format]=self.html.canPlay[format]&&self.html.desired,self.flash.support[format]=self.flash.canPlay[format]&&self.flash.desired
}),this.html.used=!1,this.flash.used=!1,$.each(this.solutions,function(solutionPriority,solution){$.each(self.formats,function(formatPriority,format){return self[solution].support[format]?(self[solution].used=!0,!1):void 0})}),this._resetActive(),this._resetGate(),this._cssSelectorAncestor(this.options.cssSelectorAncestor),this.html.used||this.flash.used?this.css.jq.noSolution.length&&this.css.jq.noSolution.hide():(this._error({type:$.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:$.jPlayer.errorMsg.NO_SOLUTION,hint:$.jPlayer.errorHint.NO_SOLUTION}),this.css.jq.noSolution.length&&this.css.jq.noSolution.show()),this.flash.used){var htmlObj,flashVars="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+"&muted="+this.options.muted;
if($.browser.msie&&Number($.browser.version)<=8){var objStr='<object id="'+this.internal.flash.id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="0" height="0"></object>',paramStr=['<param name="movie" value="'+this.internal.flash.swf+'" />','<param name="FlashVars" value="'+flashVars+'" />','<param name="allowScriptAccess" value="always" />','<param name="bgcolor" value="'+this.options.backgroundColor+'" />','<param name="wmode" value="'+this.options.wmode+'" />'];htmlObj=document.createElement(objStr);
for(var i=0;i<paramStr.length;i++)htmlObj.appendChild(document.createElement(paramStr[i]))}else{var createParam=function(el,n,v){var p=document.createElement("param");p.setAttribute("name",n),p.setAttribute("value",v),el.appendChild(p)};htmlObj=document.createElement("object"),htmlObj.setAttribute("id",this.internal.flash.id),htmlObj.setAttribute("data",this.internal.flash.swf),htmlObj.setAttribute("type","application/x-shockwave-flash"),htmlObj.setAttribute("width","1"),htmlObj.setAttribute("height","1"),createParam(htmlObj,"flashvars",flashVars),createParam(htmlObj,"allowscriptaccess","always"),createParam(htmlObj,"bgcolor",this.options.backgroundColor),createParam(htmlObj,"wmode",this.options.wmode)
}this.element.append(htmlObj),this.internal.flash.jq=$(htmlObj)}this.html.used&&(this.html.audio.available&&(this._addHtmlEventListeners(this.htmlElement.audio,this.html.audio),this.element.append(this.htmlElement.audio),this.internal.audio.jq=$("#"+this.internal.audio.id)),this.html.video.available&&(this._addHtmlEventListeners(this.htmlElement.video,this.html.video),this.element.append(this.htmlElement.video),this.internal.video.jq=$("#"+this.internal.video.id),this.status.nativeVideoControls?this.internal.video.jq.css({width:this.status.width,height:this.status.height}):this.internal.video.jq.css({width:"0px",height:"0px"}),this.internal.video.jq.bind("click.jPlayer",function(){self._trigger($.jPlayer.event.click)
}))),this.options.emulateHtml&&this._emulateHtmlBridge(),this.html.used&&!this.flash.used&&setTimeout(function(){self.internal.ready=!0,self.version.flash="n/a",self._trigger($.jPlayer.event.repeat),self._trigger($.jPlayer.event.ready)},100),this._updateNativeVideoControls(),this._updateInterface(),this._updateButtons(!1),this._updateAutohide(),this._updateVolume(this.options.volume),this._updateMute(this.options.muted),this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),$.jPlayer.prototype.count++},destroy:function(){this.clearMedia(),this._removeUiClass(),this.css.jq.currentTime.length&&this.css.jq.currentTime.text(""),this.css.jq.duration.length&&this.css.jq.duration.text(""),$.each(this.css.jq,function(fn,jq){jq.length&&jq.unbind(".jPlayer")
}),this.internal.poster.jq.unbind(".jPlayer"),this.internal.video.jq&&this.internal.video.jq.unbind(".jPlayer"),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(elem){try{return elem.canPlayType(this.format.mp3.codec),!0}catch(err){return!1}},_uaBlocklist:function(list){var ua=navigator.userAgent.toLowerCase(),block=!1;
return $.each(list,function(p,re){return re&&re.test(ua)?(block=!0,!1):void 0}),block},_restrictNativeVideoControls:function(){this.require.audio&&this.status.nativeVideoControls&&(this.status.nativeVideoControls=!1,this.status.noFullScreen=!0)},_updateNativeVideoControls:function(){this.html.video.available&&this.html.used&&(this.htmlElement.video.controls=this.status.nativeVideoControls,this._updateAutohide(),this.status.nativeVideoControls&&this.require.video?(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})):this.status.waitForPlay&&this.status.video&&(this.internal.poster.jq.show(),this.internal.video.jq.css({width:"0px",height:"0px"})))
},_addHtmlEventListeners:function(mediaElement,entity){var self=this;mediaElement.preload=this.options.preload,mediaElement.muted=this.options.muted,mediaElement.volume=this.options.volume,mediaElement.addEventListener("progress",function(){entity.gate&&(self._getHtmlStatus(mediaElement),self._updateInterface(),self._trigger($.jPlayer.event.progress))},!1),mediaElement.addEventListener("timeupdate",function(){entity.gate&&(self._getHtmlStatus(mediaElement),self._updateInterface(),self._trigger($.jPlayer.event.timeupdate))
},!1),mediaElement.addEventListener("durationchange",function(){entity.gate&&(self.status.duration=this.duration,self._getHtmlStatus(mediaElement),self._updateInterface(),self._trigger($.jPlayer.event.durationchange))},!1),mediaElement.addEventListener("play",function(){entity.gate&&(self._updateButtons(!0),self._html_checkWaitForPlay(),self._trigger($.jPlayer.event.play))},!1),mediaElement.addEventListener("playing",function(){entity.gate&&(self._updateButtons(!0),self._seeked(),self._trigger($.jPlayer.event.playing))
},!1),mediaElement.addEventListener("pause",function(){entity.gate&&(self._updateButtons(!1),self._trigger($.jPlayer.event.pause))},!1),mediaElement.addEventListener("waiting",function(){entity.gate&&(self._seeking(),self._trigger($.jPlayer.event.waiting))},!1),mediaElement.addEventListener("seeking",function(){entity.gate&&(self._seeking(),self._trigger($.jPlayer.event.seeking))},!1),mediaElement.addEventListener("seeked",function(){entity.gate&&(self._seeked(),self._trigger($.jPlayer.event.seeked))},!1),mediaElement.addEventListener("volumechange",function(){entity.gate&&(self.options.volume=mediaElement.volume,self.options.muted=mediaElement.muted,self._updateMute(),self._updateVolume(),self._trigger($.jPlayer.event.volumechange))
},!1),mediaElement.addEventListener("suspend",function(){entity.gate&&(self._seeked(),self._trigger($.jPlayer.event.suspend))},!1),mediaElement.addEventListener("ended",function(){entity.gate&&($.jPlayer.browser.webkit||(self.htmlElement.media.currentTime=0),self.htmlElement.media.pause(),self._updateButtons(!1),self._getHtmlStatus(mediaElement,!0),self._updateInterface(),self._trigger($.jPlayer.event.ended))},!1),mediaElement.addEventListener("error",function(){entity.gate&&(self._updateButtons(!1),self._seeked(),self.status.srcSet&&(clearTimeout(self.internal.htmlDlyCmdId),self.status.waitForLoad=!0,self.status.waitForPlay=!0,self.status.video&&!self.status.nativeVideoControls&&self.internal.video.jq.css({width:"0px",height:"0px"}),self._validString(self.status.media.poster)&&!self.status.nativeVideoControls&&self.internal.poster.jq.show(),self.css.jq.videoPlay.length&&self.css.jq.videoPlay.show(),self._error({type:$.jPlayer.error.URL,context:self.status.src,message:$.jPlayer.errorMsg.URL,hint:$.jPlayer.errorHint.URL})))
},!1),$.each($.jPlayer.htmlEvent,function(i,eventType){mediaElement.addEventListener(this,function(){entity.gate&&self._trigger($.jPlayer.event[eventType])},!1)})},_getHtmlStatus:function(media,override){var ct=0,cpa=0,sp=0,cpr=0;media.duration&&(this.status.duration=media.duration),ct=media.currentTime,cpa=this.status.duration>0?100*ct/this.status.duration:0,"object"==typeof media.seekable&&media.seekable.length>0?(sp=this.status.duration>0?100*media.seekable.end(media.seekable.length-1)/this.status.duration:100,cpr=100*media.currentTime/media.seekable.end(media.seekable.length-1)):(sp=100,cpr=cpa),override&&(ct=0,cpr=0,cpa=0),this.status.seekPercent=sp,this.status.currentPercentRelative=cpr,this.status.currentPercentAbsolute=cpa,this.status.currentTime=ct,this.status.readyState=media.readyState,this.status.networkState=media.networkState,this.status.playbackRate=media.playbackRate,this.status.ended=media.ended
},_resetStatus:function(){this.status=$.extend({},this.status,$.jPlayer.prototype.status)},_trigger:function(eventType,error,warning){var event=$.Event(eventType);event.jPlayer={},event.jPlayer.version=$.extend({},this.version),event.jPlayer.options=$.extend(!0,{},this.options),event.jPlayer.status=$.extend(!0,{},this.status),event.jPlayer.html=$.extend(!0,{},this.html),event.jPlayer.flash=$.extend(!0,{},this.flash),error&&(event.jPlayer.error=$.extend({},error)),warning&&(event.jPlayer.warning=$.extend({},warning)),this.element.trigger(event)
},jPlayerFlashEvent:function(eventType,status){if(eventType===$.jPlayer.event.ready)if(this.internal.ready){if(this.flash.gate){if(this.status.srcSet){var currentTime=this.status.currentTime,paused=this.status.paused;this.setMedia(this.status.media),currentTime>0&&(paused?this.pause(currentTime):this.play(currentTime))}this._trigger($.jPlayer.event.flashreset)}}else this.internal.ready=!0,this.internal.flash.jq.css({width:"0px",height:"0px"}),this.version.flash=status.version,this.version.needFlash!==this.version.flash&&this._error({type:$.jPlayer.error.VERSION,context:this.version.flash,message:$.jPlayer.errorMsg.VERSION+this.version.flash,hint:$.jPlayer.errorHint.VERSION}),this._trigger($.jPlayer.event.repeat),this._trigger(eventType);
if(this.flash.gate)switch(eventType){case $.jPlayer.event.progress:this._getFlashStatus(status),this._updateInterface(),this._trigger(eventType);break;case $.jPlayer.event.timeupdate:this._getFlashStatus(status),this._updateInterface(),this._trigger(eventType);break;case $.jPlayer.event.play:this._seeked(),this._updateButtons(!0),this._trigger(eventType);break;case $.jPlayer.event.pause:this._updateButtons(!1),this._trigger(eventType);break;case $.jPlayer.event.ended:this._updateButtons(!1),this._trigger(eventType);
break;case $.jPlayer.event.click:this._trigger(eventType);break;case $.jPlayer.event.error:this.status.waitForLoad=!0,this.status.waitForPlay=!0,this.status.video&&this.internal.flash.jq.css({width:"0px",height:"0px"}),this._validString(this.status.media.poster)&&this.internal.poster.jq.show(),this.css.jq.videoPlay.length&&this.status.video&&this.css.jq.videoPlay.show(),this.status.video?this._flash_setVideo(this.status.media):this._flash_setAudio(this.status.media),this._updateButtons(!1),this._error({type:$.jPlayer.error.URL,context:status.src,message:$.jPlayer.errorMsg.URL,hint:$.jPlayer.errorHint.URL});
break;case $.jPlayer.event.seeking:this._seeking(),this._trigger(eventType);break;case $.jPlayer.event.seeked:this._seeked(),this._trigger(eventType);break;case $.jPlayer.event.ready:break;default:this._trigger(eventType)}return!1},_getFlashStatus:function(status){this.status.seekPercent=status.seekPercent,this.status.currentPercentRelative=status.currentPercentRelative,this.status.currentPercentAbsolute=status.currentPercentAbsolute,this.status.currentTime=status.currentTime,this.status.duration=status.duration,this.status.readyState=4,this.status.networkState=0,this.status.playbackRate=1,this.status.ended=!1
},_updateButtons:function(playing){playing!==undefined&&(this.status.paused=!playing,this.css.jq.play.length&&this.css.jq.pause.length&&(playing?(this.css.jq.play.hide(),this.css.jq.pause.show()):(this.css.jq.play.show(),this.css.jq.pause.hide()))),this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length&&(this.status.noFullScreen?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.hide()):this.options.fullScreen?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.show()):(this.css.jq.fullScreen.show(),this.css.jq.restoreScreen.hide())),this.css.jq.repeat.length&&this.css.jq.repeatOff.length&&(this.options.loop?(this.css.jq.repeat.hide(),this.css.jq.repeatOff.show()):(this.css.jq.repeat.show(),this.css.jq.repeatOff.hide()))
},_updateInterface:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.width(this.status.seekPercent+"%"),this.css.jq.playBar.length&&this.css.jq.playBar.width(this.status.currentPercentRelative+"%"),this.css.jq.currentTime.length&&this.css.jq.currentTime.text($.jPlayer.convertTime(this.status.currentTime)),this.css.jq.duration.length&&this.css.jq.duration.text($.jPlayer.convertTime(this.status.duration))},_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg")},_seeked:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.removeClass("jp-seeking-bg")
},_resetGate:function(){this.html.audio.gate=!1,this.html.video.gate=!1,this.flash.gate=!1},_resetActive:function(){this.html.active=!1,this.flash.active=!1},setMedia:function(media){var self=this,supported=!1,posterChanged=this.status.media.poster!==media.poster;this._resetMedia(),this._resetGate(),this._resetActive(),$.each(this.formats,function(formatPriority,format){var isVideo="video"===self.format[format].media;return $.each(self.solutions,function(solutionPriority,solution){if(self[solution].support[format]&&self._validString(media[format])){var isHtml="html"===solution;
return isVideo?(isHtml?(self.html.video.gate=!0,self._html_setVideo(media),self.html.active=!0):(self.flash.gate=!0,self._flash_setVideo(media),self.flash.active=!0),self.css.jq.videoPlay.length&&self.css.jq.videoPlay.show(),self.status.video=!0):(isHtml?(self.html.audio.gate=!0,self._html_setAudio(media),self.html.active=!0):(self.flash.gate=!0,self._flash_setAudio(media),self.flash.active=!0),self.css.jq.videoPlay.length&&self.css.jq.videoPlay.hide(),self.status.video=!1),supported=!0,!1}}),supported?!1:void 0
}),supported?(this.status.nativeVideoControls&&this.html.video.gate||this._validString(media.poster)&&(posterChanged?this.htmlElement.poster.src=media.poster:this.internal.poster.jq.show()),this.status.srcSet=!0,this.status.media=$.extend({},media),this._updateButtons(!1),this._updateInterface()):this._error({type:$.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:$.jPlayer.errorMsg.NO_SUPPORT,hint:$.jPlayer.errorHint.NO_SUPPORT})},_resetMedia:function(){this._resetStatus(),this._updateButtons(!1),this._updateInterface(),this._seeked(),this.internal.poster.jq.hide(),clearTimeout(this.internal.htmlDlyCmdId),this.html.active?this._html_resetMedia():this.flash.active&&this._flash_resetMedia()
},clearMedia:function(){this._resetMedia(),this.html.active?this._html_clearMedia():this.flash.active&&this._flash_clearMedia(),this._resetGate(),this._resetActive()},load:function(){this.status.srcSet?this.html.active?this._html_load():this.flash.active&&this._flash_load():this._urlNotSetError("load")},play:function(time){time="number"==typeof time?time:0/0,this.status.srcSet?this.html.active?this._html_play(time):this.flash.active&&this._flash_play(time):this._urlNotSetError("play")},videoPlay:function(){this.play()
},pause:function(time){time="number"==typeof time?time:0/0,this.status.srcSet?this.html.active?this._html_pause(time):this.flash.active&&this._flash_pause(time):this._urlNotSetError("pause")},pauseOthers:function(){var self=this;$.each(this.instances,function(i,element){self.element!==element&&element.data("jPlayer").status.srcSet&&element.jPlayer("pause")})},stop:function(){this.status.srcSet?this.html.active?this._html_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(p){p=this._limitValue(p,0,100),this.status.srcSet?this.html.active?this._html_playHead(p):this.flash.active&&this._flash_playHead(p):this._urlNotSetError("playHead")
},_muted:function(muted){this.options.muted=muted,this.html.used&&this._html_mute(muted),this.flash.used&&this._flash_mute(muted),this.html.video.gate||this.html.audio.gate||(this._updateMute(muted),this._updateVolume(this.options.volume),this._trigger($.jPlayer.event.volumechange))},mute:function(mute){mute=mute===undefined?!0:!!mute,this._muted(mute)},unmute:function(unmute){unmute=unmute===undefined?!0:!!unmute,this._muted(!unmute)},_updateMute:function(mute){mute===undefined&&(mute=this.options.muted),this.css.jq.mute.length&&this.css.jq.unmute.length&&(this.status.noVolume?(this.css.jq.mute.hide(),this.css.jq.unmute.hide()):mute?(this.css.jq.mute.hide(),this.css.jq.unmute.show()):(this.css.jq.mute.show(),this.css.jq.unmute.hide()))
},volume:function(v){v=this._limitValue(v,0,1),this.options.volume=v,this.html.used&&this._html_volume(v),this.flash.used&&this._flash_volume(v),this.html.video.gate||this.html.audio.gate||(this._updateVolume(v),this._trigger($.jPlayer.event.volumechange))},volumeBar:function(e){if(this.css.jq.volumeBar.length){var offset=this.css.jq.volumeBar.offset(),x=e.pageX-offset.left,w=this.css.jq.volumeBar.width(),y=this.css.jq.volumeBar.height()-e.pageY+offset.top,h=this.css.jq.volumeBar.height();this.options.verticalVolume?this.volume(y/h):this.volume(x/w)
}this.options.muted&&this._muted(!1)},volumeBarValue:function(e){this.volumeBar(e)},_updateVolume:function(v){v===undefined&&(v=this.options.volume),v=this.options.muted?0:v,this.status.noVolume?(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.hide(),this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.hide(),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.hide()):(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.show(),this.css.jq.volumeBarValue.length&&(this.css.jq.volumeBarValue.show(),this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](100*v+"%")),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show())
},volumeMax:function(){this.volume(1),this.options.muted&&this._muted(!1)},_cssSelectorAncestor:function(ancestor){var self=this;this.options.cssSelectorAncestor=ancestor,this._removeUiClass(),this.ancestorJq=ancestor?$(ancestor):[],ancestor&&1!==this.ancestorJq.length&&this._warning({type:$.jPlayer.warning.CSS_SELECTOR_COUNT,context:ancestor,message:$.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:$.jPlayer.warningHint.CSS_SELECTOR_COUNT}),this._addUiClass(),$.each(this.options.cssSelector,function(fn,cssSel){self._cssSelector(fn,cssSel)
})},_cssSelector:function(fn,cssSel){var self=this;if("string"==typeof cssSel)if($.jPlayer.prototype.options.cssSelector[fn]){if(this.css.jq[fn]&&this.css.jq[fn].length&&this.css.jq[fn].unbind(".jPlayer"),this.options.cssSelector[fn]=cssSel,this.css.cs[fn]=this.options.cssSelectorAncestor+" "+cssSel,this.css.jq[fn]=cssSel?$(this.css.cs[fn]):[],this.css.jq[fn].length){var handler=function(e){return self[fn](e),$(this).blur(),!1};this.css.jq[fn].bind("click.jPlayer",handler)}cssSel&&1!==this.css.jq[fn].length&&this._warning({type:$.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[fn],message:$.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[fn].length+" found for "+fn+" method.",hint:$.jPlayer.warningHint.CSS_SELECTOR_COUNT})
}else this._warning({type:$.jPlayer.warning.CSS_SELECTOR_METHOD,context:fn,message:$.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:$.jPlayer.warningHint.CSS_SELECTOR_METHOD});else this._warning({type:$.jPlayer.warning.CSS_SELECTOR_STRING,context:cssSel,message:$.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:$.jPlayer.warningHint.CSS_SELECTOR_STRING})},seekBar:function(e){if(this.css.jq.seekBar){var offset=this.css.jq.seekBar.offset(),x=e.pageX-offset.left,w=this.css.jq.seekBar.width(),p=100*x/w;this.playHead(p)}},playBar:function(e){this.seekBar(e)
},repeat:function(){this._loop(!0)},repeatOff:function(){this._loop(!1)},_loop:function(loop){this.options.loop!==loop&&(this.options.loop=loop,this._updateButtons(),this._trigger($.jPlayer.event.repeat))},currentTime:function(){},duration:function(){},gui:function(){},noSolution:function(){},option:function(key,value){var options=key;if(0===arguments.length)return $.extend(!0,{},this.options);if("string"==typeof key){var keys=key.split(".");if(value===undefined){for(var opt=$.extend(!0,{},this.options),i=0;i<keys.length;i++){if(opt[keys[i]]===undefined)return this._warning({type:$.jPlayer.warning.OPTION_KEY,context:key,message:$.jPlayer.warningMsg.OPTION_KEY,hint:$.jPlayer.warningHint.OPTION_KEY}),undefined;
opt=opt[keys[i]]}return opt}options={};for(var opts=options,j=0;j<keys.length;j++)j<keys.length-1?(opts[keys[j]]={},opts=opts[keys[j]]):opts[keys[j]]=value}return this._setOptions(options),this},_setOptions:function(options){var self=this;return $.each(options,function(key,value){self._setOption(key,value)}),this},_setOption:function(key,value){var self=this;switch(key){case"volume":this.volume(value);break;case"muted":this._muted(value);break;case"cssSelectorAncestor":this._cssSelectorAncestor(value);break;
case"cssSelector":$.each(value,function(fn,cssSel){self._cssSelector(fn,cssSel)});break;case"fullScreen":this.options[key]!==value&&(this._removeUiClass(),this.options[key]=value,this._refreshSize());break;case"size":this.options.fullScreen||this.options[key].cssClass===value.cssClass||this._removeUiClass(),this.options[key]=$.extend({},this.options[key],value),this._refreshSize();break;case"sizeFull":this.options.fullScreen&&this.options[key].cssClass!==value.cssClass&&this._removeUiClass(),this.options[key]=$.extend({},this.options[key],value),this._refreshSize();
break;case"autohide":this.options[key]=$.extend({},this.options[key],value),this._updateAutohide();break;case"loop":this._loop(value);break;case"nativeVideoControls":this.options[key]=$.extend({},this.options[key],value),this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls),this._restrictNativeVideoControls(),this._updateNativeVideoControls();break;case"noFullScreen":this.options[key]=$.extend({},this.options[key],value),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[key]=$.extend({},this.options[key],value),this.status.noVolume=this._uaBlocklist(this.options.noVolume),this._updateVolume(),this._updateMute();break;case"emulateHtml":this.options[key]!==value&&(this.options[key]=value,value?this._emulateHtmlBridge():this._destroyHtmlBridge())}return this},_refreshSize:function(){this._setSize(),this._addUiClass(),this._updateSize(),this._updateButtons(),this._updateAutohide(),this._trigger($.jPlayer.event.resize)},_setSize:function(){this.options.fullScreen?(this.status.width=this.options.sizeFull.width,this.status.height=this.options.sizeFull.height,this.status.cssClass=this.options.sizeFull.cssClass):(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(){this.ancestorJq.length&&this.ancestorJq.addClass(this.status.cssClass)},_removeUiClass:function(){this.ancestorJq.length&&this.ancestorJq.removeClass(this.status.cssClass)},_updateSize:function(){this.internal.poster.jq.css({width:this.status.width,height:this.status.height}),!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}):!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 self=this,event="mousemove.jPlayer",namespace=".jPlayerAutohide",eventType=event+namespace,handler=function(){self.css.jq.gui.fadeIn(self.options.autohide.fadeIn,function(){clearTimeout(self.internal.autohideId),self.internal.autohideId=setTimeout(function(){self.css.jq.gui.fadeOut(self.options.autohide.fadeOut)},self.options.autohide.hold)})};this.css.jq.gui.length&&(this.css.jq.gui.stop(!0,!0),clearTimeout(this.internal.autohideId),this.element.unbind(namespace),this.css.jq.gui.unbind(namespace),this.status.nativeVideoControls?this.css.jq.gui.hide():this.options.fullScreen&&this.options.autohide.full||!this.options.fullScreen&&this.options.autohide.restored?(this.element.bind(eventType,handler),this.css.jq.gui.bind(eventType,handler),this.css.jq.gui.hide()):this.css.jq.gui.show())
},fullScreen:function(){this._setOption("fullScreen",!0)},restoreScreen:function(){this._setOption("fullScreen",!1)},_html_initMedia:function(){this.htmlElement.media.src=this.status.src,"none"!==this.options.preload&&this._html_load(),this._trigger($.jPlayer.event.timeupdate)},_html_setAudio:function(media){var self=this;$.each(this.formats,function(priority,format){return self.html.support[format]&&media[format]?(self.status.src=media[format],self.status.format[format]=!0,self.status.formatType=format,!1):void 0
}),this.htmlElement.media=this.htmlElement.audio,this._html_initMedia()},_html_setVideo:function(media){var self=this;$.each(this.formats,function(priority,format){return self.html.support[format]&&media[format]?(self.status.src=media[format],self.status.format[format]=!0,self.status.formatType=format,!1):void 0}),this.status.nativeVideoControls&&(this.htmlElement.video.poster=this._validString(media.poster)?media.poster:""),this.htmlElement.media=this.htmlElement.video,this._html_initMedia()},_html_resetMedia:function(){this.htmlElement.media&&(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(){this.htmlElement.media&&(this.htmlElement.media.src="",this.htmlElement.media.load())},_html_load:function(){this.status.waitForLoad&&(this.status.waitForLoad=!1,this.htmlElement.media.load()),clearTimeout(this.internal.htmlDlyCmdId)},_html_play:function(time){var self=this;if(this._html_load(),this.htmlElement.media.play(),!isNaN(time))try{this.htmlElement.media.currentTime=time}catch(err){return this.internal.htmlDlyCmdId=setTimeout(function(){self.play(time)},100),void 0}this._html_checkWaitForPlay()
},_html_pause:function(time){var self=this;if(time>0?this._html_load():clearTimeout(this.internal.htmlDlyCmdId),this.htmlElement.media.pause(),!isNaN(time))try{this.htmlElement.media.currentTime=time}catch(err){return this.internal.htmlDlyCmdId=setTimeout(function(){self.pause(time)},100),void 0}time>0&&this._html_checkWaitForPlay()},_html_playHead:function(percent){var self=this;this._html_load();try{if("object"==typeof this.htmlElement.media.seekable&&this.htmlElement.media.seekable.length>0)this.htmlElement.media.currentTime=percent*this.htmlElement.media.seekable.end(this.htmlElement.media.seekable.length-1)/100;
else{if(!(this.htmlElement.media.duration>0)||isNaN(this.htmlElement.media.duration))throw"e";this.htmlElement.media.currentTime=percent*this.htmlElement.media.duration/100}}catch(err){return this.internal.htmlDlyCmdId=setTimeout(function(){self.playHead(percent)},100),void 0}this.status.waitForLoad||this._html_checkWaitForPlay()},_html_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height})))
},_html_volume:function(v){this.html.audio.available&&(this.htmlElement.audio.volume=v),this.html.video.available&&(this.htmlElement.video.volume=v)},_html_mute:function(m){this.html.audio.available&&(this.htmlElement.audio.muted=m),this.html.video.available&&(this.htmlElement.video.muted=m)},_flash_setAudio:function(media){var self=this;try{$.each(this.formats,function(priority,format){if(self.flash.support[format]&&media[format]){switch(format){case"m4a":case"fla":self._getMovie().fl_setAudio_m4a(media[format]);
break;case"mp3":self._getMovie().fl_setAudio_mp3(media[format])}return self.status.src=media[format],self.status.format[format]=!0,self.status.formatType=format,!1}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(err){this._flashError(err)}},_flash_setVideo:function(media){var self=this;try{$.each(this.formats,function(priority,format){if(self.flash.support[format]&&media[format]){switch(format){case"m4v":case"flv":self._getMovie().fl_setVideo_m4v(media[format])}return self.status.src=media[format],self.status.format[format]=!0,self.status.formatType=format,!1
}}),"auto"===this.options.preload&&(this._flash_load(),this.status.waitForLoad=!1)}catch(err){this._flashError(err)}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"}),this._flash_pause(0/0)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(err){this._flashError(err)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(err){this._flashError(err)}this.status.waitForLoad=!1},_flash_play:function(time){try{this._getMovie().fl_play(time)}catch(err){this._flashError(err)
}this.status.waitForLoad=!1,this._flash_checkWaitForPlay()},_flash_pause:function(time){try{this._getMovie().fl_pause(time)}catch(err){this._flashError(err)}time>0&&(this.status.waitForLoad=!1,this._flash_checkWaitForPlay())},_flash_playHead:function(p){try{this._getMovie().fl_play_head(p)}catch(err){this._flashError(err)}this.status.waitForLoad||this._flash_checkWaitForPlay()},_flash_checkWaitForPlay:function(){this.status.waitForPlay&&(this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.flash.jq.css({width:this.status.width,height:this.status.height})))
},_flash_volume:function(v){try{this._getMovie().fl_volume(v)}catch(err){this._flashError(err)}},_flash_mute:function(m){try{this._getMovie().fl_mute(m)}catch(err){this._flashError(err)}},_getMovie:function(){return document[this.internal.flash.id]},_checkForFlash:function(version){var flash,flashIsInstalled=!1;if(window.ActiveXObject)try{flash=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+version),flashIsInstalled=!0}catch(e){}else if(navigator.plugins&&navigator.mimeTypes.length>0&&(flash=navigator.plugins["Shockwave Flash"])){var flashVersion=navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1");
flashVersion>=version&&(flashIsInstalled=!0)}return flashIsInstalled},_validString:function(url){return url&&"string"==typeof url},_limitValue:function(value,min,max){return min>value?min:value>max?max:value},_urlNotSetError:function(context){this._error({type:$.jPlayer.error.URL_NOT_SET,context:context,message:$.jPlayer.errorMsg.URL_NOT_SET,hint:$.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(error){var errorType;errorType=this.internal.ready?"FLASH_DISABLED":"FLASH",this._error({type:$.jPlayer.error[errorType],context:this.internal.flash.swf,message:$.jPlayer.errorMsg[errorType]+error.message,hint:$.jPlayer.errorHint[errorType]}),this.internal.flash.jq.css({width:"1px",height:"1px"})
},_error:function(error){this._trigger($.jPlayer.event.error,error),this.options.errorAlerts&&this._alert("Error!"+(error.message?"\n\n"+error.message:"")+(error.hint?"\n\n"+error.hint:"")+"\n\nContext: "+error.context)},_warning:function(warning){this._trigger($.jPlayer.event.warning,undefined,warning),this.options.warningAlerts&&this._alert("Warning!"+(warning.message?"\n\n"+warning.message:"")+(warning.hint?"\n\n"+warning.hint:"")+"\n\nContext: "+warning.context)},_alert:function(message){alert("jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+message)
},_emulateHtmlBridge:function(){var self=this;$.jPlayer.emulateMethods,$.each($.jPlayer.emulateMethods.split(/\s+/g),function(i,name){self.internal.domNode[name]=function(arg){self[name](arg)}}),$.each($.jPlayer.event,function(eventName,eventType){var nativeEvent=!0;$.each($.jPlayer.reservedEvent.split(/\s+/g),function(i,name){return name===eventName?(nativeEvent=!1,!1):void 0}),nativeEvent&&self.element.bind(eventType+".jPlayer.jPlayerHtml",function(){self._emulateHtmlUpdate();var domEvent=document.createEvent("Event");
domEvent.initEvent(eventName,!1,!0),self.internal.domNode.dispatchEvent(domEvent)})})},_emulateHtmlUpdate:function(){var self=this;$.each($.jPlayer.emulateStatus.split(/\s+/g),function(i,name){self.internal.domNode[name]=self.status[name]}),$.each($.jPlayer.emulateOptions.split(/\s+/g),function(i,name){self.internal.domNode[name]=self.options[name]})},_destroyHtmlBridge:function(){var self=this;this.element.unbind(".jPlayerHtml");var emulated=$.jPlayer.emulateMethods+" "+$.jPlayer.emulateStatus+" "+$.jPlayer.emulateOptions;
$.each(emulated.split(/\s+/g),function(i,name){delete self.internal.domNode[name]})}},$.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"},$.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 "+$.jPlayer.prototype.version.script+" needs Jplayer.swf version "+$.jPlayer.prototype.version.needFlash+" but found "},$.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."},$.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"},$.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."},$.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."}
}(jQuery)};exports(),module.resolveWith(exports)};FD31.module("jplayer",moduleFactory)}();