# HG changeset patch # User hurons # Date 1284462928 -7200 # Node ID 28d21b2123baa47badbfbf8189867e76f067b562 # Parent a6c4ea119b805e4d7562bef561b00edb8055978e independant JS version for the player diff -r a6c4ea119b80 -r 28d21b2123ba client/player/res/js/tooltip.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/player/res/js/tooltip.js Tue Sep 14 13:15:28 2010 +0200 @@ -0,0 +1,329 @@ +/** + * @license + * jQuery Tools 1.2.4 Tooltip - UI essentials + * + * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE. + * + * http://flowplayer.org/tools/tooltip/ + * + * Since: November 2008 + * Date: Sun Aug 15 08:16:31 2010 +0000 + */ +(function($) { + // static constructs + $.tools = $.tools || {version: '1.2.4'}; + + $.tools.tooltip = { + + conf: { + + // default effect variables + effect: 'toggle', + fadeOutSpeed: "fast", + predelay: 0, + delay: 30, + opacity: 1, + tip: 0, + + // 'top', 'bottom', 'right', 'left', 'center' + position: ['top', 'center'], + offset: [0, 0], + relative: false, + cancelDefault: true, + + // type to event mapping + events: { + def: "mouseenter,mouseleave", + input: "focus,blur", + widget: "focus mouseenter,blur mouseleave", + tooltip: "mouseenter,mouseleave" + }, + + // 1.2 + layout: '
', + tipClass: 'tooltip' + }, + + addEffect: function(name, loadFn, hideFn) { + effects[name] = [loadFn, hideFn]; + } + }; + + + var effects = { + toggle: [ + function(done) { + var conf = this.getConf(), tip = this.getTip(), o = conf.opacity; + if (o < 1) { tip.css({opacity: o}); } + tip.show(); + done.call(); + }, + + function(done) { + this.getTip().hide(); + done.call(); + } + ], + + fade: [ + function(done) { + var conf = this.getConf(); + this.getTip().fadeTo(conf.fadeInSpeed, conf.opacity, done); + }, + function(done) { + this.getTip().fadeOut(this.getConf().fadeOutSpeed, done); + } + ] + }; + + + /* calculate tip position relative to the trigger */ + function getPosition(trigger, tip, conf) { + + + // get origin top/left position + var top = conf.relative ? trigger.position().top : trigger.offset().top, + left = conf.relative ? trigger.position().left : trigger.offset().left, + pos = conf.position[0]; + + top -= tip.outerHeight() - conf.offset[0]; + left += trigger.outerWidth() + conf.offset[1]; + + // adjust Y + var height = tip.outerHeight() + trigger.outerHeight(); + if (pos == 'center') { top += height / 2; } + if (pos == 'bottom') { top += height; } + + + // adjust X + pos = conf.position[1]; + var width = tip.outerWidth() + trigger.outerWidth(); + if (pos == 'center') { left -= width / 2; } + if (pos == 'left') { left -= width; } + + return {top: top, left: left}; + } + + + + function Tooltip(trigger, conf) { + + var self = this, + fire = trigger.add(self), + tip, + timer = 0, + pretimer = 0, + title = trigger.attr("title"), + tipAttr = trigger.attr("data-tooltip"), + effect = effects[conf.effect], + shown, + + // get show/hide configuration + isInput = trigger.is(":input"), + isWidget = isInput && trigger.is(":checkbox, :radio, select, :button, :submit"), + type = trigger.attr("type"), + evt = conf.events[type] || conf.events[isInput ? (isWidget ? 'widget' : 'input') : 'def']; + + + // check that configuration is sane + if (!effect) { throw "Nonexistent effect \"" + conf.effect + "\""; } + + evt = evt.split(/,\s*/); + if (evt.length != 2) { throw "Tooltip: bad events configuration for " + type; } + + + // trigger --> show + trigger.bind(evt[0], function(e) { + + clearTimeout(timer); + if (conf.predelay) { + pretimer = setTimeout(function() { self.show(e); }, conf.predelay); + + } else { + self.show(e); + } + + // trigger --> hide + }).bind(evt[1], function(e) { + clearTimeout(pretimer); + if (conf.delay) { + timer = setTimeout(function() { self.hide(e); }, conf.delay); + + } else { + self.hide(e); + } + + }); + + + // remove default title + if (title && conf.cancelDefault) { + trigger.removeAttr("title"); + trigger.data("title", title); + } + + $.extend(self, { + + show: function(e) { + + // tip not initialized yet + if (!tip) { + + // data-tooltip + if (tipAttr) { + tip = $(tipAttr); + + // autogenerated tooltip + } else if (title) { + tip = $(conf.layout).addClass(conf.tipClass).appendTo(document.body) + .hide().append(title); + + // single tip element for all + } else if (conf.tip) { + tip = $(conf.tip).eq(0); + + // manual tooltip + } else { + tip = trigger.next(); + if (!tip.length) { tip = trigger.parent().next(); } + } + + if (!tip.length) { throw "Cannot find tooltip for " + trigger; } + } + + if (self.isShown()) { return self; } + + // stop previous animation + tip.stop(true, true); + + // get position + var pos = getPosition(trigger, tip, conf); + + + // onBeforeShow + e = e || $.Event(); + e.type = "onBeforeShow"; + fire.trigger(e, [pos]); + if (e.isDefaultPrevented()) { return self; } + + + // onBeforeShow may have altered the configuration + pos = getPosition(trigger, tip, conf); + + // set position + tip.css({position:'absolute', top: pos.top, left: pos.left}); + + shown = true; + + // invoke effect + effect[0].call(self, function() { + e.type = "onShow"; + shown = 'full'; + fire.trigger(e); + }); + + + // tooltip events + var event = conf.events.tooltip.split(/,\s*/); + + tip.bind(event[0], function() { + clearTimeout(timer); + clearTimeout(pretimer); + }); + + if (event[1] && !trigger.is("input:not(:checkbox, :radio), textarea")) { + tip.bind(event[1], function(e) { + + // being moved to the trigger element + if (e.relatedTarget != trigger[0]) { + trigger.trigger(evt[1].split(" ")[0]); + } + }); + } + + return self; + }, + + hide: function(e) { + + if (!tip || !self.isShown()) { return self; } + + // onBeforeHide + e = e || $.Event(); + e.type = "onBeforeHide"; + fire.trigger(e); + if (e.isDefaultPrevented()) { return; } + + shown = false; + + effects[conf.effect][1].call(self, function() { + e.type = "onHide"; + fire.trigger(e); + }); + + return self; + }, + + isShown: function(fully) { + return fully ? shown == 'full' : shown; + }, + + getConf: function() { + return conf; + }, + + getTip: function() { + return tip; + }, + + getTrigger: function() { + return trigger; + } + + }); + + // callbacks + $.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","), function(i, name) { + + // configuration + if ($.isFunction(conf[name])) { + $(self).bind(name, conf[name]); + } + + // API + self[name] = function(fn) { + $(self).bind(name, fn); + return self; + }; + }); + + } + + + // jQuery plugin implementation + $.fn.tooltip = function(conf) { + + // return existing instance + var api = this.data("tooltip"); + if (api) { return api; } + + conf = $.extend(true, {}, $.tools.tooltip.conf, conf); + + // position can also be given as string + if (typeof conf.position == 'string') { + conf.position = conf.position.split(/,?\s/); + } + + // install tooltip for each entry in jQuery object + this.each(function() { + api = new Tooltip($(this), conf); + $(this).data("tooltip", api); + }); + + return conf.api ? api: this; + }; + +}) (); + + + diff -r a6c4ea119b80 -r 28d21b2123ba client/player/src/css/LdtPlayer.css --- a/client/player/src/css/LdtPlayer.css Fri Aug 06 17:19:37 2010 +0200 +++ b/client/player/src/css/LdtPlayer.css Tue Sep 14 13:15:28 2010 +0200 @@ -4,7 +4,14 @@ height:1.5em; width:1.5em; } - + + #Ldt-loader { + background:url(imgs/loader.gif) no-repeat; + width:20px; + height:16px; + float:left; + } + #Ldt-controler { font-size: 62.5%; font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; @@ -12,7 +19,7 @@ height:35px; padding:5px; } - + .Ldt-iri-chapter{ padding-top:10px; padding-bottom:5px; @@ -33,6 +40,9 @@ color:#000; font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; } + #Ldt-Root{ + font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; + } #Ldt-Hat{ height:3px; } @@ -59,9 +69,10 @@ background:url(imgs/grey_arrow_Show.png); width:27px; height:13px; - margin-top:10px; + margin-top:12px; margin-left:-10px; } + #Ldt-Show-Tags{ position:relative; height:13px; @@ -88,12 +99,27 @@ color:#4D4D4D; padding:5px; font-weight:bold; + text-align:left; + float:left; + font-size:10px; } + #Ldt-SaShareTools{ + text-align:right; + float:right; + } + #Ldt-PlaceHolder{ position:absolue; float:none; } + + .Ldt-mode-radio{ + visibility:hidden; + height:0px; + display:none + } + .Ldt-Control1{ width:60px; float:left; diff -r a6c4ea119b80 -r 28d21b2123ba client/player/src/css/LdtPlayerFc.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/player/src/css/LdtPlayerFc.css Tue Sep 14 13:15:28 2010 +0200 @@ -0,0 +1,175 @@ + #demo-frame > div.demo { padding: 5px !important; }; + + button.ui-button-icon-only { + height:1.5em; + width:1.5em; + } + + #Ldt-loader{ + background:url(imgs/transBlack.gif); + width:10px; + height:10px; + } + + #Ldt-controler { + font-size: 62.5%; + font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; + background-color:#DECFE2; + height:35px; + padding:5px; + } + + .Ldt-iri-chapter{ + padding-top:10px; + padding-bottom:5px; + border-left:solid 1px #000; + border-right:solid 1px #000; + } + + #Ldt-loader { + background:url(imgs/loader_fc.gif) no-repeat; + width:20px; + height:16px; + float:left; + } + + .tooltip { + display:none; + background:transparent url(imgs/white_arrow_mini.png); + font-size:12px; + height:55px; + width:180px; + padding:10px; + padding-left:15px; + padding-top:15px; + padding-right:15px; + color:#000; + font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; + } + #Ldt-Root{ + font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; + } + #Ldt-Hat{ + height:3px; + } + #Ldt-Annotations{ + padding-left:5px; + width:470px; + float:left; + font-size: 62.5%; + } + #Ldt-SaTitle{ + padding-top:2px; + padding-bottom:5px; + font-size:18px; + height:22p; + color:#FFF; + } + #Ldt-SaDescription{ + font-size:12px; + } + #Ldt-Show-Arrow-container{ + margin-left:60px; + } + #Ldt-Show-Arrow{ + position:relative; + background:url(imgs/grey_arrow_Show.png); + width:27px; + height:13px; + margin-top:12px; + margin-left:-10px; + } + + #Ldt-output{ + display:none; + } + #Ldt-Show-Tags{ + position:relative; + height:13px; + margin-top:-10px; + border: solid 1px #000; + } + #Ldt-ShowAnnotation-video{ + position:absolute; + z-index: 999; + padding:5px; + background:url(imgs/transBlack.png); + font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; + color:#FFF; + } + #Ldt-ShowAnnotation-audio{ + position:relative; + padding:5px; + background-color:#773584; + font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; + color:#000000; + } + #Ldt-SaKeyword{ + background-color:#28042D; + color:#FFFFFF; + padding:5px; + font-weight:bold; + text-align:left; + float:left; + font-size:10px; + } + #Ldt-SaShareTools{ + text-align:right; + float:right; + } + + + #Ldt-PlaceHolder{ + position:absolue; + float:none; + } + + .Ldt-mode-radio{ + visibility:hidden; + height:0px; + display:none + } + + .Ldt-Control1{ + width:60px; + float:left; + } + .Ldt-Control2{ + padding-left:10px; + width:60px; + float:left; + } + .Ldt-cleaner { + clear:both; + } + .share { + background:url('imgs/widget20.png') no-repeat scroll 0 0 transparent ; + display:block; + height:16px; + line-height:16px !important; + overflow:hidden; + width:16px; + float:left; + cursor:pointer; + margin:2px; + } + .shareFacebook{ + background-position:0 -704px; + } + .shareMySpace{ + background-position:0 -736px; + } + .shareTwitter{ + background-position:0 -1072px; + } + .shareGoogle{ + background-position:0 -752px; + } + .shareDelicious{ + background-position:0 -672px; + } + .shareJamesPot{ + background-position:0 -1808px; + } + + \ No newline at end of file diff -r a6c4ea119b80 -r 28d21b2123ba client/player/src/css/imgs/loader_fc.gif Binary file client/player/src/css/imgs/loader_fc.gif has changed diff -r a6c4ea119b80 -r 28d21b2123ba client/player/src/js/LdtPlayer.js --- a/client/player/src/js/LdtPlayer.js Fri Aug 06 17:19:37 2010 +0200 +++ b/client/player/src/js/LdtPlayer.js Tue Sep 14 13:15:28 2010 +0200 @@ -1,337 +1,464 @@ -/* ---------------------------------------------------------------- - ---------------------------------------------------------------- - ---------------------------------------------------------------- - - LDTPlayer is created by http://www.iri.centrepompidou.fr - 2010-06-14 - version 0.08 - - init By Samuel Huron < samuel.huron (at) cybunk (dot) com > - use JQUERY - Compatible v1.3.2 :: Optimal 1.4 - use TOOLTIP FOR JQ - - use JQUERY UI - for theme management - use JWPLAYER - but you can change it with other things - use Media Fragment - inspired by HTML5 exemple from Silvia Pfeiffer - for #t= // http://annodex.net/~silvia/itext/mediafrag.html - - - - TODO : //////////////////////////////////////// - - - ajouter le share embed - - gestion créer une annotation simple - - bouton graphique design : pause / stop - - gestion des tags - - creation du mode radio - - ---------------------------------------------------------------- +/* + * + * 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 ){ var __IriSP={};} -/* ---------------------------------------------------------------- - ---------------------------------------------------------------- - INIT player LDT */ +// Player Configuration +__IriSP.config = { + metadata:{ + format:'cinelab', + src:'http://exp.iri.centrepompidou.fr/franceculture/franceculture/ldt/cljson/id/ef4dcc2e-8d3b-11df-8a24-00145ea4a2be', + 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' + }, + module:null + }; - //LdtShareTool = "\n
\nShare| \n \n \n \n \n
\n /n"; - - LdtShareTool = ""+ - "\n"+ - "\n "+ - "\n "+ - "\n "+ - "\n "; - - var DIVROOTID; +__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" + }; + +// Player Variable +__IriSP.LdtShareTool = ""+ +"\n"+ +"\n "+ +"\n "+ +"\n "+ +"\n "; + +// Official instance - to refactor ? +__IriSP.MyLdt = null; +__IriSP.MyTags = null; +__IriSP.MyApiPlayer = null; +__IriSP.player = null; + +// genral var (old code) - to refactor +__IriSP.Durration = null; +__IriSP.playerLdtWidth= null; +__IriSP.playerLdtHeight= null; + - function playerLdt (width,height,file,divId,MySwfPath,AudioVideo){ - - if (AudioVideo==true){ - // VIDEO - $jIRI("#"+divId).append("
\n
\n
\n
\n
\n \n "+LdtShareTool+"\n \n
X
\n Get flash to see this player \n
\n
\n
\n
\n \n \n
\n
\n
\n
\n
\n \n \n
\n
 
"); - - } else { - // AUDIO - $jIRI("#"+divId).append("
\n
\n
\n \n \n
\n
\n
\n
\n
\n \n \n
\n
 
\n
\n
\n
\n
\n
\n
\n
 
\n
\n
\n
 
\n \n "+LdtShareTool+"\n \n
\n
 
My tags
"); - } - //DIVROOTID=divId; - //$jIRI("#Ldt-Root").css('visibility','hidden'); - //$jIRI("#Ldt-Root").css('display','none'); - loadJson(width,height,file,MySwfPath); - } + - /* - $('#loading').ajaxStart(function() { - $(this).show(); - $('#result').hide(); - }).ajaxStop(function() { - $(this).hide(); - $('#result').fadeIn('slow'); - }); - */ - +__IriSP.init = function (config){ + + __IriSP.config = config; + var metadataSrc = __IriSP.config.metadata.src; + var guiContainer = __IriSP.config.gui.container; + var guiMode = __IriSP.config.gui.mode; + var guiLdtShareTool = __IriSP.LdtShareTool; + // Localize jQuery variable + __IriSP.jQuery = null; -/* ---------------------------------------------------------------- - ---------------------------------------------------------------- - LOAD JSON AND PARSE IT */ + /******** Load jQuery if not present *********/ + if (window.jQuery === undefined || window.jQuery.fn.jquery !== '1.4.2') { + var script_tag = document.createElement('script'); + script_tag.setAttribute("type","text/javascript"); + script_tag.setAttribute("src",__IriSP.lib.jQuery); + //"http://cdn.jquerytools.org/1.2.4/full/jquery.tools.min.js"); + script_tag.onload = scriptLibHandler; + script_tag.onreadystatechange = function () { // Same thing but for IE + if (this.readyState == 'complete' || this.readyState == 'loaded') { + scriptLibHandler(); + + } + }; + // Try to find the head, otherwise default to the documentElement + (document.getElementsByTagName("head")[0] || document.documentElement).appendChild(script_tag); + } else { + // The jQuery version on the window is the one we want to use + __IriSP.jQuery = window.jQuery; + scriptLibHandler(); + } - var MyLdt; - var MyTags; - var Durration; - var playerLdtWidth; - var playerLdtHeight; + /******** Called once jQuery has loaded ******/ + function scriptLibHandler() { + + var script_jqUi_tooltip = document.createElement('script'); + script_jqUi_tooltip.setAttribute("type","text/javascript"); + script_jqUi_tooltip.setAttribute("src",__IriSP.lib.jQueryToolTip); + script_jqUi_tooltip.onload = scriptLoadHandler; + script_jqUi_tooltip.onreadystatechange = function () { // Same thing but for IE + if (this.readyState == 'complete' || this.readyState == 'loaded') { + scriptLoadHandler("jquery.tools.min.js loded"); + } + }; + + var script_swfObj = document.createElement('script'); + script_swfObj.setAttribute("type","text/javascript"); + script_swfObj.setAttribute("src",__IriSP.lib.swfObject); + script_swfObj.onload = scriptLoadHandler; + script_swfObj.onreadystatechange = function () { // Same thing but for IE + if (this.readyState == 'complete' || this.readyState == 'loaded') { + scriptLoadHandler("swfobject.js loded"); + } + }; + + var script_jqUi = document.createElement('script'); + script_jqUi.setAttribute("type","text/javascript"); + script_jqUi.setAttribute("src", + "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js"); + script_jqUi.onload = scriptLoadHandler; + script_jqUi.onreadystatechange = function () { // Same thing but for IE + if (this.readyState == 'complete' || this.readyState == 'loaded') { + scriptLoadHandler("jquery-ui.min.js loded"); + } + }; + + + - $('#log').ajaxError(function(event, request, settings){ - $(this).append("
  • Error requesting page " + settings.url + "
  • "); - }); - - function loadJson (width,height,urlJson,MySwfPath){ - - playerLdtWidth=width; - playerLdtHeight=height; - - $jIRI.ajax({ + (document.getElementsByTagName("head")[0] || document.documentElement).appendChild(script_jqUi_tooltip); + (document.getElementsByTagName("head")[0] || document.documentElement).appendChild(script_jqUi); + (document.getElementsByTagName("head")[0] || document.documentElement).appendChild(script_swfObj); + + + }; + + /******** Called once all lib are loaded ******/ + var loadLib = 0; + function scriptLoadHandler(Mylib) { + //alert(Mylib); + loadLib +=1; + if(loadLib===3){ + main(); + }else { + // __IriSP.jQuery('#'+__IriSP.config.gui.container).html("Loading library ..."); + } + }; + + /******** Our main function ********/ + function main() { + + + // Make __IriSP.jQuery and restore window.jQuery + __IriSP.jQuery = window.jQuery.noConflict(true); + // Call MY Jquery + __IriSP.jQuery(document).ready(function($) { + + /******* Load CSS *******/ + var css_link_jquery = __IriSP.jQuery("", { + rel: "stylesheet", + type: "text/css", + href: "../res/css/jq-css/themes/base/jquery.ui.all.css", + 'class': "dynamic_css" + }); + var css_link_custom = __IriSP.jQuery("", { + rel: "stylesheet", + type: "text/css", + href: __IriSP.config.gui.css , + 'class': "dynamic_css" + }); + + css_link_jquery.appendTo('head'); + css_link_custom.appendTo('head'); + + // to see dynamicly loaded css on IE + if ($.browser.msie) { + $('.dynamic_css').clone().appendTo('head'); + } + + //__IriSP.trace("main","ready createMyHtml"); + + __IriSP.createMyHtml(); + //__IriSP.trace("main","end createMyHtml"); + + /******* Load Metadata *******/ + + __IriSP.jQuery.ajax({ dataType: 'jsonp', - url:urlJson, + url:metadataSrc, success : function(json){ - //alert("ICI : "+json); - - if(json == ""){ - alert("ERREUR DE CHARGEMENT JSON"); - } else { - - - /* # CREATE MEDIA */ - /* # JUSTE ONE PLAYER FOR THE MOMENT */ - $jIRI("
    ").appendTo("#output"); - MyMedia = new Media(json.medias[0].id,json.medias[0].href,json.medias[0]["meta"]["dc:duration"],json.medias[0]['dc:title'],json.medias[0]['dc:description']); - MyMedia.createPlayer(playerLdtWidth,playerLdtHeight,json.medias[0]["meta"]["item"]["value"],MySwfPath); + __IriSP.trace("ajax","success"); + + // START PARSING ----------------------- + if(json === ""){ + alert("ERREUR DE CHARGEMENT JSON"); + } else { + + + // # CREATE MEDIA // + // # JUSTE ONE PLAYER FOR THE MOMENT // + //__IriSP.jQuery("
    ").appendTo("#output"); + var MyMedia = new __IriSP.Media( + json.medias[0].id, + json.medias[0].href, + json.medias[0]['meta']['dc:duration'], + json.medias[0]['dc:title'], + json.medias[0]['dc:description']); + + __IriSP.trace("__IriSP.MyApiPlayer", + __IriSP.config.gui.width+" " + + __IriSP.config.gui.height + " " + + json.medias[0].href + " " + + json.medias[0]['meta']['dc:duration'] + " " + + json.medias[0]['meta']['item']['value']); + + // Create APIplayer + __IriSP.MyApiPlayer = new __IriSP.APIplayer( + __IriSP.config.gui.width, + __IriSP.config.gui.height, + json.medias[0].href, + json.medias[0]['meta']['dc:duration'], + json.medias[0]['meta']['item']['value']); - /* # CREATE THE FIRST LINE */ - MyLdt = new Ligne (json['annotation-types'][0].id,json['annotation-types'][0]['dc:title'],json['annotation-types'][0]['dc:description'],json.medias[0]["meta"]["dc:duration"]); + // # CREATE THE FIRST LINE // + __IriSP.trace("__IriSP.init.main","__IriSP.Ligne"); + __IriSP.MyLdt = new __IriSP.Ligne ( + json['annotation-types'][0].id, + json['annotation-types'][0]['dc:title'], + json['annotation-types'][0]['dc:description'], + json.medias[0]['meta']['dc:duration']); + + // CREATE THE TAG CLOUD // + __IriSP.trace("__IriSP.init.main","__IriSP.Tags"); + __IriSP.MyTags = new __IriSP.Tags (json.tags); - /* CREATE THE TAG CLOUD */ - MyTags = new Tags (json.tags); + // CREATE THE ANNOTATIONS // + // JUSTE FOR THE FIRST TYPE // + __IriSP.jQuery.each(json.annotations, function(i,item) { + if (item.meta['id-ref'] == __IriSP.MyLdt.id) { + //__IriSP.trace("__IriSP.init.main","__IriSP.MyLdt.addAnnotation"); + __IriSP.MyLdt.addAnnotation( + item.id, + item.begin, + item.end, + item.media, + item.content.title, + item.content.description, + item.content.color, + item.tags); + } + //MyTags.addAnnotation(item); + }); + __IriSP.jQuery.each(json.lists, function(i,item) { + __IriSP.trace("lists",""); + }); + __IriSP.jQuery.each(json.views, function(i,item) { + __IriSP.trace("views",""); + }); + } + // END PARSING ----------------------- // - /* CREATE THE ANNOTATIONS */ - /* JUSTE FOR THE FIRST TYPE */ - $jIRI.each(json.annotations, function(i,item) { - if (item.meta['id-ref'] == MyLdt.id) { - MyLdt.addAnnotation( - item.id, - item.begin, - item.end, - item.media, - item.content.title, - item.content.description, - item.content.color, - item.tags); - } - MyTags.addAnnotation(item); - }); - $jIRI.each(json.lists, function(i,item) { - trace("lists",""); - }); - $jIRI.each(json.views, function(i,item) { - trace("views",""); - }); - /* END PARSING ----------------------- */ - } },error : function(data){ alert("ERROR : "+data); } }); - } - function callbackLdts(json){ - - alert("CALLBACK"); - - } - function trace (msg,value){ - $jIRI("
    "+msg+" : "+value+"
    ").appendTo("#output"); - } + + + }); + } - - - - - +}; -/* ---------------------------------------------------------------- - ---------------------------------------------------------------- - Class Media */ -/* - - "http://advene.liris.cnrs.fr/ns/frame_of_reference/ms":"o=0", - "id":"kia_closeup", - "url":"D:/Thibaut/Outils_techno/IRI-LignesDeTemps/media/video/kia_closeup_BQ.flv", - "dc:creator":"tcavalie", - "dc:created":"2010-05-04T00:00:00", - "dc:contributor":"tcavalie", - "dc:modified":"2010-05-04T00:00:00", - "dc:creator.contents":"Abbas Kiarostami", - "dc:created.contents":"1990", - "dc:title":"Close Up is a very very long title", - "dc:description":"Analyse de Close Up", - "dc:duration":"689266" - */ - function Media (id,url,duration,title,description){ - this.id = id; - this.url = url; - this.title = title; - this.description = description; - this.duration = duration; +__IriSP.createMyHtml = function(){ + var width = __IriSP.config.gui.width; + + // AUDIO */ + // PB dans le html : ; + __IriSP.jQuery( "
    \n"+ + "
    \n"+ + " Get flash to see this player \n"+ + "
    \n"+ + "
    \n"+ + "
    \n"+ + " \n"+ + " \n"+ + "
    \n"+ + "
    \n"+ + "
    \n"+ + "
    \n"+ + "
    \n"+ + " \n"+ + " \n"+ + "
    \n"+ + "
     \;
    \n"+ + "
    \n"+ + "
    \n"+ + "
    \n"+ + "
    \n"+ + "
    \n"+ + "
    \n"+ + "
    \n"+ + "
    \n"+ + "
    \n"+ + "
    \n"+ + "
    \n"+ + "
    \n"+ + "
    \n"+ + "
    \n"+ + "
    \n"+ + " \n"+ + " "+__IriSP.LdtShareTool+"\n"+ + " \n"+ + "
    \n"+ + "
    "+ + "
    "+ + //"
    Mots clefs :
    "+ + "
    "+ + "
    ").appendTo("#"+__IriSP.config.gui.container); + + __IriSP.trace("__IriSP.createHtml","end"); + + __IriSP.jQuery("#Ldt-Annotations").width(width-(75*2)); + __IriSP.jQuery("#Ldt-Show-Arrow-container").width(width-(75*2)); + __IriSP.jQuery("#Ldt-ShowAnnotation-audio").width(width-10); + __IriSP.jQuery("#Ldt-ShowAnnotation-video").width(width-10); + __IriSP.jQuery("#Ldt-SaKeyword").width(width-10); + __IriSP.jQuery("#Ldt-controler").width(width-10); + __IriSP.jQuery("#Ldt-Control").attr("z-index","100"); + __IriSP.jQuery("#Ldt-controler").hide(); + + __IriSP.jQuery("
     
    Chargement...
    ").appendTo("#Ldt-ShowAnnotation-audio"); + + if(__IriSP.config.gui.mode=='radio'){ + __IriSP.jQuery("#Ldt-load-container").attr("width",__IriSP.config.gui.width); + } + // Show or not the output + if(__IriSP.config.gui.debug===true){ + __IriSP.jQuery("#Ldt-output").show(); + } else { + __IriSP.jQuery("#Ldt-output").hide(); + } + +}; - this.lignes = new Array(); - this.updatePlayer = updatePlayerMedia; - this.getDuration = getMediaDuration; - this.createPlayer = createPlayerMedia; - - trace("Media ID :",id); - trace("Media URL :",this.url); - trace("- content : color",url); - trace("- content : audio",title); - } - function createPlayerMedia(width,height,MyStreamer,MySwfPath){ - LdtApiPlayer = new APIplayer(width,height,this.url,this.duration,MyStreamer,MySwfPath); +__IriSP.Media = function (id,url,duration,title,description){ + this.id = id; + this.url = url; + this.title = title; + this.description = description; + this.duration = duration; + this.lignes = new Array(); + + __IriSP.trace("__IriSP.Media","Media ID : "+id); + __IriSP.trace("__IriSP.Media","Media URL : "+url); + __IriSP.trace("__IriSP.Media","Media title : "+title); +} +__IriSP.Media.prototype.createPlayerMedia = function (width,height,MyStreamer,MySwfPath){ + __IriSP.MyApiPlayer = new __IriSP.APIplayer(width,height,this.url,this.duration,MyStreamer,MySwfPath); //createPlayer(width,height,this.url,this.duration,MyStreamer,MySwfPath); - } - function updatePlayerMedia(){ - - } - function getMediaDuration(){ +} +__IriSP.Media.prototype.getMediaDuration = function (){ return (this.duration); - } - function getMediaTitle(){ +} +__IriSP.Media.prototype.getMediaTitle = function (){ return (this.title); - } - - - - - - +} -/* ---------------------------------------------------------------- - ---------------------------------------------------------------- - INTERFACE : SLIDER ( CONTROL BAR ) | BUTTON () */ - function createInterface (width,height,duration){ - - //$jIRI("#Ldt-Root").css('display','visible'); - trace("CREATE INTERFACE ",width+","+height+","+duration+","); +/* INTERFACE : SLIDER ( CONTROL BAR ) | BUTTON () */ +__IriSP.createInterface = function(width,height,duration){ + + __IriSP.jQuery("#Ldt-controler").show(); + //__IriSP.jQuery("#Ldt-Root").css('display','visible'); + __IriSP.trace("__IriSP.createInterface",width+","+height+","+duration+","); - $jIRI(function() { - $jIRI("#Ldt-Annotations").width(width-(75*2)); - $jIRI("#Ldt-Show-Arrow-container").width(width-(75*2)); - //$jIRI("#Ldt-Show-Arrow-container").width(width-(75*2)); - $jIRI("#Ldt-ShowAnnotation-audio").width(width-10); - $jIRI("#Ldt-ShowAnnotation-video").width(width-10); - $jIRI("#Ldt-SaKeyword").width(width-10); - $jIRI("#Ldt-controler").width(width-10); - $jIRI("#Ldt-Control").attr("z-index","100"); - - $jIRI("#Ldt-ShowAnnotation").click(function () { - //$jIRI(this).slideUp(); - }); + __IriSP.jQuery("#Ldt-ShowAnnotation").click(function () { + //__IriSP.jQuery(this).slideUp(); + }); - var LdtpPlayerY = $jIRI("#Ldt-PlaceHolder").attr("top"); - var LdtpPlayerX = $jIRI("#Ldt-PlaceHolder").attr("left"); - - $jIRI("#slider-range-min").slider({ //range: "min", - value: 0, - min: 1, - max: duration/1000,//1:54:52.66 = 3600+3240+ - step: 0.1, - slide: function(event, ui) { - - //$jIRI("#amount").val(ui.value+" s"); - //player.sendEvent('SEEK', ui.value) - LdtApiPlayer.seek(ui.value); - //changePageUrlOffset(ui.value); - //player.sendEvent('PAUSE') - } - }); - $jIRI("#amount").val($jIRI("#slider-range-min").slider("value")+" s"); - - $jIRI(".Ldt-Control1 button:first").button({ - icons: { - primary: 'ui-icon-play' - }, - text: false - }).next().button({ - icons: { - primary: 'ui-icon-seek-next' - }, - text: false - }); - - $jIRI(".Ldt-Control2 button:first").button({ - icons: { - primary: 'ui-icon-transferthick-e-w'//, - //secondary: 'ui-icon-volume-off' - }, - text: false - }).next().button({ - icons: { - primary: 'ui-icon-volume-on' - }, - text: false - }); + var LdtpPlayerY = __IriSP.jQuery("#Ldt-PlaceHolder").attr("top"); + var LdtpPlayerX = __IriSP.jQuery("#Ldt-PlaceHolder").attr("left"); + __IriSP.jQuery("#slider-range-min").slider({ //range: "min", + value: 0, + min: 1, + max: duration/1000,//1:54:52.66 = 3600+3240+ + step: 0.1, + slide: function(event, ui) { + + //__IriSP.jQuery("#amount").val(ui.value+" s"); + //player.sendEvent('SEEK', ui.value) + __IriSP.MyApiPlayer.seek(ui.value); + //changePageUrlOffset(ui.value); + //player.sendEvent('PAUSE') + } + }); + __IriSP.trace("__IriSP.createInterface","ICI"); + __IriSP.jQuery("#amount").val(__IriSP.jQuery("#slider-range-min").slider("value")+" s"); + __IriSP.jQuery(".Ldt-Control1 button:first").button({ + icons: { + primary: 'ui-icon-play' + }, + text: false + }).next().button({ + icons: { + primary: 'ui-icon-seek-next' + }, + text: false + }); + __IriSP.jQuery(".Ldt-Control2 button:first").button({ + icons: { + primary: 'ui-icon-transferthick-e-w'//, + //secondary: 'ui-icon-volume-off' + }, + text: false + }).next().button({ + icons: { + primary: 'ui-icon-volume-on' + }, + text: false + }); + + // /!\ PB A MODIFIER + //__IriSP.MyTags.draw(); + __IriSP.trace("__IriSP.createInterface","ICI2"); + __IriSP.jQuery("#ldt-CtrlPlay").attr("style","background-color:#CD21C24;"); - // version radio - //$jIRI("#Ldtplayer1").css('display','none'); - //$jIRI("#Ldt-Root").show(); - MyTags.draw(); - }); + __IriSP.jQuery("#Ldt-load-container").hide(); + + if(__IriSP.config.gui.mode=="radio" & __IriSP.jQuery.browser.msie!=true){ + __IriSP.jQuery("#Ldtplayer1").attr("height","0"); + } + __IriSP.trace("__IriSP.createInterface","3"); + + __IriSP.trace("__IriSP.createInterface","END"); + } - - -/* ---------------------------------------------------------------- - ---------------------------------------------------------------- - UTIL */ - -// code from http://stackoverflow.com/questions/822452/strip-html-from-text-javascript - function stripHtml(s) - { - return s.replace(/\\&/g, '&').replace(/\\/g, '>').replace(/\\t/g, '   ').replace(/\\n/g, '
    ').replace(/'/g, ''').replace(/"/g, '"'); - } - -/* Conversion de couleur Decimal vers HexaDecimal || 000 si fff */ - function DEC_HEXA_COLOR(dec) - { - var hexa='0123456789ABCDEF',hex='' - while (dec>15) - { - tmp = dec-(Math.floor(dec/16))*16; - hex = hexa.charAt(tmp)+hex; - dec = Math.floor(dec/16); - } - hex = hexa.charAt(dec)+hex; - if (hex == "FFCC00"){ hex="";/* by default color of Ldt annotation */ } - return(hex); - } - - - - - - - - -/* ---------------------------------------------------------------- - ---------------------------------------------------------------- - API player - work in progress */ - function APIplayer (width,height,url,duration,streamerPath,MySwfPath){ +/* API player - work in progress ... need refactoring of code */ +__IriSP.APIplayer = function (width,height,url,duration,streamerPath,MySwfPath){ + this.player = null; this.hashchangeUpdate = null; @@ -343,512 +470,449 @@ this.streamerPath = streamerPath; this.MySwfPath = MySwfPath; - this.pause = APIpPause; - this.ready = APIpReady; - this.play = APIpPlay; - this.seek = APIpSeek; - this.update = APIpUpdate; - this.mute = APIpMute; - this.share = APIpShare; - MyApiPlayer = this; + __IriSP.MyApiPlayer = this; + + __IriSP.createPlayer(width,height,this.url,this.duration,this.streamerPath,this.MySwfPath); + __IriSP.trace("__IriSP.APIplayer","__IriSP.createPlayer"); - createPlayer(width,height,this.url,this.duration,this.streamerPath,this.MySwfPath); - +} +__IriSP.APIplayer.prototype.ready = function(player){ + + //__IriSP.trace("__IriSP.APIplayer.prototype.APIpReady"," __IriSP.createInterface"); + __IriSP.createInterface(this.width,this.height,this.duration); + __IriSP.trace("__IriSP.APIplayer.prototype.APIpReady","END __IriSP.createInterface"); + + + // hashchange EVENT + if (window.addEventListener){ + + // pour FIREFOX hashchange EVENT + window.addEventListener("hashchange", function() { + var url = window.location.href; + var time = __IriSP.retrieveTimeFragment(url); + __IriSP.trace("__IriSP.APIplayer.prototype.ready",time); + if(__IriSP.MyApiPlayer.hashchangeUpdate==null){ + __IriSP.MyApiPlayer.seek(time); + }else{ + __IriSP.MyApiPlayer.hashchangeUpdate=null; + } + }, false); + + } + else if (window.attachEvent){ + // FOR IE hashchange EVENT + + window.attachEvent("onhashchange", function() { + __IriSP.trace("hashchange",time); + var url = window.location.href; + var time = __IriSP.retrieveTimeFragment(url); + if(__IriSP.MyApiPlayer.hashchangeUpdate==null){ + __IriSP.MyApiPlayer.seek(time); + }else{ + __IriSP.MyApiPlayer.hashchangeUpdate=null; + } + }, false); } - function APIpCreate(){ - - } - function APIpReady(player){ - //alert("ready"); - createInterface(this.width,this.height,this.duration); - this.player = player; - - // hashchange EVENT - if (window.addEventListener){ - // pour FIREFOX hashchange EVENT - window.addEventListener("hashchange", function() { - var url = location.href; - var time = retrieveTimeFragment(url); - trace("hashchange",time); - if(LdtApiPlayer.hashchangeUpdate==null){ - LdtApiPlayer.seek(time); - }else{ - LdtApiPlayer.hashchangeUpdate=null; - } - }, false); - - } - else if (window.attachEvent){ - // FOR IE hashchange EVENT - window.attachEvent("onhashchange", function() { - trace("hashchange",time); - var url = location.href; - var time = retrieveTimeFragment(url); - if(LdtApiPlayer.hashchangeUpdate==null){ - LdtApiPlayer.seek(time); - }else{ - LdtApiPlayer.hashchangeUpdate=null; - } - }, false); - } - - } - function APIpPause(){ - this.hashchangeUpdate = true; - this.player.sendEvent('PAUSE'); - } - function APIpPlay(){ - this.hashchangeUpdate = true; - this.player.sendEvent('PLAY'); - } - function APIpMute(){ - this.player.sendEvent('MUTE'); - } - function APIpShare(network){ - - MyMessage = "Je regarde :"; - MyURLNow = window.location.href; - //alert(network+" : "+MyURLNow); - - if(network == "facebook"){ - - //window.title = - - shareURL = "http://www.facebook.com/share.php?u="; - //http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.addthis.com%2F%3Fsms_ss%3Dfacebook - - }else if(network == "twitter"){ - - shareURL = "http://twitter.com/home?status="+MyMessage; - - }else if(network == "myspace"){ - shareURL ="http://www.myspace.com/Modules/PostTo/Pages/?u="; - - }else if(network == "delicious"){ - shareURL = "http://delicious.com/save?url="; - - }else if(network == "JamesPot"){ - alert(network+" non actif pour l'instant : "+MyURLNow); - - } - - window.location.href = shareURL+encodeURIComponent(MyURLNow); - } - function APIpSeek(time){ - this.player.sendEvent('SEEK', time); - changePageUrlOffset(time); - } - function APIpUpdate(time){ - this.hashchangeUpdate = true; - this.player.sendEvent('SEEK', time); - } - function changePageUrlOffset(time) { - trace("changeURL",time); - // update page url - location.hash = "#t=" + time; - //document.displayurl.offseturl.value = location.href; - window.location.href = location.href; - } +} +__IriSP.APIplayer.prototype.pause = function(){ + this.hashchangeUpdate = true; + __IriSP.player.sendEvent('PAUSE'); +} +__IriSP.APIplayer.prototype.play = function(){ + this.hashchangeUpdate = true; + __IriSP.player.sendEvent('PLAY'); +} +__IriSP.APIplayer.prototype.mute = function(){ + __IriSP.player.sendEvent('MUTE'); +} +__IriSP.APIplayer.prototype.share = function(network){ - + var MyMessage = "Je regarde :"; + var MyURLNow = window.location.href; + var shareURL; + //alert(network+" : "+MyURLNow); -/* ---------------------------------------------------------------- - ---------------------------------------------------------------- - CREER JW PLAYER creation + listener */ - - var currentPosition = 0; - var currentVolume = 50; - var player = null; - var startPosition = null; - - function playerReady(thePlayer) { - - player = window.document[thePlayer.id]; - LdtApiPlayer.ready(player); - trace("PLAYER READY ",""); - var url = location.href; - var time = retrieveTimeFragment(url); - trace("PLAYER READY SEEK IF NEEDED",time); - startPosition = time; - addListeners(); + if(network == "facebook"){ + shareURL = "http://www.facebook.com/share.php?u="; + }else if(network == "twitter"){ + shareURL = "http://twitter.com/home?status="+MyMessage; + }else if(network == "myspace"){ + shareURL ="http://www.myspace.com/Modules/PostTo/Pages/?u="; + }else if(network == "delicious"){ + shareURL = "http://delicious.com/save?url="; + }else if(network == "JameSpot"){ + shareURL = "http://www.jamespot.com/?action=spotit&u="; + //alert(network+" non actif pour l'instant : "+MyURLNow); } - function addListeners() { - if (player) { - player.addModelListener("TIME", "positionListener"); - player.addControllerListener("VOLUME", "volumeListener"); - player.addModelListener('STATE', 'stateMonitor'); - //http://developer.longtailvideo.com/trac/wiki/Player5Events - } else { - setTimeout("addListeners()",100); - } - - // et changer les boutons - } - function stateMonitor(obj) { - if(obj.newstate == 'PAUSED') - { - trace("PAUSE : ",""); - changePageUrlOffset(currentPosition); - - } else if (obj.newstate == 'PLAYING'){ - // une fois la video prete a lire la déplacer au bon timecode - if(startPosition!=null){ - LdtApiPlayer.update(startPosition); - startPosition = null; - } - } else if (obj.newstate == 'BUFFERING'){ - trace("BUFFERING : ",""); - //changePageUrlOffset(currentPosition); + window.location.href = shareURL+encodeURIComponent(MyURLNow); +} +__IriSP.APIplayer.prototype.seek = function (time){ + __IriSP.player.sendEvent('SEEK', time); + this.changePageUrlOffset(time); +} +__IriSP.APIplayer.prototype.update = function (time){ + this.hashchangeUpdate = true; + __IriSP.player.sendEvent('SEEK', time); +} +__IriSP.APIplayer.prototype.changePageUrlOffset = function (time) { + //alert(time); + __IriSP.trace("__IriSP.APIplayer.prototype.changePageUrlOffset","CHANGE URL "+time); + window.location.hash = "#t=" + time; + window.location.href = window.location.href; +} + +/* MEDIA FRAGMENT FUNCTION */ + +__IriSP.jumpToTimeoffset = function (form) { + var time = form.time.value; + __IriSP.MyApiPlayer.changePageUrlOffset(time); +} +__IriSP.retrieveTimeFragment = function (url) { + var pageoffset = 0; + var offsettime = 0; + + if (url.split("#")[1] != null) { + pageoffset = url.split("#")[1]; + if (pageoffset.substring(2) != null) { + offsettime = pageoffset.substring(2); } - - } - function positionListener(obj) { - currentPosition = obj.position; - var tmp = document.getElementById("posit"); - if (tmp) { tmp.innerHTML = "position: " + currentPosition; } - $jIRI("#slider-range-min").slider("value", obj.position); - $jIRI("#amount").val(obj.position+" s"); - // afficher annotation - MyLdt.checkTime(currentPosition); } - function volumeListener(obj) { - currentVolume = obj.percentage; - var tmp = document.getElementById("vol"); - if (tmp) { tmp.innerHTML = "volume: " + currentVolume; } - } - function createPlayer(width,height,url,duration,streamerPath,MySwfPath) { - - myUrlFragment = url.split(streamerPath); - file = myUrlFragment[1]; - streamer = streamerPath; - - var flashvars = { - streamer:streamer, - file:file, - //live:"true", - autostart:"true", - controlbar:"none" - } - - var params = { - allowfullscreen:"true", - allowscriptaccess:"always", - wmode:"transparent" - } - - var attributes = { - id:"Ldtplayer1", - name:"Ldtplayer1" - } - - swfobject.embedSWF(MySwfPath, "Ldt-PlaceHolder", width, height, "9.0.115", false, flashvars, params, attributes); - } + return offsettime; +} +__IriSP.ignoreTimeFragment = function(url){ + if (url.split("#")[1] != null) { + var pageurl= url.split("#")[0]; + } + return pageurl; +} - - - +/* CODE SPECIAL JW PLAYER creation + listener */ -/* ---------------------------------------------------------------- - ---------------------------------------------------------------- - MEDIA FRAGMENT FUNCTION*/ +__IriSP.currentPosition = 0; +__IriSP.currentVolume = 50; +__IriSP.player = null; +__IriSP.startPosition = null; + +__IriSP.createPlayer = function (width,height,url,duration,streamerPath,MySwfPath) { - // when the hash on the window changes, also do an offset - // jump to time offset action - function jumpToTimeoffset(form) { - var time = form.time.value; - changePageUrlOffset(time); - } - // parse the time hash out of the given url - function retrieveTimeFragment(url) { - var pageoffset = 0; - var offsettime = 0; - - if (url.split("#")[1] != null) { - pageoffset = url.split("#")[1]; - if (pageoffset.substring(2) != null) { - offsettime = pageoffset.substring(2); - } - } - return offsettime; - } - function ignoreTimeFragment(url){ - if (url.split("#")[1] != null) { - pageurl= url.split("#")[0]; - } - return pageurl; + __IriSP.trace("__IriSP.createPlayer","start"); + + __IriSP.myUrlFragment = url.split(streamerPath); + var file = __IriSP.myUrlFragment[1]; + var streamer = streamerPath; + + var flashvars = { + streamer:streamer, + file:file, + live:"true", + autostart:"true", + controlbar:"none", + playerready:"__IriSP.playerReady" + } + + var params = { + allowfullscreen:"true", + allowscriptaccess:"always", + wmode:"transparent" } + var attributes = { + id:"Ldtplayer1", + name:"Ldtplayer1" + } + + __IriSP.trace("__IriSP.createPlayer","SWFOBJECT src:"+__IriSP.config.player.src+" " +width+" "+height); + swfobject.embedSWF(__IriSP.config.player.src, "Ldt-PlaceHolder", width, height, "9.0.115", false, flashvars, params, attributes); + + // need a methode to + // re execute if this swf call does'nt work +} +__IriSP.playerReady = function (thePlayer) { + + //__IriSP.trace("__IriSP.playerReady","PLAYER READY !!!!!!!!!!!!"); + __IriSP.player = window.document[thePlayer.id]; + //__IriSP.trace("__IriSP.playerReady","API CALL "+__IriSP.player); + __IriSP.MyApiPlayer.ready(__IriSP.player); + //__IriSP.trace("__IriSP.playerReady","API CALL END "); + + var url = document.location.href; + var time = __IriSP.retrieveTimeFragment(url); + //__IriSP.trace("__IriSP.playerReady"," "+url+" "+time ); + __IriSP.startPosition = time; + //__IriSP.trace("__IriSP.playerReady"," LISTENER LAUCHER"); + __IriSP.addListeners(); + //__IriSP.trace("__IriSP.playerReady"," LISTENER END"); + +} +__IriSP.addListeners = function () { + if (__IriSP.player) { + __IriSP.trace("__IriSP.addListeners","ADD Listener "); + __IriSP.player.addModelListener("TIME", "__IriSP.positionListener"); + __IriSP.player.addControllerListener("VOLUME", "__IriSP.volumeListener"); + __IriSP.player.addModelListener('STATE', '__IriSP.stateMonitor'); + } else { + __IriSP.setTimeout("addListeners()",100); + } + + // et changer les boutons +} +__IriSP.stateMonitor = function (obj) { + + if(obj.newstate == 'PAUSED') + { + __IriSP.trace("__IriSP.stateMonitor","PAUSE"); + __IriSP.MyApiPlayer.changePageUrlOffset(__IriSP.currentPosition); + + } else if (obj.newstate == 'PLAYING'){ + // une fois la video prete a lire la déplacer au bon timecode + if(__IriSP.startPosition!=null){ + __IriSP.MyApiPlayer.update(__IriSP.startPosition); + __IriSP.startPosition = null; + } + } else if (obj.newstate == 'BUFFERING'){ + __IriSP.trace("__IriSP.stateMonitor","BUFFERING : "); + //changePageUrlOffset(currentPosition); + } + +} +__IriSP.positionListener = function(obj) { + //__IriSP.trace("__IriSP.positionListener",obj.position); + __IriSP.currentPosition = obj.position; + var tmp = document.getElementById("posit"); + if (tmp) { tmp.innerHTML = "position: " + __IriSP.currentPosition; } + __IriSP.jQuery("#slider-range-min").slider("value", obj.position); + __IriSP.jQuery("#amount").val(obj.position+" s"); + // afficher annotation + __IriSP.MyLdt.checkTime(__IriSP.currentPosition); +} +__IriSP.volumeListener = function (obj) { + __IriSP.currentVolume = obj.percentage; + var tmp = document.getElementById("vol"); + if (tmp) { tmp.innerHTML = "volume: " + __IriSP.currentVolume; } +} -/* ---------------------------------------------------------------- - ---------------------------------------------------------------- - Class Ligne (annotationType) */ -/* - "id":"dp_1", - "dc:creator":"tcavalie", - "dc:created":"2010-04-04T19:09:44", - "dc:contributor":"perso", - "dc:modified":"15/2/2008", - "dc:title":"dqsdkljfh qklsdhf very very very long", - "dc:description":"sdfg sdfg sdfg sdfg" - */ - - var LDTligne = null; - function Ligne (){ - this.id = id; - this.title = title; - this.description = description; - this.annotations = new Array(); - this.annotationOldRead = ""; - this.addAnnotation = addAnnotationligne; - this.clickAnnotation= onClickLigneAnnotation; - this.checkTime = checkTimeLigne; - this.nextAnnotation = onClickNextAnnotation; - } - function Ligne (id,title,description,duration){ - this.id = id; - this.title = title; - this.description = description; - // - this.annotations = new Array(); - this.addAnnotation = addLigneAnnotation; - this.checkTime = checkTimeLigne; - this.nextAnnotation = onClickNextAnnotation; - this.numAnnotation = numAnnotationTimeLine; - this.duration = duration; - LDTligne = this; - trace("LIGNE ","créer "+LDTligne); - } - function addLigneAnnotation(id,begin,end,media,title,description,color,tags){ - var myAnnotation = new Annotation(id,begin,end,media,title,description,color,tags,this.duration); - this.annotations.push(myAnnotation); - trace("LIGNE ","add annotation "); - } - function onClickLigneAnnotation(id){ - //changePageUrlOffset(currentPosition); - //player.sendEvent('SEEK', this.start); - //trace("SEEK",this.start); - } - function searchLigneAnnotation(id){ - /*for (){ - }*/ - } - function listAnnotations (){ - - } - function onClickNextAnnotation(){ - var annotationCibleNumber = this.numAnnotation(this.annotationOldRead)+1; - var annotationCible = this.annotations[annotationCibleNumber]; - - if(annotationCibleNumberthis.annotations[i].begin/1000 && time 1.4 - //$jIRI("#Ldt-SaTitle").delay(100).text(annotationTempo.title); - //$jIRI("#Ldt-SaDescription").delay(100).text(annotationTempo.description); - //$jIRI('#Ldt-ShowAnnotation').delay(100).slideDown(); - - $jIRI("#Ldt-SaTitle").text(annotationTempo.title); - $jIRI("#Ldt-SaDescription").text(annotationTempo.description); - - $jIRI("#Ldt-SaDescription").text(annotationTempo.description); - $jIRI("#Ldt-SaKeywordText").html(annotationTempo.htmlTags); - - $jIRI('#Ldt-ShowAnnotation').slideDown(); - - - startPourcent = timeToPourcent((annotationTempo.begin*1+(annotationTempo.end-annotationTempo.begin)/2),annotationTempo.duration); - - $jIRI("#Ldt-Show-Arrow").css('left',startPourcent+'%'); - //alert(moyennePosition); - var tempolinkurl = ignoreTimeFragment(window.location.href)+"#t="+(this.annotations[i].begin/1000); - } - break; - } - - } - // si il y en a pas : retractation du volet - if( annotationTempo == -1){ - if(annotationTempo!=this.annotationOldRead){ - trace("Check : ","pas d'annotation ici "); - $jIRI('#Ldt-ShowAnnotation').slideUp(); - this.annotationOldRead = annotationTempo; - } - } - - } - - - - +/* UTIL */ +// code from http://stackoverflow.com/questions/822452/strip-html-from-text-javascript +__IriSP.stripHtml = function(s){ + return s.replace(/\\&/g, '&').replace(/\\/g, '>').replace(/\\t/g, '   ').replace(/\\n/g, '
    ').replace(/'/g, ''').replace(/"/g, '"'); +} +// conversion de couleur Decimal vers HexaDecimal || 000 si fff +__IriSP.DEC_HEXA_COLOR = function (dec){ + var hexa='0123456789ABCDEF',hex=''; + var tmp; + while (dec>15){ + tmp = dec-(Math.floor(dec/16))*16; + hex = hexa.charAt(tmp)+hex; + dec = Math.floor(dec/16); + } + hex = hexa.charAt(dec)+hex; + if (hex == "FFCC00"){ hex="";/* by default color of Ldt annotation */ } + return(hex); +} -/* ---------------------------------------------------------------- - ---------------------------------------------------------------- - CLASSE Annotation */ -/* +/* CLASS Ligne (annotationType) */ - "begin":"767", - "end":"785", - "id":"dp_1_sp_3", - "media":"kia_closeup", - "content": { - "mimetype":"application/x-ldt-structured", - "title":"mon titre", - "description":"ma description en <b>gras</b> .", - "color":"16763904", - "audio":{"src":"","mimetype":"audio/mp3","href":""} - }, - "meta": - { - "id-ref":"dp_1", - "dc:creator":"tcavalie", - "dc:created":"2010-04-04T19:09:44", - "dc:contributor":"perso", - "dc:modified":"9/10/2007" - } - */ +__IriSP.LDTligne = null; +__IriSP.Ligne = function (id,title,description,duration){ + this.id = id; + this.title = title; + this.description = description; + // + this.annotations = new Array(); + this.duration = duration; + __IriSP.LDTligne = this; + __IriSP.trace("__IriSP.Ligne","CREATE "+__IriSP.LDTligne); +} +__IriSP.Ligne.prototype.addAnnotation = function (id,begin,end,media,title,description,color,tags){ + var myAnnotation = new __IriSP.Annotation(id,begin,end,media,title,description,color,tags,this.duration); + this.annotations.push(myAnnotation); + //__IriSP.trace("__IriSP.Ligne.prototype.addAnnotation ","add annotation "+title); +} +__IriSP.Ligne.prototype.onClickLigneAnnotation = function(id){ + //changePageUrlOffset(currentPosition); + //player.sendEvent('SEEK', this.start); + //__IriSP.trace("SEEK",this.start); +} +__IriSP.Ligne.prototype.searchLigneAnnotation = function(id){ + /*for (){ + }*/ +} +__IriSP.Ligne.prototype.listAnnotations = function(){ + +} +__IriSP.Ligne.prototype.nextAnnotation = function (){ + var annotationCibleNumber = this.numAnnotation(this.annotationOldRead)+1; + var annotationCible = this.annotations[annotationCibleNumber]; + + if(annotationCibleNumber
    "; - //alert(this.color+" : "+DEC_HEXA_COLOR(this.color)); +} +__IriSP.Ligne.prototype.numAnnotation = function (annotationCible){ + for (var i=0; i < this.annotations.length; ++i){ + if(annotationCible == this.annotations[i]){ + return i; + } + } +} +__IriSP.Ligne.prototype.checkTime = function(time){ + var annotationTempo = -1; + //__IriSP.trace("__IriSP.Ligne.prototype.checkTimeLigne",time); + + for (var i=0; i < this.annotations.length; ++i){ + var annotationTempo = this.annotations[i]; + if (time>annotationTempo.begin/1000 && time 1.4 + //__IriSP.jQuery("#Ldt-SaTitle").delay(100).text(annotationTempo.title); + //__IriSP.jQuery("#Ldt-SaDescription").delay(100).text(annotationTempo.description); + //__IriSP.jQuery('#Ldt-ShowAnnotation').delay(100).slideDown(); + //__IriSP.trace("__IriSP.Ligne.prototype.checkTimeLigne",annotationTempo.title+" "+annotationTempo.description ); + __IriSP.jQuery("#Ldt-SaTitle").text(annotationTempo.title); + __IriSP.jQuery("#Ldt-SaDescription").text(annotationTempo.description); + + __IriSP.jQuery("#Ldt-SaDescription").text(annotationTempo.description); + __IriSP.jQuery("#Ldt-SaKeywordText").html("Mots clefs : "+annotationTempo.htmlTags); + + //__IriSP.jQuery('#Ldt-ShowAnnotation').slideDown(); + var startPourcent = annotationTempo.timeToPourcent((annotationTempo.begin*1+(annotationTempo.end*1-annotationTempo.begin*1)/2),annotationTempo.duration*1); + __IriSP.jQuery("#Ldt-Show-Arrow").animate({left:startPourcent+'%'},1000); + //alert(startPourcent); + var tempolinkurl = __IriSP.ignoreTimeFragment(window.location.href)+"#t="+(this.annotations[i].begin/1000); + } + break; + } - $toolTipTemplate = "
    " - +"
    "+stripHtml(this.title)+"
    " - +"
    "+this.begin+" : "+this.end+"
    " - +"
    "+stripHtml(this.description)+"
    " - +"
    "; - - - $jIRI("
    "+$AnnotationTemplate+"
    ").appendTo("#Ldt-Annotations"); - $jIRI("#"+this.id).tooltip({ effect: 'slide'}); - - - $jIRI("#"+this.id).fadeTo(0,0.3); - $jIRI("#"+this.id).mouseover(function() { - $jIRI("#"+this.id).animate({opacity: 0.6}, 5) - }).mouseout(function(){ - $jIRI("#"+this.id).animate({opacity: 0.3}, 5) - }); - //trace(" ### ","ADD ANOTATION : "+this.begin+" "+this.end+" "+stripHtml(this.title)+" | "+startPourcent+" | "+endPourcent+" | duration = "+this.duration); - - } - - function drawTagsAnnotation(){ - KeywordPattern = ' '+' '; - - //trace(" !? Tags : ",this.tags); - - if (this.tags!=undefined){ - for (var i = 0; i < this.tags.length; ++i){ - - //this.htmlTags += ' '+MyTags.getTitle(this.tags[i]['id-ref'])+' '+" , "; - this.htmlTags += ' '+MyTags.getTitle(this.tags[i]['id-ref'])+' '+" , "; - - } + } + // si il y en a pas : retractation du volet + if( annotationTempo == -1){ + if(annotationTempo!=this.annotationOldRead){ + __IriSP.trace("Check : ","pas d'annotation ici "); + __IriSP.jQuery('#Ldt-ShowAnnotation').slideUp(); + this.annotationOldRead = annotationTempo; } } - function tootTipAnnotation() { - // 1 chercher le div correspondant - // 2 y mettre les information - return this.color + ' ' + this.type + ' apple'; - } - function onRollOverAnnotation(){ - this.tootTip(); - } - function timeToPourcent(time,timetotal){ - return (parseInt(Math.round(time/timetotal*100))); - } +} - +/* CLASS Annotation */ -/* ---------------------------------------------------------------- - ---------------------------------------------------------------- - CLASSE Tags */ -function Tags (object){ +__IriSP.Annotation = function (){ + var id = null; + var begin = null; + var end = null; + var media = null; + var description = null; + var title = null; + var color = null; + var tags = null; + __IriSP.trace("annotation ","réussi") +} +__IriSP.Annotation = function(id,begin,end,media,title,description,color,tags,duration){ + this.id = id; + this.begin = begin; + this.end = end; + this.media = media; + this.description = description; + this.title = title; + this.color = color; + this.tags = tags; + this.htmlTags = ""; + this.duration = duration; + // draw it + this.draw(); + this.drawTags(); + // + __IriSP.trace("Annotation created : ",id); +} +__IriSP.Annotation.prototype.draw = function(){ + //alert (this.duration); + var startPourcent = this.timeToPourcent(this.begin,this.duration); // temps du media + var endPourcent = this.timeToPourcent(this.end,this.duration)-startPourcent; + var titleForDiv = this.title.substr(0,55); + + __IriSP.jQueryAnnotationTemplate = "
    "; + //alert(this.color+" : "+DEC_HEXA_COLOR(this.color)); + + __IriSP.jQuerytoolTipTemplate = "
    " + +"
    "+__IriSP.stripHtml(this.title)+"
    " + +"
    "+this.begin+" : "+this.end+"
    " + +"
    "+__IriSP.stripHtml(this.description)+"
    " + +"
    "; + + + __IriSP.jQuery("
    "+__IriSP.jQueryAnnotationTemplate+"
    ").appendTo("#Ldt-Annotations"); + // TOOLTIP BUG ! + + __IriSP.jQuery("#"+this.id).tooltip({ effect: 'slide'}); + + + __IriSP.jQuery("#"+this.id).fadeTo(0,0.3); + __IriSP.jQuery("#"+this.id).mouseover(function() { + __IriSP.jQuery("#"+this.id).animate({opacity: 0.6}, 5) + }).mouseout(function(){ + __IriSP.jQuery("#"+this.id).animate({opacity: 0.3}, 5) + }); + __IriSP.trace("__IriSP.Annotation.prototype.draw","ADD ANOTATION : "+this.begin+" "+this.end+" "+__IriSP.stripHtml(this.title)+" | "+startPourcent+" | "+endPourcent+" | duration = "+this.duration); + +} +__IriSP.Annotation.prototype.drawTags = function(){ + var KeywordPattern = ' '+' '; + + //__IriSP.trace(" !? Tags : ",this.tags); + + if (this.tags!=undefined){ + for (var i = 0; i < this.tags.length; ++i){ + + //this.htmlTags += ' '+MyTags.getTitle(this.tags[i]['id-ref'])+' '+" , "; + this.htmlTags += ' '+__IriSP.MyTags.getTitle(this.tags[i]['id-ref'])+' '+" , "; + + } + } +} +__IriSP.Annotation.prototype.tootTipAnnotation = function() { + // 1 chercher le div correspondant + // 2 y mettre les information + return this.color + ' ' + this.type + ' apple'; +} +__IriSP.Annotation.prototype.onRollOverAnnotation = function (){ + this.tootTip(); +} +__IriSP.Annotation.prototype.timeToPourcent = function(time,timetotal){ + return (parseInt(Math.round(time/timetotal*100))); +} + + +/* CLASS Tags */ + +__IriSP.Tags = function(object){ this.myTags = object; this.htmlTags = null; this.weigthMax = 0; //this.mySegments = new array(); } -Tags.prototype.addAnnotation = function (annotation){ +__IriSP.Tags.prototype.addAnnotation = function (annotation){ for (var i = 0; i < this.myTags.length; ++i){ this.myTags[i].mySegments = new Array(); if (annotation.tags!=null){ @@ -857,7 +921,7 @@ this.myTags[i].mySegments.push([annotation.begin,annotation.end,annotation.id]); var weigthTempo = this.myTags[i].mySegments.length var tempo = this.myTags[i].mySegments[weigthTempo-1]; - trace (" ADD Tags : "," "+this.myTags[i]['meta']['dc:title']+" "+this.myTags[i]['id']+" : "+tempo[0]+" - "+tempo[1]); + //__IriSP.trace ("__IriSP.Tags.prototype.addAnnotation "," "+this.myTags[i]['meta']['dc:title']+" "+this.myTags[i]['id']+" : "+tempo[0]+" - "+tempo[1]); if (this.weigthMax < weigthTempo ){ this.weigthMax = weigthTempo; @@ -867,7 +931,7 @@ } } } -Tags.prototype.getTitle = function (id){ +__IriSP.Tags.prototype.getTitle = function (id){ for (var i = 0; i < this.myTags.length; ++i){ if(this.myTags[i]['id']==id){ return(this.myTags[i]['meta']['dc:title']); @@ -875,11 +939,11 @@ } } -Tags.prototype.draw = function (){ +__IriSP.Tags.prototype.draw = function (){ - trace("########### TAG DRAW "," WELL START " ); + __IriSP.trace("__IriSP.Tags.prototype.draw"," !!! WELL START " ); for (var i = 0; i < this.myTags.length; ++i){ - //trace(" ADD Tags : ",this.myTags[i]['id']); + __IriSP.trace("__IriSP.Tags.prototype.draw"," ADD Tags : "+this.myTags[i]['id']); if(this.myTags[i]['id']!=null){ this.htmlTags += ' this.myTags[i].mySegments[j][0]){ @@ -929,28 +996,32 @@ // // ------------------------------------------------- - leftPourCent = timeToPourcent((timeStartOffsetA*1+(timeStartOffsetB-timeStartOffsetA)/2),MyLdt.duration); - WidthPourCent = timeToPourcent((timeEndOffsetA*1+(timeEndOffsetB-timeEndOffsetA)/2),MyLdt.duration)-startPourcent; - $jIRI("#Ldt-Show-Tags").css('left',leftPourCent+'%'); - $jIRI("#Ldt-Show-Tags").css('width',WidthPourCent+'%'); + leftPourCent = __IriSP.timeToPourcent((timeStartOffsetA*1+(timeStartOffsetB-timeStartOffsetA)/2),__IriSP.MyLdt.duration); + WidthPourCent = __IriSP.timeToPourcent((timeEndOffsetA*1+(timeEndOffsetB-timeEndOffsetA)/2),__IriSP.MyLdt.duration)-leftPourCent; + //WidthPourCent = timeToPourcent((timeEndOffsetA*1+(timeEndOffsetB-timeEndOffsetA)/2),MyLdt.duration)-startPourcent; + __IriSP.jQuery("#Ldt-Show-Tags").css('left',leftPourCent+'%'); + __IriSP.jQuery("#Ldt-Show-Tags").css('width',WidthPourCent+'%'); // like arrow script } + +/* CLASS TRACE */ - -/* ---------------------------------------------------------------- - ---------------------------------------------------------------- - Class tracess */ +__IriSP.traceNum=0; +__IriSP.trace = function(msg,value){ + + if(__IriSP.config.gui.debug===true){ + __IriSP.traceNum += 1; + __IriSP.jQuery("
    "+__IriSP.traceNum+" - "+msg+" : "+value+"
    ").appendTo("#Ldt-output"); + } + +} - function Tracer (){ - - } - function addTrace(){ - - } + + \ No newline at end of file diff -r a6c4ea119b80 -r 28d21b2123ba client/player/src/js/LdtPlayer.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/player/src/js/LdtPlayer.min.js Tue Sep 14 13:15:28 2010 +0200 @@ -0,0 +1,65 @@ +/* + * + * 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)var __IriSP={};__IriSP.config={metadata:{format:"cinelab",src:"http://exp.iri.centrepompidou.fr/franceculture/franceculture/ldt/cljson/id/ef4dcc2e-8d3b-11df-8a24-00145ea4a2be",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"},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"};__IriSP.LdtShareTool="\n\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 f=document.createElement("script");f.setAttribute("type","text/javascript");f.setAttribute("src",__IriSP.lib.jQueryToolTip);f.onload=c;f.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","http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js");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(f);(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(j); +(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(i)}function c(){g+=1;g===3&&d()}function d(){__IriSP.jQuery=window.jQuery.noConflict(true);__IriSP.jQuery(document).ready(function(f){var i=__IriSP.jQuery("",{rel:"stylesheet",type:"text/css",href:"../res/css/jq-css/themes/base/jquery.ui.all.css","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"); +f.browser.msie&&f(".dynamic_css").clone().appendTo("head");__IriSP.createMyHtml();__IriSP.jQuery.ajax({dataType:"jsonp",url:h,success:function(e){__IriSP.trace("ajax","success");if(e==="")alert("ERREUR DE CHARGEMENT JSON");else{new __IriSP.Media(e.medias[0].id,e.medias[0].href,e.medias[0].meta["dc:duration"],e.medias[0]["dc:title"],e.medias[0]["dc:description"]);__IriSP.trace("__IriSP.MyApiPlayer",__IriSP.config.gui.width+" "+__IriSP.config.gui.height+" "+e.medias[0].href+" "+e.medias[0].meta["dc:duration"]+ +" "+e.medias[0].meta.item.value);__IriSP.MyApiPlayer=new __IriSP.APIplayer(__IriSP.config.gui.width,__IriSP.config.gui.height,e.medias[0].href,e.medias[0].meta["dc:duration"],e.medias[0].meta.item.value);__IriSP.trace("__IriSP.init.main","__IriSP.Ligne");__IriSP.MyLdt=new __IriSP.Ligne(e["annotation-types"][0].id,e["annotation-types"][0]["dc:title"],e["annotation-types"][0]["dc:description"],e.medias[0].meta["dc:duration"]);__IriSP.trace("__IriSP.init.main","__IriSP.Tags");__IriSP.MyTags=new __IriSP.Tags(e.tags); +__IriSP.jQuery.each(e.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(e.lists,function(){__IriSP.trace("lists","")});__IriSP.jQuery.each(e.views,function(){__IriSP.trace("views","")})}},error:function(e){alert("ERROR : "+e)}})})}__IriSP.config=a;var h=__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 g=0}; +__IriSP.createMyHtml=function(){var a=__IriSP.config.gui.width;__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
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - -
    retour en haut de page - -
    - -
    -
    -
    -
    - -
    - -
    -

    Les Retours du dimanche - - par Caroline - Broué, Hervé -Gardette - Le site de l'émission -

    -
    - Les Retours du 
-dimanche - -
    -

    le dimanche de 18h10 à 19h

    -
    -
    - -
    -
    -
    - -
    - -
    - - -
    -
    - - Ecoutez l'émission - - 50 minutes -
    -

    - Le salaire de la politique ; les vuvuzelas ; l'actualité -politique belge - 0 - -

    -

    - 20.06.2010 - 18:10 -

    -
    -
    - - -
    -
    -
    -
    - - -
    - -

    le sociologue Alain Garrigou ©Radio -France

    -
    - - -

    Au sommaire des Retours du dimanche :

     

    La - - - revue -d'actualités : rappel des petits et grands évènements de la semaine. : il - faut reconnaître un mérite à Raymond Domenech et à ses joueurs...

     

    L'entretien - - - - : "Le salaire de la politique", après que la question de la rémunération des -politiques a été posée par le -premier ministre cette semaine. Invité : l'historien -et professeur en science politique Alain Garrigou, -auteur de Mourir pour des Idées, la vie posthume d'Alphone Baudin, - paru aux éditions Les Belles Lettres en avril 2010.

     

     

    - - - - - - - - - - - - - - - - - - - - -
    - - - - - -
    - -

    La - revue de -presse : les vuvuzelas comme phénomène identitaire, ces - trompettes qui occupent le fond sonore de tous les matchs de la coupe -du monde de football qui se déroule en ce moment en Afrique du Sud.
    -
    La bulle sonore : Patrick Roegiers pour revenir - sur l'actualité politique en Belgique. Notre invité -est romancier, auteur de La Belgique, Le roman d'un pays, paru -chez Découvertes Gallimard en 2005, et Le mal du pays, autoportrait -de la Belgique, publié au Seuil en 2003. Il a récemment publié La - Nuit du Monde, au Seuil en janvier 2010.

     

    - La -chronique d'Anthony Bellanger de Courrier - -International.

    -


    Et comme chaque semaine : le sujet choisi par l'invité, notre -choix pour -la semaine à venir...

    -
    -
    -
    - -

    Invités :
    - Alain -Garrigou, professeur agrégé d'histoire et docteur en science -politique à l'université de Paris-X Nanterre
    Patrick - Roegiers

    -

    Thèmes : - Information| Débat| - Gouvernement| - Histoire

    - -
    -
    -
    -

    0 commentaire

    -
    -

    Votre commentaire

    -
    -
    - - -
    -
    - - -
    -
    - -
    -
    -
    - -

    Enregistrement des -données…

    - - -
    -
    -
    - -
    -
    - - - -
    -
    -
    - - - -
    -
    - - -
    - - - - -
    -
    - - - - -
    -
    - - - - - - - - - - - - - - -
    \ No newline at end of file + + + \ No newline at end of file diff -r a6c4ea119b80 -r 28d21b2123ba client/player/test/indexFC.htm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/player/test/indexFC.htm Tue Sep 14 13:15:28 2010 +0200 @@ -0,0 +1,1974 @@ + + + + + + + + + + + Le salaire de la politique ; les vuvuzelas ; l'actualité +politique belge - Information - France Culture + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + +
    retour en haut de page + +
    + +
    +
    +
    +
    + +
    + +
    +

    Les Retours du dimanche + + par Caroline + Broué, Hervé +Gardette + Le site de l'émission +

    +
    + Les Retours du 
+dimanche + +
    +

    le dimanche de 18h10 à 19h

    +
    +
    + +
    +
    +
    + +
    + +
    + + +
    +
    + + Ecoutez l'émission + + 50 minutes +
    +

    + Le salaire de la politique ; les vuvuzelas ; l'actualité +politique belge + 0 + +

    +

    + 20.06.2010 - 18:10 +

    +
    +
    + + +
    +
    +
    +
    + + +
    + +

    le sociologue Alain Garrigou ©Radio +France

    +
    + + +

    Au sommaire des Retours du dimanche :

     

    La + + + revue +d'actualités : rappel des petits et grands évènements de la semaine. : il + faut reconnaître un mérite à Raymond Domenech et à ses joueurs...

     

    L'entretien + + + + : "Le salaire de la politique", après que la question de la rémunération des +politiques a été posée par le +premier ministre cette semaine. Invité : l'historien +et professeur en science politique Alain Garrigou, +auteur de Mourir pour des Idées, la vie posthume d'Alphone Baudin, + paru aux éditions Les Belles Lettres en avril 2010.

     

     

    + + + + + + +
    + + + + + + +
    + +

    La + revue de +presse : les vuvuzelas comme phénomène identitaire, ces + trompettes qui occupent le fond sonore de tous les matchs de la coupe +du monde de football qui se déroule en ce moment en Afrique du Sud.
    +
    La bulle sonore : Patrick Roegiers pour revenir + sur l'actualité politique en Belgique. Notre invité +est romancier, auteur de La Belgique, Le roman d'un pays, paru +chez Découvertes Gallimard en 2005, et Le mal du pays, autoportrait +de la Belgique, publié au Seuil en 2003. Il a récemment publié La + Nuit du Monde, au Seuil en janvier 2010.

     

    + La +chronique d'Anthony Bellanger de Courrier + +International.

    +


    Et comme chaque semaine : le sujet choisi par l'invité, notre +choix pour +la semaine à venir...

    +
    +
    +
    + +

    Invités :
    + Alain +Garrigou, professeur agrégé d'histoire et docteur en science +politique à l'université de Paris-X Nanterre
    Patrick + Roegiers

    +

    Thèmes : + Information| Débat| + Gouvernement| + Histoire

    + +
    +
    +
    +

    0 commentaire

    +
    +

    Votre commentaire

    +
    +
    + + +
    +
    + + +
    +
    + +
    +
    +
    + +

    Enregistrement des +données…

    + + +
    +
    +
    + +
    +
    + + + +
    +
    +
    + + + +
    +
    + + +
    + + + + +
    +
    + + + + +
    +
    + + + + + + + + + + + + + + +
    \ No newline at end of file diff -r a6c4ea119b80 -r 28d21b2123ba client/player/test/test.json --- a/client/player/test/test.json Fri Aug 06 17:19:37 2010 +0200 +++ b/client/player/test/test.json Tue Sep 14 13:15:28 2010 +0200 @@ -1,224 +1,224 @@ -jsonp1280740430151({ +test({ "tags": [ - { + { "meta": { - "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.333096", + "dc:contributor": "IRI ", + "dc:created": "2010-09-06T15:53:44.618963", "dc:title": "suffrage universel", - "dc:modified": "2010-08-02T09:15:21.333096", + "dc:modified": "2010-09-06T15:53:44.618963", "dc:creator": "IRI" }, - "id": "suffrage universel" + "id": "edaabd04-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.335354", + "dc:created": "2010-09-06T15:53:44.621828", "dc:title": "Patrick Rogiers", - "dc:modified": "2010-08-02T09:15:21.335354", + "dc:modified": "2010-09-06T15:53:44.621828", "dc:creator": "IRI" }, - "id": "Patrick Rogiers" + "id": "edab1fec-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.324441", + "dc:created": "2010-09-06T15:53:44.575615", "dc:title": "Kirgistan", - "dc:modified": "2010-08-02T09:15:21.324441", + "dc:modified": "2010-09-06T15:53:44.575615", "dc:creator": "IRI" }, - "id": "Kirgistan" + "id": "eda50fb2-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.328609", + "dc:created": "2010-09-06T15:53:44.600158", "dc:title": "Alphonse Baudin", - "dc:modified": "2010-08-02T09:15:21.328609", + "dc:modified": "2010-09-06T15:53:44.600158", "dc:creator": "IRI" }, - "id": "Alphonse Baudin" + "id": "eda8ba7c-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.333096", + "dc:created": "2010-09-06T15:53:44.618963", "dc:title": "mandats rétribués", - "dc:modified": "2010-08-02T09:15:21.333096", + "dc:modified": "2010-09-06T15:53:44.618963", "dc:creator": "IRI" }, - "id": "mandats rétribués" + "id": "edaab0b6-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.335354", + "dc:created": "2010-09-06T15:53:44.621828", "dc:title": "Belgique", - "dc:modified": "2010-08-02T09:15:21.335354", + "dc:modified": "2010-09-06T15:53:44.621828", "dc:creator": "IRI" }, - "id": "Belgique" + "id": "edab1808-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.330825", + "dc:created": "2010-09-06T15:53:44.609400", "dc:title": "18juin", - "dc:modified": "2010-08-02T09:15:21.330825", + "dc:modified": "2010-09-06T15:53:44.609400", "dc:creator": "IRI" }, - "id": "18juin" + "id": "edaa23f8-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.335354", + "dc:created": "2010-09-06T15:53:44.621828", "dc:title": "Wallons", - "dc:modified": "2010-08-02T09:15:21.335354", + "dc:modified": "2010-09-06T15:53:44.621828", "dc:creator": "IRI" }, - "id": "Wallons" + "id": "edab2730-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.339566", + "dc:created": "2010-09-06T15:53:44.626707", "dc:title": "theatre.doc", - "dc:modified": "2010-08-02T09:15:21.339566", + "dc:modified": "2010-09-06T15:53:44.626707", "dc:creator": "IRI" }, - "id": "theatre.doc" + "id": "edabd6b2-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.330825", + "dc:created": "2010-09-06T15:53:44.609400", "dc:title": "marée noire", - "dc:modified": "2010-08-02T09:15:21.330825", + "dc:modified": "2010-09-06T15:53:44.609400", "dc:creator": "IRI" }, - "id": "marée noire" + "id": "edaa3aaa-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.335354", + "dc:created": "2010-09-06T15:53:44.621828", "dc:title": "Flamands", - "dc:modified": "2010-08-02T09:15:21.335354", + "dc:modified": "2010-09-06T15:53:44.621828", "dc:creator": "IRI" }, - "id": "Flamands" + "id": "edab1c36-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.333096", + "dc:created": "2010-09-06T15:53:44.618963", "dc:title": "Auguste Baudin", - "dc:modified": "2010-08-02T09:15:21.333096", + "dc:modified": "2010-09-06T15:53:44.618963", "dc:creator": "IRI" }, - "id": "Auguste Baudin" + "id": "edaaa8dc-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.324441", + "dc:created": "2010-09-06T15:53:44.575615", "dc:title": "retraite", - "dc:modified": "2010-08-02T09:15:21.324441", + "dc:modified": "2010-09-06T15:53:44.575615", "dc:creator": "IRI" }, - "id": "retraite" + "id": "eda7047a-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.333096", + "dc:created": "2010-09-06T15:53:44.618963", "dc:title": "financement politique", - "dc:modified": "2010-08-02T09:15:21.333096", + "dc:modified": "2010-09-06T15:53:44.618963", "dc:creator": "IRI" }, - "id": "financement politique" + "id": "edaaad00-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.330825", + "dc:created": "2010-09-06T15:53:44.609400", "dc:title": "Bloody Sunday", - "dc:modified": "2010-08-02T09:15:21.330825", + "dc:modified": "2010-09-06T15:53:44.609400", "dc:creator": "IRI" }, - "id": "Bloody Sunday" + "id": "edaa329e-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.335354", + "dc:created": "2010-09-06T15:53:44.621828", "dc:title": "éléction", - "dc:modified": "2010-08-02T09:15:21.335354", + "dc:modified": "2010-09-06T15:53:44.621828", "dc:creator": "IRI" }, - "id": "éléction" + "id": "edab2b68-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.333096", + "dc:created": "2010-09-06T15:53:44.618963", "dc:title": "suffrage directs", - "dc:modified": "2010-08-02T09:15:21.333096", + "dc:modified": "2010-09-06T15:53:44.618963", "dc:creator": "IRI" }, - "id": "suffrage directs" + "id": "edaab962-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.335354", + "dc:created": "2010-09-06T15:53:44.621828", "dc:title": "vuvuzela", - "dc:modified": "2010-08-02T09:15:21.335354", + "dc:modified": "2010-09-06T15:53:44.621828", "dc:creator": "IRI" }, - "id": "vuvuzela" + "id": "edab238e-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.330825", + "dc:created": "2010-09-06T15:53:44.609400", "dc:title": "Domenech", - "dc:modified": "2010-08-02T09:15:21.330825", + "dc:modified": "2010-09-06T15:53:44.609400", "dc:creator": "IRI" }, - "id": "Domenech" + "id": "edaa36ea-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.337478", + "dc:created": "2010-09-06T15:53:44.624524", "dc:title": "sociologie du sport", - "dc:modified": "2010-08-02T09:15:21.337478", + "dc:modified": "2010-09-06T15:53:44.624524", "dc:creator": "IRI" }, - "id": "sociologie du sport" + "id": "edab8162-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.324441", + "dc:created": "2010-09-06T15:53:44.575615", "dc:title": "Mondiale", - "dc:modified": "2010-08-02T09:15:21.324441", + "dc:modified": "2010-09-06T15:53:44.575615", "dc:creator": "IRI" }, - "id": "Mondiale" + "id": "eda60c8c-b9ce-11df-9e63-00145ea4a2be" }, { "meta": { "dc:contributor": "IRI", - "dc:created": "2010-08-02T09:15:21.333096", + "dc:created": "2010-09-06T15:53:44.618963", "dc:title": "professionalisation de la politique", - "dc:modified": "2010-08-02T09:15:21.333096", + "dc:modified": "2010-09-06T15:53:44.618963", "dc:creator": "IRI" }, - "id": "professionalisation de la politique" + "id": "edaab5c0-b9ce-11df-9e63-00145ea4a2be" } ], "views": null, @@ -240,12 +240,12 @@ ], "meta": { "dc:contributor": "undefined", - "dc:created": "2010-08-02T09:15:21.320962", + "dc:created": "2010-09-06T15:53:44.572185", "dc:creator": "perso", "id-ref": "franceculture_retourdudimanche20100620", "dc:title": "Découpages personnels", "editable": "false", - "dc:modified": "2010-08-02T09:15:21.320962", + "dc:modified": "2010-09-06T15:53:44.572185", "dc:description": "" }, "id": "ens_perso" @@ -285,7 +285,7 @@ "dc:description": "", "dc:title": "RetourDimanche20juin_decoupageChronique", "id": "ef4dcc2e-8d3b-11df-8a24-00145ea4a2be", - "dc:modified": "2010-07-28T18:59:34.815208" + "dc:modified": "2010-08-25T11:39:25.507013" }, "annotations": [ { @@ -293,13 +293,13 @@ "end": 88414, "tags": [ { - "id-ref": "Kirgistan" + "id-ref": "eda50fb2-b9ce-11df-9e63-00145ea4a2be" }, { - "id-ref": "Mondiale" + "id-ref": "eda60c8c-b9ce-11df-9e63-00145ea4a2be" }, { - "id-ref": "retraite" + "id-ref": "eda7047a-b9ce-11df-9e63-00145ea4a2be" } ], "media": "franceculture_retourdudimanche20100620", @@ -317,8 +317,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_1F07824B-F512-78A9-49DB-6FB51DAB9560", - "dc:created": "2010-08-02T09:15:21.321004", - "dc:modified": "2010-08-02T09:15:21.321004", + "dc:created": "2010-09-06T15:53:44.572226", + "dc:modified": "2010-09-06T15:53:44.572226", "dc:creator": "perso" }, "id": "s_32C565F4-15F4-E7CB-EBC5-6FB51DAC635C" @@ -342,8 +342,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_1F07824B-F512-78A9-49DB-6FB51DAB9560", - "dc:created": "2010-08-02T09:15:21.321004", - "dc:modified": "2010-08-02T09:15:21.321004", + "dc:created": "2010-09-06T15:53:44.572226", + "dc:modified": "2010-09-06T15:53:44.572226", "dc:creator": "perso" }, "id": "s_8F385150-64B3-7539-AB94-6FB51DAC40B4" @@ -353,7 +353,7 @@ "end": 316123, "tags": [ { - "id-ref": "Alphonse Baudin" + "id-ref": "eda8ba7c-b9ce-11df-9e63-00145ea4a2be" } ], "media": "franceculture_retourdudimanche20100620", @@ -371,8 +371,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_1F07824B-F512-78A9-49DB-6FB51DAB9560", - "dc:created": "2010-08-02T09:15:21.321004", - "dc:modified": "2010-08-02T09:15:21.321004", + "dc:created": "2010-09-06T15:53:44.572226", + "dc:modified": "2010-09-06T15:53:44.572226", "dc:creator": "perso" }, "id": "s_948A7C82-DD23-8CAC-27D4-6FB51DAC7D41" @@ -382,19 +382,19 @@ "end": 694781, "tags": [ { - "id-ref": "18juin" + "id-ref": "edaa23f8-b9ce-11df-9e63-00145ea4a2be" }, { - "id-ref": "Bloody Sunday" + "id-ref": "edaa329e-b9ce-11df-9e63-00145ea4a2be" }, { - "id-ref": "Domenech" + "id-ref": "edaa36ea-b9ce-11df-9e63-00145ea4a2be" }, { - "id-ref": "Kirgistan" + "id-ref": "edaa36ea-b9ce-11df-9e63-00145ea4a2be" }, { - "id-ref": "marée noire" + "id-ref": "edaa3aaa-b9ce-11df-9e63-00145ea4a2be" } ], "media": "franceculture_retourdudimanche20100620", @@ -412,8 +412,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_1F07824B-F512-78A9-49DB-6FB51DAB9560", - "dc:created": "2010-08-02T09:15:21.321004", - "dc:modified": "2010-08-02T09:15:21.321004", + "dc:created": "2010-09-06T15:53:44.572226", + "dc:modified": "2010-09-06T15:53:44.572226", "dc:creator": "perso" }, "id": "s_54DB840E-01AC-D042-37E2-B2BA1E18B47C" @@ -423,22 +423,22 @@ "end": 1772062, "tags": [ { - "id-ref": "Auguste Baudin" + "id-ref": "edaaa8dc-b9ce-11df-9e63-00145ea4a2be" }, { - "id-ref": "financement politique" + "id-ref": "edaaad00-b9ce-11df-9e63-00145ea4a2be" }, { - "id-ref": "mandats rétribués" + "id-ref": "edaab0b6-b9ce-11df-9e63-00145ea4a2be" }, { - "id-ref": "professionalisation de la politique" + "id-ref": "edaab5c0-b9ce-11df-9e63-00145ea4a2be" }, { - "id-ref": "suffrage directs" + "id-ref": "edaab962-b9ce-11df-9e63-00145ea4a2be" }, { - "id-ref": "suffrage universel" + "id-ref": "edaabd04-b9ce-11df-9e63-00145ea4a2be" } ], "media": "franceculture_retourdudimanche20100620", @@ -456,8 +456,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_1F07824B-F512-78A9-49DB-6FB51DAB9560", - "dc:created": "2010-08-02T09:15:21.321004", - "dc:modified": "2010-08-02T09:15:21.321004", + "dc:created": "2010-09-06T15:53:44.572226", + "dc:modified": "2010-09-06T15:53:44.572226", "dc:creator": "perso" }, "id": "s_BDB0677D-DBF9-D198-896B-B2BDB9012D54" @@ -467,22 +467,22 @@ "end": 2515173, "tags": [ { - "id-ref": "Belgique" + "id-ref": "edab1808-b9ce-11df-9e63-00145ea4a2be" }, { - "id-ref": "Flamands" + "id-ref": "edab1c36-b9ce-11df-9e63-00145ea4a2be" }, { - "id-ref": "Patrick Rogiers" + "id-ref": "edab1fec-b9ce-11df-9e63-00145ea4a2be" }, { - "id-ref": "vuvuzela" + "id-ref": "edab238e-b9ce-11df-9e63-00145ea4a2be" }, { - "id-ref": "Wallons" + "id-ref": "edab2730-b9ce-11df-9e63-00145ea4a2be" }, { - "id-ref": "éléction" + "id-ref": "edab2b68-b9ce-11df-9e63-00145ea4a2be" } ], "media": "franceculture_retourdudimanche20100620", @@ -500,8 +500,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_1F07824B-F512-78A9-49DB-6FB51DAB9560", - "dc:created": "2010-08-02T09:15:21.321004", - "dc:modified": "2010-08-02T09:15:21.321004", + "dc:created": "2010-09-06T15:53:44.572226", + "dc:modified": "2010-09-06T15:53:44.572226", "dc:creator": "perso" }, "id": "s_3FC1D037-34A3-FEF7-541C-B2C31ED973A8" @@ -511,7 +511,7 @@ "end": 2646767, "tags": [ { - "id-ref": "sociologie du sport" + "id-ref": "edab8162-b9ce-11df-9e63-00145ea4a2be" } ], "media": "franceculture_retourdudimanche20100620", @@ -529,8 +529,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_1F07824B-F512-78A9-49DB-6FB51DAB9560", - "dc:created": "2010-08-02T09:15:21.321004", - "dc:modified": "2010-08-02T09:15:21.321004", + "dc:created": "2010-09-06T15:53:44.572226", + "dc:modified": "2010-09-06T15:53:44.572226", "dc:creator": "perso" }, "id": "s_82613B88-9578-DC2C-D7D0-B2C5BE0B7BDA" @@ -540,7 +540,7 @@ "end": 3012503, "tags": [ { - "id-ref": "theatre.doc" + "id-ref": "edabd6b2-b9ce-11df-9e63-00145ea4a2be" } ], "media": "franceculture_retourdudimanche20100620", @@ -558,8 +558,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_1F07824B-F512-78A9-49DB-6FB51DAB9560", - "dc:created": "2010-08-02T09:15:21.321004", - "dc:modified": "2010-08-02T09:15:21.321004", + "dc:created": "2010-09-06T15:53:44.572226", + "dc:modified": "2010-09-06T15:53:44.572226", "dc:creator": "perso" }, "id": "s_24324ACF-E8D0-46FE-E977-B2C7D1A1FBAA" @@ -583,8 +583,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_C5118055-7575-43BD-05BA-B2B91B977B61" @@ -608,8 +608,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_224FA6AF-AC6B-5412-C882-B2B91B97A0BC" @@ -633,8 +633,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_99950FC3-A79B-9A08-5E90-B2B91B97C844" @@ -658,8 +658,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_7DE30BA7-4E61-F41D-9EB8-B2B91B97C4C1" @@ -683,8 +683,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_C588B92E-EB4F-B383-4D50-B2B91B97B4C2" @@ -708,8 +708,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_87A5F46B-9588-4C02-24B6-B2B91B97037A" @@ -733,8 +733,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_1CF29EC2-1109-25FF-F8D7-B2B91B97944A" @@ -758,8 +758,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_B3A6C0FE-10B0-91D2-BC98-B2B91B97EC15" @@ -783,8 +783,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_FE44EC82-002E-3A78-B712-B2B91B975C76" @@ -808,8 +808,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_943F5904-D438-F263-C8B4-B2B91B97608C" @@ -833,8 +833,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_FBB30EA9-8699-E909-62BA-B2B91B9792C6" @@ -858,8 +858,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_8F2D73FD-4C22-DE0A-E22A-B2B91B97CA92" @@ -883,8 +883,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_716B6123-2040-71A2-3B8F-B2B91B978EF1" @@ -908,8 +908,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_1D64F959-8A86-FD3E-3FD1-B2B91B972648" @@ -933,8 +933,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_D7398F00-E4F5-9692-88D0-B2B91B976204" @@ -958,8 +958,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_21BCA9F6-A71C-C601-1247-B2B91B97A664" @@ -983,8 +983,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_45E25D8E-416B-8158-23DD-B2B91B9745CE" @@ -1008,8 +1008,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_88FBDAB0-64C7-74B9-7C5A-B2B91B977EC3" @@ -1033,8 +1033,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_6506C8B0-AAB0-3678-31FD-B2B91B978702" @@ -1058,8 +1058,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_CB104420-63C8-F957-78CF-B2B91B97D0B0" @@ -1083,8 +1083,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_1947C9C6-B47F-1544-AD5E-B2B91B97A552" @@ -1108,8 +1108,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_874A4942-9AA9-CA9A-F595-B2B91B97210A" @@ -1133,8 +1133,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", - "dc:modified": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", + "dc:modified": "2010-09-06T15:53:44.626882", "dc:creator": "perso" }, "id": "s_1F7790E7-BC3F-6C87-9B4F-B2B91B9769B6" @@ -1158,8 +1158,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_393E05F0-80CC-9D29-A42B-B293F1478831", - "dc:created": "2010-08-02T09:15:21.388167", - "dc:modified": "2010-08-02T09:15:21.388167", + "dc:created": "2010-09-06T15:53:44.675786", + "dc:modified": "2010-09-06T15:53:44.675786", "dc:creator": "perso" }, "id": "s_9CA4F1C6-6FA0-7070-EBCA-B293F1474ECC" @@ -1183,8 +1183,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_393E05F0-80CC-9D29-A42B-B293F1478831", - "dc:created": "2010-08-02T09:15:21.388167", - "dc:modified": "2010-08-02T09:15:21.388167", + "dc:created": "2010-09-06T15:53:44.675786", + "dc:modified": "2010-09-06T15:53:44.675786", "dc:creator": "perso" }, "id": "s_F1A706C3-8CFD-8479-FE1A-B293F147FB10" @@ -1208,8 +1208,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_393E05F0-80CC-9D29-A42B-B293F1478831", - "dc:created": "2010-08-02T09:15:21.388167", - "dc:modified": "2010-08-02T09:15:21.388167", + "dc:created": "2010-09-06T15:53:44.675786", + "dc:modified": "2010-09-06T15:53:44.675786", "dc:creator": "perso" }, "id": "s_D87336F4-AF1E-1192-AD6F-B293F14750F6" @@ -1233,8 +1233,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_393E05F0-80CC-9D29-A42B-B293F1478831", - "dc:created": "2010-08-02T09:15:21.388167", - "dc:modified": "2010-08-02T09:15:21.388167", + "dc:created": "2010-09-06T15:53:44.675786", + "dc:modified": "2010-09-06T15:53:44.675786", "dc:creator": "perso" }, "id": "s_EA074915-79A3-E8C3-A7BD-B293F1472B4A" @@ -1258,8 +1258,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_393E05F0-80CC-9D29-A42B-B293F1478831", - "dc:created": "2010-08-02T09:15:21.388167", - "dc:modified": "2010-08-02T09:15:21.388167", + "dc:created": "2010-09-06T15:53:44.675786", + "dc:modified": "2010-09-06T15:53:44.675786", "dc:creator": "perso" }, "id": "s_20B4A5D9-D87C-329A-8D6E-B293F147D954" @@ -1283,8 +1283,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_393E05F0-80CC-9D29-A42B-B293F1478831", - "dc:created": "2010-08-02T09:15:21.388167", - "dc:modified": "2010-08-02T09:15:21.388167", + "dc:created": "2010-09-06T15:53:44.675786", + "dc:modified": "2010-09-06T15:53:44.675786", "dc:creator": "perso" }, "id": "s_F0A40BE7-0DE5-F4AE-00E7-B293F147C76E" @@ -1308,8 +1308,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_393E05F0-80CC-9D29-A42B-B293F1478831", - "dc:created": "2010-08-02T09:15:21.388167", - "dc:modified": "2010-08-02T09:15:21.388167", + "dc:created": "2010-09-06T15:53:44.675786", + "dc:modified": "2010-09-06T15:53:44.675786", "dc:creator": "perso" }, "id": "s_801AE38E-9E88-347D-365A-B293F147FA32" @@ -1333,8 +1333,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_393E05F0-80CC-9D29-A42B-B293F1478831", - "dc:created": "2010-08-02T09:15:21.388167", - "dc:modified": "2010-08-02T09:15:21.388167", + "dc:created": "2010-09-06T15:53:44.675786", + "dc:modified": "2010-09-06T15:53:44.675786", "dc:creator": "perso" }, "id": "s_F5F3F6C7-2152-6FCA-3838-B293F147F4A6" @@ -1358,8 +1358,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_393E05F0-80CC-9D29-A42B-B293F1478831", - "dc:created": "2010-08-02T09:15:21.388167", - "dc:modified": "2010-08-02T09:15:21.388167", + "dc:created": "2010-09-06T15:53:44.675786", + "dc:modified": "2010-09-06T15:53:44.675786", "dc:creator": "perso" }, "id": "s_F01AD8C9-6F7F-0ED8-FCB8-B293F147EAE0" @@ -1383,8 +1383,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_393E05F0-80CC-9D29-A42B-B293F1478831", - "dc:created": "2010-08-02T09:15:21.388167", - "dc:modified": "2010-08-02T09:15:21.388167", + "dc:created": "2010-09-06T15:53:44.675786", + "dc:modified": "2010-09-06T15:53:44.675786", "dc:creator": "perso" }, "id": "s_306A6A5E-BB28-DBB3-1B2C-B293F147B879" @@ -1408,8 +1408,8 @@ "meta": { "dc:contributor": "perso", "id-ref": "c_393E05F0-80CC-9D29-A42B-B293F1478831", - "dc:created": "2010-08-02T09:15:21.388167", - "dc:modified": "2010-08-02T09:15:21.388167", + "dc:created": "2010-09-06T15:53:44.675786", + "dc:modified": "2010-09-06T15:53:44.675786", "dc:creator": "perso" }, "id": "s_40445FD2-80E5-F9C9-57B8-B293F1472D60" @@ -1421,36 +1421,36 @@ "dc:creator": "perso", "dc:title": "Chapitrage Notes", "id": "c_1F07824B-F512-78A9-49DB-6FB51DAB9560", - "dc:created": "2010-08-02T09:15:21.321004", + "dc:created": "2010-09-06T15:53:44.572226", "dc:description": "", - "dc:modified": "2010-08-02T09:15:21.321004" + "dc:modified": "2010-09-06T15:53:44.572226" }, { "dc:contributor": "perso", "dc:creator": "perso", "dc:title": "Mes notes", "id": "c_F6BB72C6-686E-1E8A-D775-B2B91B97C795", - "dc:created": "2010-08-02T09:15:21.339622", + "dc:created": "2010-09-06T15:53:44.626882", "dc:description": "", - "dc:modified": "2010-08-02T09:15:21.339622" + "dc:modified": "2010-09-06T15:53:44.626882" }, { "dc:contributor": "perso", "dc:creator": "perso", "dc:title": "Mes notes", "id": "c_393E05F0-80CC-9D29-A42B-B293F1478831", - "dc:created": "2010-08-02T09:15:21.388167", + "dc:created": "2010-09-06T15:53:44.675786", "dc:description": "", - "dc:modified": "2010-08-02T09:15:21.388167" + "dc:modified": "2010-09-06T15:53:44.675786" }, { "dc:contributor": "perso", "dc:creator": "perso", "dc:title": "Chapitrage", "id": "c_DE60F95E-73B8-922D-3AC7-6FB197A1BF16", - "dc:created": "2010-08-02T09:15:21.412002", + "dc:created": "2010-09-06T15:53:44.699595", "dc:description": "", - "dc:modified": "2010-08-02T09:15:21.412002" + "dc:modified": "2010-09-06T15:53:44.699595" } ] }) \ No newline at end of file diff -r a6c4ea119b80 -r 28d21b2123ba sbin/build/client.xml --- a/sbin/build/client.xml Fri Aug 06 17:19:37 2010 +0200 +++ b/sbin/build/client.xml Tue Sep 14 13:15:28 2010 +0200 @@ -7,12 +7,16 @@ - + debug="false" output="../../client/player/src/js/LdtPlayer.min.js"> + + + + + - + diff -r a6c4ea119b80 -r 28d21b2123ba sbin/build/compil.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbin/build/compil.bat Tue Sep 14 13:15:28 2010 +0200 @@ -0,0 +1,1 @@ +ant -f client.xml \ No newline at end of file