PageSourceSearch

https://msxvillage.fr/kernel/lib/flash/flowplayer/flowplayer.js

js msxvillage.fr collected 2026-09-26 20:16:57 UTC 15,193 bytes, 1 lines download raw bytes

1!function(){function e(n){if(!n||"object"!=typeof n)return n;var t=new n.constructor;for(var i in n)n.hasOwnProperty(i)&&(t[i]=e(n[i]));return t}function n(e,n){if(e){var t,i=0,r=e.length;if(void 0===r){for(t in e)if(!1===n.call(e[t],t,e[t]))break}else for(var o=e[0];i<r&&!1!==n.call(o,i,o);o=e[++i]);return e}}function t(e){return document.getElementById(e)}function i(e,t,i){return"object"!=typeof t?e:(e&&t&&n(t,function(n,t){i&&"function"==typeof t||(e[n]=t)}),e)}function r(e){return(e=e||window.event).preventDefault?(e.stopPropagation(),e.preventDefault()):(e.returnValue=!1,e.cancelBubble=!0),!1}function o(e,n,t){e[n]=e[n]||[],e[n].push(t)}function a(){return"_"+(""+Math.random()).slice(2,10)}var u=function(e,t,r){var u=this,l={},f={};if(u.index=t,"string"==typeof e&&(e={url:e}),i(this,e,!0),n("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop".split(","),function(){var e="on"+this;if(-1!=e.indexOf("*")){var n="onBefore"+(e=e.slice(0,e.length-1)).slice(2);u[n]=function(e){return o(f,n,e),u}}u[e]=function(n){return o(f,e,n),u},-1==t&&(u[n]&&(r[n]=u[n]),u[e]&&(r[e]=u[e]))}),i(this,{onCuepoint:function(e,n){if(1==arguments.length)return l.embedded=[null,e],u;"number"==typeof e&&(e=[e]);var i=a();return l[i]=[e,n],r.isLoaded()&&r._api().fp_addCuepoints(e,t,i),u},update:function(e){i(u,e),r.isLoaded()&&r._api().fp_updateClip(e,t);var n=r.getConfig();i(-1==t?n.clip:n.playlist[t],e,!0)},_fireEvent:function(e,o,a,s){if("onLoad"==e)return n(l,function(e,n){
1n[0]&&r._api().fp_addCuepoints(n[0],t,e)}),!1;if(s=s||u,"onCuepoint"==e){var c=l[o];if(c)return c[1].call(r,s,a)}o&&-1!="onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(e)&&(i(s,o),o.metaData&&(s.duration?s.fullDuration=o.metaData.duration:s.duration=o.metaData.duration));var d=!0;return n(f[e],function(){d=this.call(r,s,o,a)}),d}}),e.onCuepoint){var s=e.onCuepoint;u.onCuepoint.apply(u,"function"==typeof s?[s]:s),delete e.onCuepoint}n(e,function(n,t){"function"==typeof t&&(o(f,n,t),delete e[n])}),-1==t&&(r.onCuepoint=this.onCuepoint)},l=function(e,t,r,o){var u=this,l={},f=!1;o&&i(l,o),n(t,function(e,n){"function"==typeof n&&(l[e]=n,delete t[e])}),i(this,{animate:function(n,i,o){if(!n)return u;if("function"==typeof i&&(o=i,i=500),"string"==typeof n){var f=n;(n={})[f]=i,i=500}if(o){var s=a();l[s]=o}return void 0===i&&(i=500),t=r._api().fp_animate(e,n,i,s),u},css:function(n,o){if(void 0!==o){var a={};a[n]=o,n=a}return t=r._api().fp_css(e,n),i(u,t),u},show:function(){return this.display="block",r._api().fp_showPlugin(e),u},hide:function(){return this.display="none",r._api().fp_hidePlugin(e),u},toggle:function(){return this.display=r._api().fp_togglePlugin(e),u},fadeTo:function(n,t,i){if("function"==typeof t&&(i=t,t=500),i){var o=a();l[o]=i}return this.display=r._api().fp_fadeTo(e,n,t,o),this.opacity=n,u},fadeIn:function(e,n){return u.fadeTo(1,e,n)},fadeOut:function(e,n){return u.fadeTo(0,e,n)},getName:function(){return e},getPlayer:function(){return r},_fireEvent:function(t,o,a){if("onUpdate"==t){var s=r._api().fp_getPlugin(e);if(!s)return;i(u,s),delete u.methods,f||(n(s.methods,function(){var n=""+this;u[n]=function(){var t=[].slice.call(arguments),i=r._api().fp_invoke(e,n,t);return"undefined"===i||void 0===i?u:i}}),f=!0)}var c=l[t];if(c){var d=c.apply(u,o);return"_"==t.slice(0,1)&&delete l[t],d}return u}})};function f(f,c,d){var p,h,g,v,y,w,m,_,b=this,E=null,L=!1,P=[],S={},C={};function M(){$f(f)?($f(f).getParent().innerHTML="",y=$f(f).getIndex(),s[y]=b):(s.push(b),y=s.length-1),_=parseInt(f.style.height,10)||f.clientHeight,g=f.id||"fp"+a(),v=c.id||g+"_api",c.id=v,d.playerId=g,"string"==typeof d&&(d={clip:{url:d}}),"string"==typeof d.clip&&(d.clip={url:d.clip}),d.clip=d.clip||{},f.getAttribute("href",2)&&!d.clip.url&&(d.clip.url=f.getAttribute("href",2)),h=new u(d.clip,-1,b),d.playlist=d.playlist||[d.clip];var e=0;function t(e){var n=b.hasiPadSupport&&b.hasiPadSupport();return!(!/iPad|iPhone|iPod/i.test(navigator.userAgent)||/.flv$/i.test(P[0].url)||n)||(b.isLoaded()||!1===b._fireEvent("onBeforeClick")||b.load(),r(e))}n(d.playlist,function(){var t=this;"object"==typeof t&&t.length&&(t={url:""+t}),n(d.clip,function(e,n){void 0!==n&&void 0===t[e]&&"function"!=typeof n&&(t[e]=n)}),d.playlist[e]=t,t=new u(t,e,b),P.push(t),e++}),n(d,function(e,n){"function"==typeof n&&(h[e]?h[e](n):o(C,e,n),delete d[e])}
1),n(d.plugins,function(e,n){n&&(S[e]=new l(e,n,b))}),d.plugins&&void 0!==d.plugins.controls||(S.controls=new l("controls",null,b)),S.canvas=new l("canvas",null,b),p=f.innerHTML,setTimeout(function(){""!==p.replace(/\s/g,"")?f.addEventListener?f.addEventListener("click",t,!1):f.attachEvent&&f.attachEvent("onclick",t):(f.addEventListener&&f.addEventListener("click",r,!1),b.load())},0)}if(i(b,{id:function(){return g},isLoaded:function(){return null!==E&&void 0!==E.fp_play&&!L},getParent:function(){return f},hide:function(e){return e&&(f.style.height="0px"),b.isLoaded()&&(E.style.height="0px"),b},show:function(){return f.style.height=_+"px",b.isLoaded()&&(E.style.height=m+"px"),b},isHidden:function(){return b.isLoaded()&&0===parseInt(E.style.height,10)},load:function(e){if(!b.isLoaded()&&!1!==b._fireEvent("onBeforeLoad")){var t=0;n(s,function(){this.unload(function(n){++t==s.length&&((p=f.innerHTML)&&!flashembed.isSupported(c.version)&&(f.innerHTML=""),e&&(e.cached=!0,o(C,"onLoad",e)),flashembed(f,c,{config:d}))})})}return b},unload:function(e){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent))return e&&e(!1),b;if(""!==p.replace(/\s/g,"")){if(!1===b._fireEvent("onBeforeUnload"))return e&&e(!1),b;L=!0;try{E&&(E.fp_close(),b._fireEvent("onUnload"))}catch(e){}setTimeout(function(){E=null,f.innerHTML=p,L=!1,e&&e(!0)},50)}else e&&e(!1);return b},getClip:function(e){return void 0===e&&(e=w),P[e]},getCommonClip:function(){return h},getPlaylist:function(){return P},getPlugin:function(e){var n=S[e];if(!n&&b.isLoaded()){var t=b._api().fp_getPlugin(e);t&&(n=new l(e,t,b),S[e]=n)}return n},getScreen:function(){return b.getPlugin("screen")},getControls:function(){return b.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return b.getPlugin("logo")._fireEvent("onUpdate")}catch(e){}},getPlay:function(){return b.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(n){return n?e(d):d},getFlashParams:function(){return c},loadPlugin:function(e,n,t,i){"function"==typeof t&&(i=t,t={});var r=i?a():"_";b._api().fp_loadPlugin(e,n,t,r);var o={};o[r]=i;var u=new l(e,null,b,o);return S[e]=u,u},getState:function(){return b.isLoaded()?E.fp_getState():-1},play:function(e,n){var t=function(){void 0!==e?b._api().fp_play(e,n):b._api().fp_play()};return b.isLoaded()?t():L?setTimeout(function(){b.play(e,n)},50):b.load(function(){t()}),b},getVersion:function(){var e="flowplayer.js 3.2.6";if(b.isLoaded()){var n=E.fp_getVersion();return n.push(e),n}return e},_api:function(){if(!b.isLoaded())throw"Flowplayer "+b.id()+" not loaded when calling an API method";return E},setClip:function(e){return b.setPlaylist([e]),b},getIndex:function(){return y},_swfHeight:function(){return E.clientHeight}}),n("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut".split(","),function(){var e="on"+this;if(-1!=e.indexOf("*")){var n="onBefore"+(e=e.slice(0,e.length-1)).slice(2);b[n]=function(e){return o(C,n,e),b}}b[e]=function(n){return o(C,e,n),b}}),n("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffer
1ing,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled".split(","),function(){var e=this;b[e]=function(n,t){if(!b.isLoaded())return b;var i=null;return"undefined"===(i=void 0!==n&&void 0!==t?E["fp_"+e](n,t):void 0===n?E["fp_"+e]():E["fp_"+e](n))||void 0===i?b:i}}),b._fireEvent=function(e){"string"==typeof e&&(e=[e]);var i=e[0],r=e[1],o=e[2],a=e[3],l=0;if(d.debug&&function(e){console.log("$f.fireEvent",[].slice.call(e))}(e),b.isLoaded()||"onLoad"!=i||"player"!=r||(E=E||t(v),m=b._swfHeight(),n(P,function(){this._fireEvent("onLoad")}),n(S,function(e,n){n._fireEvent("onUpdate")}),h._fireEvent("onLoad")),"onLoad"!=i||"player"==r){if("onError"==i&&("string"==typeof r||"number"==typeof r&&"number"==typeof o)&&(r=o,o=a),"onContextMenu"!=i){if("onPluginEvent"==i||"onBeforePluginEvent"==i){var f=r.name||r,s=S[f];return s?(s._fireEvent("onUpdate",r),s._fireEvent(o,e.slice(3))):void 0}if("onPlaylistReplace"==i){P=[];var c=0;n(r,function(){P.push(new u(this,c++,b))})}if("onClipAdd"==i){if(r.isInStream)return;for(r=new u(r,o,b),P.splice(o,0,r),l=o+1;l<P.length;l++)P[l].index++}var p=!0;if("number"==typeof r&&r<P.length){w=r;var g=P[r];g&&(p=g._fireEvent(i,o,a)),g&&!1===p||(p=h._fireEvent(i,o,a,g))}return n(C[i],function(){if(p=this.call(b,r,o),this.cached&&C[i].splice(l,1),!1===p)return!1;l++}),p}
1n(d.contextMenu[r],function(e,n){n.call(b)})}},"string"==typeof f){var x=t(f);if(!x)throw"Flowplayer cannot access element: "+f;f=x,M()}else M()}var s=[];function c(e){this.length=e.length,this.each=function(t){n(e,t)},this.size=function(){return e.length}}window.flowplayer=window.$f=function(){var r=null,o=arguments[0];if(!arguments.length)return n(s,function(){if(this.isLoaded())return r=this,!1}),r||s[0];if(1==arguments.length)return"number"==typeof o?s[o]:"*"==o?new c(s):(n(s,function(){if(this.id()==o.id||this.id()==o||this.getParent()==o)return r=this,!1}),r);if(arguments.length>1){var a=arguments[1],u=3==arguments.length?arguments[2]:{};if("string"==typeof a&&(a={src:a}),a=i({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:!1},a),"string"==typeof o){if(-1!=o.indexOf(".")){var l=[];return n(function(e){var t=e.indexOf(".");if(-1!=t){var i=e.slice(0,t)||"*",r=e.slice(t+1,e.length),o=[];return n(document.getElementsByTagName(i),function(){this.className&&-1!=this.className.indexOf(r)&&o.push(this)}),o}}(o),function(){l.push(new f(this,e(a),e(u)))}),new c(l)}var d=t(o);return new f(null!==d?d:o,a,u)}if(o)return new f(o,a,u)}return null},i(window.$f,{fireEvent:function(){var e=[].slice.call(arguments),n=$f(e[0]);return n?n._fireEvent(e.slice(1)):null},addPlugin:function(e,n){return f.prototype[e]=n,$f},each:n,extend:i}),"function"==typeof jQuery&&(jQuery.fn.flowplayer=function(n,t){if(!arguments.length||"number"==typeof arguments[0]){var i=[];return this.each(function(){var e=$f(this);e&&i.push(e)}),arguments.length?i[arguments[0]]:new c(i)}return this.each(function(){$f(this,e(n),t?e(t):{})})})}(),function(){var e="function"==typeof jQuery,n={width:"100%",height:"100%",allowfullscreen:!0,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:!1,cachebusting:!1};function t(){if(i.done)return!1;var e=document;if(e&&e.getElementsByTagName&&e.getElementById&&e.body){clearInterval(i.timer),i.timer=null;for(var n=0;n<i.ready.length;n++)i.ready[n].call();i.ready=null,i.done=!0}}e&&(jQuery.tools=jQuery.tools||{},jQuery.tools.flashembed={version:"1.0.4",conf:n});var i=e?jQuery:function(e){if(i.done)return e();i.timer?i.ready.push(e):(i.ready=[e],i.timer=setInterval(t,13))};function r(e,n){if(n)for(key in n)n.hasOwnProperty(key)&&(e[key]=n[key]);return e}function o(e){switch(function(e){if(null==e)return!1;var n=typeof e;return"object"==n&&e.push?"array":n}(e)){case"string":return'"'+(e=(e=e.replace(new RegExp('(["\\\\])',"g"),"\\$1")).replace(/^\s?(\d+)%/,"$1pct"))+'"';case"array":return"["+function(e,n){var t=[];for(var i in e)e.hasOwnProperty(i)&&(t[i]=n(e[i]));return t}(e,function(e){return o(e)}).join(",")+"]";case"function":return'"function()"';case"object":var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push('"'+t+'":'+o(e[t]));return"{"+n.join(",")+"}"}return String(e).replace(/\s/g," ").replace(/\'/g,'"')}function a(e,n){var t=r({},e),i=document.all,a='<object width="'+t.width+'" height="'+t.height+'"';for(var u in i&&!t.id&&(t.id="_"+(""+Math.random()).substring(9)),t.id&&(a+=' id="'+t.id+'"'),t.cachebusting&&(t.src+=(-1!=t.src.indexOf("?")?"&":"?")+Math.random()),t.w3c||!i?a+=' data="'+t.src+'" type="application/x-shockwave-flash"':a+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"',a+=">",(t.w3c||i)&&(a+='<param name="movie" value="'+t.src+'" />'),t.width=t.height=t.id=t.w3c=t.src=null,t)null!==t[u]&&(a+='<param name="'+u+'" value="'+t[u]+'" />');var l="";if(n){for(var f in n)null!==n[f]&&(l+=f+"="+("object"==typeof n[f]?o(n[f]):n[f])+"&");a+='<param name="flashvars" value=\''+(l=l.substring(0,l.length-1))+"' />"}return a+="</object>"}function u(e,n,t){var i=flashembed.getVersion();r(this,{getContainer:function(){return e},getConf:function(){return n},getVersion:function(){return i},getFlashvars:function(){return t},getApi:function(){return e.firstChild},getHTML:function(){return a(n,t)}});var o=n.version,u=n.expressInstall,l=!o||flashembed.isSupported(o);if(l?(n.onFail=n.version=n.expressInstall=null,e.innerHTML=a(n,t)):o&&u&&flashembed.isSupported([6,65])?(r(n,{src:u}),t={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title},e.innerHTML=a(n,t)):""!==e.innerHTML.replace(/\s/g,"")||(e.innerHTML="<h2>Flash version "+o+" or greater is required</h2><h3>"+(i[0]>0?"Your version is "+i:"You have no flash plugin installed")+"</h3>"+("A"==e.tagName?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>"),"A"==e.tagName&&(e.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}
1)),!l&&n.onFail){var f=n.onFail.call(this);"string"==typeof f&&(e.innerHTML=f)}document.all&&(window[n.id]=document.getElementById(n.id))}window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){},__flash_savedUnloadHandler=function(){}}),window.flashembed=function(e,t,o){if("string"==typeof e){var a=document.getElementById(e);if(!a)return void i(function(){flashembed(e,t,o)});e=a}if(e){"string"==typeof t&&(t={src:t});var l=r({},n);return r(l,t),new u(e,l,o)}},r(window.flashembed,{getVersion:function(){var e=[0,0];if(navigator.plugins&&"object"==typeof navigator.plugins["Shockwave Flash"]){var n=navigator.plugins["Shockwave Flash"].description;if(void 0!==n)n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),e=[parseInt(n.replace(/^(.*)\..*$/,"$1"),10),/r/.test(n)?parseInt(n.replace(/^.*r(.*)$/,"$1"),10):0]}else if(window.ActiveXObject){try{var t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(n){try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),e=[6,0],t.AllowScriptAccess="always"}catch(n){if(6==e[0])return e}try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}"object"==typeof t&&void 0!==(n=t.GetVariable("$version"))&&(n=n.replace(/^\S+\s+(.*)$/,"$1").split(","),e=[parseInt(n[0],10),parseInt(n[2],10)])}return e},isSupported:function(e){var n=flashembed.getVersion();return n[0]>e[0]||n[0]==e[0]&&n[1]>=e[1]},domReady:i,asString:o,getHTML:a}),e&&(jQuery.fn.flashembed=function(e,n){var t=null;return this.each(function(){t=flashembed(this,e,n)}),!1===e.api?this:t})}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.