# HG changeset patch # User Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com> # Date 1423957396 -3600 # Node ID ff4b567d51f2689a5d6791511128061454a28299 # Parent c9c502117eb6738fbfe9cf755bc3d836f2a881b9 upgrade metadataplayer and add annotation creation diff -r c9c502117eb6 -r ff4b567d51f2 web/about.php --- a/web/about.php Fri Feb 13 13:14:15 2015 +0100 +++ b/web/about.php Sun Feb 15 00:43:16 2015 +0100 @@ -16,39 +16,39 @@ - + - + - +
-
- - - + diff -r c9c502117eb6 -r ff4b567d51f2 web/common.php --- a/web/common.php Fri Feb 13 13:14:15 2015 +0100 +++ b/web/common.php Sun Feb 15 00:43:16 2015 +0100 @@ -18,7 +18,7 @@ $ldt_platform = 'http://ldt.iri.centrepompidou.fr/'; $project_url_base = 'ldtplatform/ldt/cljson/id/'; -$C_default_rep = 'museo-1415-04-reseaux-sociaux-hermeneutiques'; +$C_default_rep = 'edito-1415-03-politique-archive-formats'; $C_feedback_form_url = 'https://spreadsheets.google.com/spreadsheet/viewform?hl=en_US&formkey=dDZILVdXVHRzd0xhWGVZXzkweHN2RGc6MQ#gid=0'; $C_event_props = __DIR__ . "/event_props"; $C_event_users = array('polemictweet' => 'polemictweet'.date('Y/m/d')); @@ -90,7 +90,7 @@ /** Zend_Locale */ require_once dirname(__FILE__).'/lib/Zend/Locale.php'; - + /** Zend_Translate_Adapter */ require_once dirname(__FILE__).'/lib/Zend/Translate/Adapter.php'; @@ -103,7 +103,7 @@ * Include the configuration data for our OAuth Client (array $configuration) */ include_once dirname(__FILE__).'/config.php'; - + $configuration['callbackUrl'] = URL_ROOT."$req_rep/callback.php"; @@ -150,16 +150,16 @@ } function set_config_translations(&$config, &$translate) { - + $config_translations = get_config_translations($config); - + // save the locale because it gets changed when adding translations $locale = $translate->getLocale(); - + $translate->addTranslation($config_translations['en'], 'en'); $translate->addTranslation($config_translations['jp'], 'ja_JP'); $translate->addTranslation($config_translations['fr'], 'fr'); - + // set the locale back $translate->setLocale($locale); } @@ -178,28 +178,28 @@ $translate->addTranslation($traduction_fr, 'fr'); if(isset($config)) { - + set_config_translations($config, $translate); // $config_translations = get_config_translations($config); - - + + // $translate->addTranslation($config_translations['en'], 'en'); // $translate->addTranslation($config_translations['jp'], 'ja_JP'); // $translate->addTranslation($config_translations['fr'], 'fr'); } - + $actual = $translate->getLocale(); //$translate->setLocale("en"); // $acceptCookie = $this->_request->getCookie('acceptCookie',0); if(isset($_GET['lang'])==false and isset($_SESSION['lang'])==false){ - + if($actual!='fr' and $actual!='en' and $actual!='ja_JP'){ $translate->setLocale("fr"); $_SESSION['lang']="fr"; } - + } else if (isset($_GET['lang'])==true){ $translate->setLocale($_GET['lang']); $_SESSION['lang'] = $_GET['lang']; @@ -208,7 +208,7 @@ } else if (isset($_SESSION['lang'])==true){ $translate->setLocale( $_SESSION['lang']); $actual = $_SESSION['lang']; - + } $js_registry = array( @@ -334,17 +334,17 @@ function get_archive_box($rep, $metadata, $url_root, $basepath, &$translate) { include("$basepath$rep/config.php"); - + set_config_translations($config, $translate); /* $config_translations = get_config_translations($config); - + // save the locale because it gets changed when adding translations $locale = $translate->getLocale(); - + $translate->addTranslation($config_translations['en'], 'en'); $translate->addTranslation($config_translations['jp'], 'ja_JP'); $translate->addTranslation($config_translations['fr'], 'fr'); - + // set the locale back $translate->setLocale($locale); */ @@ -379,14 +379,14 @@ } function display_archives_list($archives_list, $box_class, $url_root, $basepath, &$translate) { - - + + for($i=0;$i\n"); } $archive_ref = $archives_list[$i]; - + $archive_name = $archive_ref; $metadata = null; if(is_array($archive_ref)) { @@ -425,8 +425,8 @@ function authenticate($users, $translate) { global $realm; - - + + if (empty($_SERVER['PHP_AUTH_DIGEST']) || !isset($_SESSION['http_digest_nonce'])) { $_SESSION['http_digest_nonce'] = uniqid(); header('HTTP/1.1 401 Unauthorized'); @@ -465,7 +465,7 @@ function logout() { global $realm; - + unset($_SESSION['auth']); unset($_SESSION['http_digest_nonce']); } @@ -549,6 +549,6 @@ { $f = iconv('utf-8', 'us-ascii//TRANSLIT', $f); } - + return strtolower($f); } diff -r c9c502117eb6 -r ff4b567d51f2 web/edito-1415-03-politique-archive-formats/index.php --- a/web/edito-1415-03-politique-archive-formats/index.php Fri Feb 13 13:14:15 2015 +0100 +++ b/web/edito-1415-03-politique-archive-formats/index.php Sun Feb 15 00:43:16 2015 +0100 @@ -1,6 +1,6 @@ \ No newline at end of file +?> diff -r c9c502117eb6 -r ff4b567d51f2 web/edito-1415-04-elargissement-communautes-scientifiques/index.php --- a/web/edito-1415-04-elargissement-communautes-scientifiques/index.php Fri Feb 13 13:14:15 2015 +0100 +++ b/web/edito-1415-04-elargissement-communautes-scientifiques/index.php Sun Feb 15 00:43:16 2015 +0100 @@ -1,6 +1,6 @@ \ No newline at end of file +?> diff -r c9c502117eb6 -r ff4b567d51f2 web/edito-1415-05-faire-oeuvre-epoque-numerique/index.php --- a/web/edito-1415-05-faire-oeuvre-epoque-numerique/index.php Fri Feb 13 13:14:15 2015 +0100 +++ b/web/edito-1415-05-faire-oeuvre-epoque-numerique/index.php Sun Feb 15 00:43:16 2015 +0100 @@ -1,6 +1,6 @@ \ No newline at end of file +?> diff -r c9c502117eb6 -r ff4b567d51f2 web/edito-1415-06-atelier-etudes/index.php --- a/web/edito-1415-06-atelier-etudes/index.php Fri Feb 13 13:14:15 2015 +0100 +++ b/web/edito-1415-06-atelier-etudes/index.php Sun Feb 15 00:43:16 2015 +0100 @@ -1,6 +1,6 @@ \ No newline at end of file +?> diff -r c9c502117eb6 -r ff4b567d51f2 web/images/Colt-Logo.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/images/Colt-Logo.svg Sun Feb 15 00:43:16 2015 +0100 @@ -0,0 +1,16 @@ + + \ No newline at end of file diff -r c9c502117eb6 -r ff4b567d51f2 web/images/avatar.png Binary file web/images/avatar.png has changed diff -r c9c502117eb6 -r ff4b567d51f2 web/images/colt-Logo-73x29.png Binary file web/images/colt-Logo-73x29.png has changed diff -r c9c502117eb6 -r ff4b567d51f2 web/museo-1415-04-reseaux-sociaux-hermeneutiques/config.php --- a/web/museo-1415-04-reseaux-sociaux-hermeneutiques/config.php Fri Feb 13 13:14:15 2015 +0100 +++ b/web/museo-1415-04-reseaux-sociaux-hermeneutiques/config.php Sun Feb 15 00:43:16 2015 +0100 @@ -6,7 +6,7 @@ 'abstract' => "Réseaux sociaux herméneutiques
10/02/2015 de 17h30 à 20h00 au Centre Pompidou (Paris)", - 'description'=> "

Réseaux sociaux herméneutiques (10 février 2015 – 17h30 à 20h00)

+ 'description'=> "

Réseaux sociaux herméneutiques (10 février 2015 – 17h30 à 20h00)

Comment faire en sorte que s’instituent de nouveaux modes du dialogue entre chercheurs, entre critiques, entre le musée et son public, et entre les apprenants et les enseignants ? Le renouvellement par le numérique des enjeux didactiques, heuristiques et pédagogiques de la transmission des savoirs nous oblige à penser un nouveau type de réseau social, à même d’offrir aux données des contributeurs une valeur néguentropique, en les rendant échangeables et contributives.

A la lumière de la théorie des réseaux sociaux développée par Yuk Hui et Harry Halpin d’après les thèses philosophiques de Gilbert Simondon, et à la suite de la recherche contributive entreprise en 2013-2014 autour du cours de philosophie de Bernard Stiegler, nous imaginerons dans quelle mesure le réseau social peut devenir partie constituante d’un objet d’étude, d’une exposition ou d’un cours. Comment il peut devenir mode de contribution pour l’étudiant, le chercheur, ou l’amateur.

@@ -44,5 +44,5 @@ 'archive_description' => "par IRI au Centre Pompidou
le mardi 10 février 2015 | 17:30 - 20:00", // After the event - 'metadata' => "9fc4e780-b1d2-11e4-8a8e-00145ea4a2be" + 'metadata' => "9fc4e780-b1d2-11e4-8a8e-00145ea4a2be" ); diff -r c9c502117eb6 -r ff4b567d51f2 web/player_embed.php --- a/web/player_embed.php Fri Feb 13 13:14:15 2015 +0100 +++ b/web/player_embed.php Sun Feb 15 00:43:16 2015 +0100 @@ -44,13 +44,13 @@ Polemic Tweet Embedded Player - + - +
@@ -73,16 +73,16 @@ - + - + ' rel='stylesheet' type='text/css'/> ' rel='stylesheet' type='text/css'/> - - + +
- + diff -r c9c502117eb6 -r ff4b567d51f2 web/pour-la-transition-une-conomie-du-partage-de-la-connaissance-et-des-biens-communs/config.php --- a/web/pour-la-transition-une-conomie-du-partage-de-la-connaissance-et-des-biens-communs/config.php Fri Feb 13 13:14:15 2015 +0100 +++ b/web/pour-la-transition-une-conomie-du-partage-de-la-connaissance-et-des-biens-communs/config.php Sun Feb 15 00:43:16 2015 +0100 @@ -26,8 +26,7 @@ 'keywords' => "commons, paris, p2p foundation, Ars Industrialis", 'partenaires' => "Ouishare | Savoirscom1 | VECAM ", 'archive_title' => "Pour la Transition, une économie du partage de la connaissance et des biens communs", - 'archive_description' => "

par Ouishare, Savoirscom1 et VECAM

-

Le 16 septembre 2014 au Centre Pompidou

", + 'archive_description' => "par Ouishare, Savoirscom1 et VECAM
Le 16 septembre 2014 au Centre Pompidou", 'client_visual' => "images/michel_bauwens_480x320.png", 'head_logo' => "images/head_logo.gif", 'slide_background' => "images/michel_bauwens_606x282.jpg", diff -r c9c502117eb6 -r ff4b567d51f2 web/res/css/custom.css --- a/web/res/css/custom.css Fri Feb 13 13:14:15 2015 +0100 +++ b/web/res/css/custom.css Sun Feb 15 00:43:16 2015 +0100 @@ -1,11 +1,11 @@ /* ----------------------------------------------------------------------- - IRI - Live tweet annotation CSS + IRI - Live tweet annotation CSS http://www.iri.centrepompidou.fr * Copyright (c) 2010-Present. See LICENSE for more info. (cecill-C) - * Contributor : Samuel Huron + * Contributor : Samuel Huron ----------------------------------------------------------------------- */ @@ -65,6 +65,8 @@ .footerLink:active {text-decoration:none;} .footerLink:visited {text-decoration:none;} +.footerArchive{width:900px;height:20px;text-align:center;} + .tooltip {display:none;background:transparent url(../../images/white_arrow.png);font-size:12px;height:70px;width:160px;padding:25px;color:#000;} .timeline{height:28px;border: 1px solid #ccc;} @@ -74,7 +76,7 @@ .arrowContainer{height:10px;width:100%;} -.cleaner {clear:both;} +.cleaner {clear:both;} .txt{visibility:hidden;} @@ -84,10 +86,10 @@ } a.button_w { background: transparent url('../../images/bg_button_a_w.png') no-repeat scroll top right; color: #444;display: block;float: left;font: normal 12px arial, sans-serif;height: 24px;margin-right: 6px;padding-right: 18px; text-decoration: none;} -a.button_w span { background: transparent url('../../images/bg_button_span_w.png') no-repeat; display: block;line-height: 14px; padding: 5px 0 5px 18px;} +a.button_w span { background: transparent url('../../images/bg_button_span_w.png') no-repeat; display: block;line-height: 14px; padding: 5px 0 5px 18px;} a.button_b { background: transparent url('../../images/bg_button_a_b.png') no-repeat scroll top right; color: #fff;display: block;float: left;font: bold 12px arial, sans-serif;height: 24px;margin-right: 6px;padding-right: 18px; text-decoration: none;} -a.button_b span { background: transparent url('../../images/bg_button_span_b.png') no-repeat; display: block;line-height: 14px; padding: 5px 0 5px 18px;} +a.button_b span { background: transparent url('../../images/bg_button_span_b.png') no-repeat; display: block;line-height: 14px; padding: 5px 0 5px 18px;} #question{background: transparent url('../../images/bt_blue.png') no-repeat; width:32px;height:20px;text-decoration: none;font: normal 12px;color: #444;text-align:center; } #question:active {text-decoration:none;} @@ -138,7 +140,7 @@ .archivesTitleContainer{float:left;margin-left: 10px;} .archivesActionsContainer{width:45px;height:30px; float:right;} .archivesTitleActionsContainer{overflow: auto; width: 100%;} -.archivesVideoBox{margin:5px;padding:5px;position:relative;display:inline-block;float:left;border: solid 1px #ccc;background:#f2f2f2;cursor:pointer;width:270px;overflow:hidden;} +.archivesVideoBox{margin:5px;padding:5px;position:relative;display:inline-block;float:left;border: solid 1px #ccc;background:#f2f2f2;cursor:pointer;width:270px;height:220px;overflow:hidden;} .AVBtitle{font-weight:bold;font-family: 'PT Sans Narrow', arial, serif; font-size:18px;white-space:nowrap;overflow:hidden;} .AVBtext{white-space:nowrap;overflow:hidden;} @@ -158,18 +160,18 @@ a.right { background-position: 0 -20px; } a.right:hover { background-position:-20px -20px; } -a.right:active { background-position:-40px -20px; } +a.right:active { background-position:-40px -20px; } /* left */ -a.left { margin-left: 0px; } +a.left { margin-left: 0px; } a.left:hover { background-position:-20px 0; } a.left:active { background-position:-40px 0; } /* disabled navigational button */ #actions a.disabled { - visibility:hidden !important; -} + visibility:hidden !important; +} /* send us feedback */ #sendUsFeedBack{ float:right; diff -r c9c502117eb6 -r ff4b567d51f2 web/res/css/tweetcast.css --- a/web/res/css/tweetcast.css Fri Feb 13 13:14:15 2015 +0100 +++ b/web/res/css/tweetcast.css Sun Feb 15 00:43:16 2015 +0100 @@ -9,8 +9,8 @@ dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; @@ -144,7 +144,7 @@ } .embed .menu { - display: none; + display: none; } .menu li { @@ -167,7 +167,7 @@ } #content_select_ul select { - width: 350px; + width: 350px; } .embedbar { @@ -209,7 +209,7 @@ text-decoration:none; color:#fff; } -textarea { +textarea#status { display: block; margin: 10px 0; height: 45px; width: 420px; padding:5px; background: url(twcx-img/bgdWriter.png) no-repeat; border: none; resize: none; font-size: 14px; font-family: 'PT Sans', Helvetica, Arial, sans-serif; @@ -230,10 +230,10 @@ a#sendTweet:hover span, a#sendTweet:active span { background-position: 0 -24px; } -.tweetButton { +.tweetButton { float:left; margin: 2px 8px 0 0; width:75px; height:24px; text-decoration: none; background: url('twcx-img/tweetbuttons.png'); - color: #333; text-align:center; cursor: pointer; cursor: hand; + color: #333; text-align:center; cursor: pointer; cursor: hand; } .twbSyntax { font-weight: normal; font-size: 14px; @@ -442,7 +442,7 @@ } .annotations, .twmain { - position: absolute; margin: 0; padding: 0; top: 0; left: 0; width: 100%; height: 100%; + position: absolute; margin: 0; padding: 0; top: 0; left: 0; width: 100%; height: 100%; } .icons .annotations { @@ -515,7 +515,7 @@ } #onglets li.selected a { - color: #333333; + color: #333333; } #coldroite { diff -r c9c502117eb6 -r ff4b567d51f2 web/res/js/LdtPlayer.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/res/js/LdtPlayer.min.js Sun Feb 15 00:43:16 2015 +0100 @@ -0,0 +1,127 @@ + +/* + * + __ __ _ _ _ _ + | \/ | ___| |_ __ _ __| | __ _| |_ __ _ _ __ | | __ _ _ _ ___ _ __ + | |\/| |/ _ \ __/ _` |/ _` |/ _` | __/ _` | '_ \| |/ _` | | | |/ _ \ '__| + | | | | __/ || (_| | (_| | (_| | || (_| | |_) | | (_| | |_| | __/ | + |_| |_|\___|\__\__,_|\__,_|\__,_|\__\__,_| .__/|_|\__,_|\__, |\___|_| + |_| |___/ + + * Copyright 2010-2012 Institut de recherche et d'innovation + * contributor(s) : Karim Hamidou, Samuel Huron, Raphael Velt, Thibaut Cavalie + * + * 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. +*/ +(function(a){function e(n,p){var y=/^\w+\:\/\//;if(/^\/\/\/?/.test(n))n=location.protocol+n;else if(!y.test(n)&&n.charAt(0)!="/")n=(p||"")+n;return y.test(n)?n:(n.charAt(0)=="/"?L:O)+n}function g(n,p){for(var y in n)if(n.hasOwnProperty(y))p[y]=n[y];return p}function k(n,p,y,b){n.onload=n.onreadystatechange=function(){if(!(n.readyState&&n.readyState!="complete"&&n.readyState!="loaded"||p[y])){n.onload=n.onreadystatechange=null;b()}}}function l(n){n.ready=n.finished=true;for(var p=0;p0){for(var D=0;D=0;){A=d.shift();w=w[A.type].apply(null,A.args)}return w},noConflict:function(){a.$LAB=i;return m},sandbox:function(){return j()}}}var i=a.$LAB,o="UseLocalXHR",E="AlwaysPreserveOrder",I="AllowDuplicates",v="CacheBust",G="BasePath",O=/^[^?#]*\//.exec(location.href)[0], +L=/^\w+\:\/\/\/?[^\/]+/.exec(O)[0],B=document.head||document.getElementsByTagName("head"),r=a.opera&&Object.prototype.toString.call(a.opera)=="[object Opera]"||"MozAppearance"in document.documentElement.style,x=document.createElement("script"),P=typeof x.preload=="boolean",z=P||x.readyState&&x.readyState=="uninitialized",C=!z&&x.async===true,q=!z&&!C&&!r;a.$LAB=j();(function(n,p,y){if(document.readyState==null&&document[n]){document.readyState="loading";document[n](p,y=function(){document.removeEventListener(p, +y,false);document.readyState="complete"},false)}})("addEventListener","DOMContentLoaded")})(this);if(typeof window.IriSP==="undefined")window.IriSP={VERSION:"0.3.2"};if(typeof IriSP.jQuery==="undefined"&&typeof window.jQuery!=="undefined"){var jvp=window.jQuery().jquery.split("."),jv=100*parseInt(jvp[0])+parseInt(jvp[1]);if(jv>170)IriSP.jQuery=window.jQuery}if(typeof IriSP._==="undefined"&&typeof window._!=="undefined"&&parseFloat(window._.VERSION)>=1.4)IriSP._=window._; +IriSP.jqEscape=function(a){return a.replace(/(:|\.)/g,"\\$1")};IriSP.getLib=function(a){if(IriSP.libFiles.useCdn&&typeof IriSP.libFiles.cdn[a]=="string")return IriSP.libFiles.cdn[a];if(typeof IriSP.libFiles.locations[a]=="string")return IriSP.libFiles.locations[a];if(typeof IriSP.libFiles.inDefaultDir[a]=="string")return IriSP.libFiles.defaultDir+"/"+IriSP.libFiles.inDefaultDir[a]};IriSP._cssCache=[]; +IriSP.loadCss=function(a){if(IriSP._(IriSP._cssCache).indexOf(a)===-1){IriSP.jQuery("",{rel:"stylesheet",type:"text/css",href:a}).appendTo("head");IriSP._cssCache.push(a)}}; +IriSP.textFieldHtml=function(a,e,g){function k(G,O,L){for(;;){var B=G.exec(j);if(!B)break;var r=G.lastIndex,x=B.index;l.push({start:x,end:r,startHtml:typeof O==="function"?O(B):O,endHtml:typeof L==="function"?L(B):L});f.push(x);f.push(r)}}var l=[],f=[],j=a.replace(/(^\s+|\s+$)/g,"");e&&k(e,'',"");k(/(https?:\/\/)?[\w\d\-]+\.[\w\d\-]+\S+/gm,function(G){return''},"");k(/@([\d\w]{1,15})/gm,function(G){return''},"");k(/\*[^*]+\*/gm,"","");k(/[\n\r]+/gm,"","
");IriSP._(g).each(function(G){k.apply(null,G)});f=IriSP._(f).chain().uniq().sortBy(function(G){return parseInt(G)}).value();for(var i="",o=0,E=0;E=0;o--){var v=l[o];if(v.start=I)i+=v.endHtml}for(o=0;oI)i+=v.startHtml}o=I}i+=j.substring(o);return i}; +IriSP.log=function(){typeof console!=="undefined"&&typeof IriSP.logging!=="undefined"&&IriSP.logging&&console.log.apply(console,arguments)};IriSP.attachDndData=function(a,e){a.attr("draggable","true").on("dragstart",function(g){var k=typeof e==="function"?e.call(this):e;try{IriSP._(k).each(function(f,j){f&&g.originalEvent.dataTransfer.setData("text/x-iri-"+j,f)})}catch(l){g.originalEvent.dataTransfer.setData("Text",JSON.stringify(k))}})}; +IriSP.FakeClass=function(a){var e=this,g=function(){};IriSP._(a).each(function(k){e[k]=g})}; +IriSP.Model=function(a){function e(b,c,d){d=d||10;for(c=c.toString(d);c.lengthh)&&m.playing}).forEach(function(m){m.playing=false;m.trigger("leave");d.trigger("leave-annotation",m)});d.getAnnotations().filter(function(m){return m.begin<=h&&m.end>h&&!m.playing}).forEach(function(m){m.playing=true;m.trigger("enter");d.trigger("enter-annotation",m)})});this.on("loadedmetadata", +function(){d.loadedMetadata=true})}};v(C,z);C.prototype.getCurrentTime=function(){return this.currentTime};C.prototype.getVolume=function(){return this.volume};C.prototype.getPaused=function(){return this.paused};C.prototype.getMuted=function(){return this.muted};C.prototype.setCurrentTime=function(b){this.trigger("setcurrenttime",b)};C.prototype.setVolume=function(b){this.trigger("setvolume",b)};C.prototype.setMuted=function(b){this.trigger("setmuted",b)};C.prototype.play=function(){this.trigger("setplay")}; +C.prototype.pause=function(){this.trigger("setpause")};C.prototype.show=function(){};C.prototype.hide=function(){};var q=i.Media=function(b,c){C.call(this,b,c);this.elementType="media";this.duration=new x;this.video=""};v(q,C);q.prototype.setDuration=function(b){this.duration.setMilliseconds(b)};q.prototype.getAnnotations=function(){return this.getRelated("annotation")};q.prototype.getAnnotationsByTypeTitle=function(b){var c=this.source.getAnnotationTypes().searchByTitle(b).pluck("id");return c.length? +this.getAnnotations().filter(function(d){return a._(c).indexOf(d.getAnnotationType().id)!==-1}):new r(this.source.directory)};q=i.Tag=function(b,c){z.call(this,b,c);this.elementType="tag"};v(q,z);q.prototype.getAnnotations=function(){return this.getRelated("annotation")};q=i.AnnotationType=function(b,c){z.call(this,b,c);this.elementType="annotationType"};v(q,z);q.prototype.getAnnotations=function(){return this.getRelated("annotation")};q=i.Annotation=function(b,c){z.call(this,b,c);this.elementType= +"annotation";this.begin=new x;this.end=new x;this.tag=new P(c,[]);this.playing=false;var d=this;this.on("click",function(){d.getMedia().setCurrentTime(d.begin)})};v(q,z);q.prototype.setBegin=function(b){this.begin.setMilliseconds(Math.max(0,b));this.trigger("change-begin");this.endb});if(c.length)return c[0]};q.prototype.getMediaAtTime=function(b){var c=this.getAnnotationAtTime(b);if(typeof c!=="undefined")return c.getMedia()};var p=i.Source=function(b){z.call(this,false,this);this.status=o;this.elementType="source";if(typeof b!=="undefined"){var c=this;a._(b).forEach(function(d,h){c[h]=d});this.callbackQueue=[];this.contents={};this.get()}}; +v(p,z);p.prototype.addList=function(b,c){if(typeof this.contents[b]==="undefined")this.contents[b]=new r(this.directory);this.contents[b].addElements(c)};p.prototype.getList=function(b,c){if(c=typeof c!=="undefined"&&c)return this.directory.getGlobalList().filter(function(d){return d.elementType===b});else{if(typeof this.contents[b]==="undefined")this.contents[b]=new r(this.directory);return this.contents[b]}};p.prototype.forEach=function(b){var c=this;a._(this.contents).forEach(function(d,h){b.call(c, +d,h)})};p.prototype.getElement=function(b){return this.directory.getElement(b)};p.prototype.get=function(){this.status=E;this.handleCallbacks()};p.prototype.deferCallback=function(b){var c=this;a._.defer(function(){b.call(c)})};p.prototype.handleCallbacks=function(){for(this.status=I;this.callbackQueue.length;)this.deferCallback(this.callbackQueue.splice(0,1)[0])};p.prototype.onLoad=function(b){this.status===I?this.deferCallback(b):this.callbackQueue.push(b)};p.prototype.serialize=function(){return this.serializer.serialize(this)}; +p.prototype.deSerialize=function(b){this.serializer.deSerialize(b,this)};p.prototype.getAnnotations=function(b){b=typeof b!=="undefined"&&b;return this.getList("annotation",b)};p.prototype.getMedias=function(b){b=typeof b!=="undefined"&&b;return this.getList("media",b)};p.prototype.getTags=function(b){b=typeof b!=="undefined"&&b;return this.getList("tag",b)};p.prototype.getMashups=function(b){b=typeof b!=="undefined"&&b;return this.getList("mashup",b)};p.prototype.getAnnotationTypes=function(b){b= +typeof b!=="undefined"&&b;return this.getList("annotationType",b)};p.prototype.getAnnotationsByTypeTitle=function(b,c){c=typeof c!=="undefined"&&c;var d=new r(this.directory),h=this.getAnnotationTypes(c).searchByTitle(b);h.forEach(function(m){d.addElements(m.getAnnotations(c))});return d};p.prototype.getDuration=function(){var b=this.currentMedia;if(typeof b!=="undefined")return this.currentMedia.duration};p.prototype.getCurrentMedia=function(b){if(typeof this.currentMedia==="undefined")if(b.is_mashup){var c= +this.getMashups();if(c.length)this.currentMedia=c[0]}else{var d=this.getMedias();if(d.length)this.currentMedia=d[0]}return this.currentMedia};p.prototype.merge=function(b){var c=this;b.forEach(function(d,h){c.getList(h).addElements(d)})};var y=i.RemoteSource=function(b){p.call(this,b)};v(y,p);y.prototype.get=function(){this.status=E;var b=this,c=this.url_params||{},d=O(this.url)?"json":"jsonp";c.format=d;a.jQuery.ajax({url:this.url,dataType:d,data:c,traditional:true,success:function(h){b.deSerialize(h); +b.handleCallbacks()}})};v=i.Directory=function(){this.remoteSources={};this.elements={}};v.prototype.remoteSource=function(b){if(typeof b!=="object"||typeof b.url==="undefined")throw"Error : Directory.remoteSource(configuration): configuration.url is undefined";var c=a._({directory:this}).extend(b);c.url_params=c.url_params||{};var d=c.url+"?"+a.jQuery.param(c.url_params);if(typeof this.remoteSources[d]==="undefined")this.remoteSources[d]=new y(c);return this.remoteSources[d]};v.prototype.newLocalSource= +function(b){var c=a._({directory:this}).extend(b),d=new p(c);return d};v.prototype.getElement=function(b){return this.elements[b]};v.prototype.addElement=function(b){this.elements[b.id]=b};v.prototype.getGlobalList=function(){var b=new r(this);b.addIds(a._(this.elements).keys());return b};return i}(IriSP); +IriSP.htmlPlayer=function(a,e,g){var k=g||{};g=k.video||a.video;if(typeof k.url_transform==="function")g=k.url_transform(g);var l=IriSP.jQuery("