diff -r 4e7d9e1b9aa9 -r 811d9bf63798 sbin/build/LdtPlayer.min.js --- a/sbin/build/LdtPlayer.min.js Fri Sep 09 11:01:50 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,86 +0,0 @@ -/* - * - * Copyright 2010 Institut de recherche et d'innovation - * contributor(s) : Samuel Huron - * - * contact@iri.centrepompidou.fr - * http://www.iri.centrepompidou.fr - * - * This software is a computer program whose purpose is to show and add annotations on a video . - * This software is governed by the CeCILL-C license under French law and - * abiding by the rules of distribution of free software. You can use, - * modify and/ or redistribute the software under the terms of the CeCILL-C - * license as circulated by CEA, CNRS and INRIA at the following URL - * "http://www.cecill.info". - * - * The fact that you are presently reading this means that you have had - * knowledge of the CeCILL-C license and that you accept its terms. -*/ -if(window.IriSP===undefined&&window.__IriSP===undefined)var IriSP={},__IriSP=IriSP;IriSP.traceNum=0;IriSP.trace=function(a,b){if(IriSP.config.gui.debug===true){IriSP.traceNum+=1;IriSP.jQuery("
"+IriSP.traceNum+" - "+a+" : "+b+"
").appendTo("#Ldt-output")}};IriSP.config=undefined; -IriSP.configDefault={metadata:{format:"cinelab",src:"",load:"jsonp"},gui:{width:650,height:0,mode:"radio",container:"LdtPlayer",debug:false,css:"../src/css/LdtPlayer.css"},player:{type:"jwplayer",src:"../res/swf/player.swf",params:{allowfullscreen:"true",allowscriptaccess:"always",wmode:"transparent"},flashvars:{streamer:"streamer",file:"file",live:"true",autostart:"false",controlbar:"none",playerready:"__IriSP.playerReady"},attributes:{id:"Ldtplayer1",name:"Ldtplayer1"}},module:null}; -IriSP.lib={jQuery:"http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js",jQueryUI:"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js",jQueryToolTip:"http://cdn.jquerytools.org/1.2.4/all/jquery.tools.min.js",swfObject:"http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js",cssjQueryUI:"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css"};IriSP.LdtShareTool="\n \n  \n  \n  "; -IriSP.MyLdt=null;IriSP.MyTags=null;IriSP.MyApiPlayer=null;IriSP.player=null;IriSP.Durration=null;IriSP.playerLdtWidth=null;IriSP.playerLdtHeight=null; -IriSP.init=function(a){function b(){var h=document.createElement("script");h.setAttribute("type","text/javascript");h.setAttribute("src",IriSP.lib.jQueryToolTip);h.onload=c;h.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded")c("jquery.tools.min.js loded")};var i=document.createElement("script");i.setAttribute("type","text/javascript");i.setAttribute("src",IriSP.lib.swfObject);i.onload=c;i.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState== -"loaded")c("swfobject.js loded")};var j=document.createElement("script");j.setAttribute("type","text/javascript");j.setAttribute("src",IriSP.lib.jQueryUI);j.onload=c;j.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded")c("jquery-ui.min.js loded")};(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(h);(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(j);(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(i)} -function c(){e+=1;e===3&&d()}function d(){IriSP.jQuery=window.jQuery.noConflict(true);IriSP.jQuery(document).ready(function(h){var i=IriSP.jQuery("",{rel:"stylesheet",type:"text/css",href:IriSP.lib.cssjQueryUI,"class":"dynamic_css"}),j=IriSP.jQuery("",{rel:"stylesheet",type:"text/css",href:IriSP.config.gui.css,"class":"dynamic_css"});i.appendTo("head");j.appendTo("head");h.browser.msie&&h(".dynamic_css").clone().appendTo("head");IriSP.createMyHtml();IriSP.jQuery.ajax({dataType:IriSP.config.metadata.load, -url:f,success:function(g){IriSP.trace("ajax","success");if(g==="")alert("ERREUR DE CHARGEMENT JSON");else{new __IriSP.Media(g.medias[0].id,g.medias[0].href,g.medias[0].meta["dc:duration"],g.medias[0]["dc:title"],g.medias[0]["dc:description"]);IriSP.trace("__IriSP.MyApiPlayer",IriSP.config.gui.width+" "+IriSP.config.gui.height+" "+g.medias[0].href+" "+g.medias[0].meta["dc:duration"]+" "+g.medias[0].meta.item.value);IriSP.MyApiPlayer=new __IriSP.APIplayer(IriSP.config.gui.width,IriSP.config.gui.height, -g.medias[0].href,g.medias[0].meta["dc:duration"],g.medias[0].meta.item.value);IriSP.trace("__IriSP.init.main","__IriSP.Ligne");IriSP.MyLdt=new __IriSP.Ligne(g["annotation-types"][0].id,g["annotation-types"][0]["dc:title"],g["annotation-types"][0]["dc:description"],g.medias[0].meta["dc:duration"]);IriSP.trace("__IriSP.init.main","__IriSP.Tags");IriSP.MyTags=new __IriSP.Tags(g.tags);IriSP.jQuery.each(g.annotations,function(l,k){k.meta["id-ref"]==IriSP.MyLdt.id&&IriSP.MyLdt.addAnnotation(k.id,k.begin, -k.end,k.media,k.content.title,k.content.description,k.content.color,k.tags)});IriSP.jQuery.each(g.lists,function(){IriSP.trace("lists","")});IriSP.jQuery.each(g.views,function(){IriSP.trace("views","")})}},error:function(g){alert("ERROR : "+g)}})})}if(a===null)IriSP.config=IriSP.configDefault;else{IriSP.config=a;if(IriSP.config.player.params==null)IriSP.config.player.params=IriSP.configDefault.player.params;if(IriSP.config.player.flashvars==null)IriSP.config.player.flashvars=IriSP.configDefault.player.flashvars; -if(IriSP.config.player.attributes==null)IriSP.config.player.attributes=IriSP.configDefault.player.attributes}var f=IriSP.config.metadata.src;IriSP.jQuery=null;if(window.jQuery===undefined||window.jQuery.fn.jquery!=="1.4.2"){a=document.createElement("script");a.setAttribute("type","text/javascript");a.setAttribute("src",IriSP.lib.jQuery);a.onload=b;a.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded")b()};(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a)}else{IriSP.jQuery= -window.jQuery;b()}var e=0}; -IriSP.createMyHtml=function(){var a=IriSP.config.gui.width,b=IriSP.config.gui.height-20;IriSP.trace("__IriSP.createMyHtml",IriSP.config.gui.container);if(IriSP.config.gui.mode=="radio"){IriSP.jQuery("#"+IriSP.config.gui.container).before("
\n\t\n
\n
");IriSP.trace("__IriSP.createHtml", -IriSP.config.gui.container);IriSP.jQuery("
\n\t
\n\t\tGet flash to see this player\t\n\t
\n\t
\n\t\t
\n\t\t\t\n\t\t\t\n\t\t
\n\t\t
\n\t\t\t
\n\t
\n\t\t
\n\t\t\t\n\t\t\t\n\t\t
\n
 
\n
\n \t
\n
\n
\n
\n
\n\t
\n\t\t
\n\t\t
\n \t\t