Added Metadataplayer test files
authorveltr
Thu, 30 Aug 2012 18:07:20 +0200
changeset 32 bb240c58c87e
parent 31 5e37072ec7b7
child 33 126cbe638fee
Added Metadataplayer test files
.hgignore
metadataplayer/json/renkan.json
metadataplayer/renkan.htm
metadataplayer/test.css
metadataplayer/update-metadataplayer.sh
--- a/.hgignore	Thu Aug 30 18:07:00 2012 +0200
+++ b/.hgignore	Thu Aug 30 18:07:20 2012 +0200
@@ -3,4 +3,8 @@
 ^\.project$
 syntax: regexp
 ^client/data/dynamic-data\.json$
-^server/target$
\ No newline at end of file
+^server/target$
+syntax: regexp
+^metadataplayer/libs$
+syntax: regexp
+^metadataplayer/metadataplayer$
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/metadataplayer/json/renkan.json	Thu Aug 30 18:07:20 2012 +0200
@@ -0,0 +1,287 @@
+{
+    "users": [
+        {
+            "id": "u-anonymous",
+            "title": "anonymous",
+            "uri": "",
+            "description": "",
+            "color": "#dd00dd"
+        }, {
+            "id": "u-cybunk",
+            "title": "Samuel",
+            "uri": "http://twitter.com/cybunk",
+            "description": "",
+            "color": "#e00000"
+        }, {
+            "id": "u-raphv",
+            "title": "Raphael",
+            "uri": "http://twitter.com/raphv",
+            "description": "",
+            "color": "#00a000"
+        }
+    ],
+    "nodes": [
+        {
+            "id": "node-2012-08-22-9da6eef6c6391d05-0001",
+            "title": "Chocs technologiques et tâches de l’université...",
+            "uri": "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/e328e188-ff2f-11e0-b9e1-00145ea49a02/#id=s_6C326EED-B91A-AEDF-032D-40D9A60AAD7E",
+            "description": "Bernard Stiegler:\nChocs technologiques et tâches de l’université. L'époque des digital studies\nベルナール・スティグレールによるプレゼンテーション『テクノロジーの衝撃と大学の諸課題――デジタル・スタディーズの時代』 (langue française フランス語)",
+            "position": {
+                "x": 35.50145330596697,
+                "y": -79.8809523809524
+            },
+            "created_by": "u-cybunk"
+        }, {
+            "id": "node-2012-08-22-9da6eef6c6391d05-0002",
+            "title": "Wiki: ベルナール・スティグレール",
+            "uri": "http://ja.wikipedia.org/wiki/%E3%83%99%E3%83%AB%E3%83%8A%E3%83%BC%E3%83%AB%E3%83%BB%E3%82%B9%E3%83%86%E3%82%A3%E3%82%B0%E3%83%AC%E3%83%BC%E3%83%AB",
+            "description": "|image_name = Bernard-Stiegler.jpg\n'''ベルナール・スティグレール'''('''Bernard Stiegler''',[[1952年]][[4月1日]] - )は、[[フランス]]の[[哲学者]]。\n",
+            "position": {
+                "x": -196.21861947454883,
+                "y": -149.00697345010028
+            },
+            "created_by": "u-raphv"
+        }, {
+            "id": "node-2012-08-22-9da6eef6c6391d05-0003",
+            "title": "Wiki: Bernard Stiegler",
+            "uri": "http://fr.wikipedia.org/wiki/Bernard_Stiegler",
+            "description": "Bernard Stiegler, né le 1 | avril | 1952, est un philosophe  français  qui axe sa réflexion sur les enjeux des mutations actuelles —  ... ",
+            "position": {
+                "x": -203.78187077358191,
+                "y": -298.3662919065874
+            },
+            "created_by": "u-raphv"
+        }, {
+            "id": "node-2012-08-22-9da6eef6c6391d05-0004",
+            "title": "Tag: Stiegler",
+            "uri": "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/search/?search=Stiegler&field=all",
+            "description": "Tag 'Stiegler'",
+            "position": {
+                "x": -82.30326393358813,
+                "y": -220.3518547582561
+            },
+            "created_by": "u-raphv"
+        }, {
+            "id": "node-2012-08-22-9da6eef6c6391d05-0009",
+            "title": "Wiki: Humanités numériques",
+            "uri": "http://fr.wikipedia.org/wiki/Humanit%C3%A9s_num%C3%A9riques",
+            "description": "une proposition de définition a été élaborée lors du THATCamp des 18 et 19 mai 2010 sous la forme d'un « Manifeste des digital humanities : ... ",
+            "position": {
+                "x": -227.84295519248332,
+                "y": 91.1816115015538
+            },
+            "created_by": "u-raphv"
+        }, {
+            "id": "node-2012-08-22-9da6eef6c6391d05-000a",
+            "title": "Wiki: デジタル・ヒューマニティーズ",
+            "uri": "http://ja.wikipedia.org/wiki/%E3%83%87%E3%82%B8%E3%82%BF%E3%83%AB%E3%83%BB%E3%83%92%E3%83%A5%E3%83%BC%E3%83%9E%E3%83%8B%E3%83%86%E3%82%A3%E3%83%BC%E3%82%BA",
+            "description": "...(digital humanities)は、コンピューティングと人文科学(humanities)諸分野と間の接点に関して調査、研究、教育、および�\n* Centre for Computing in the Humanities\n",
+            "position": {
+                "x": -221.48701615763574,
+                "y": 242.80740052545508
+            },
+            "created_by": "u-raphv"
+        }, {
+            "id": "node-2012-08-22-9da6eef6c6391d05-000b",
+            "title": "Digital studies",
+            "uri": "",
+            "description": "",
+            "position": {
+                "x": -55.85113246487888,
+                "y": 51.55194408866958
+            },
+            "created_by": "u-raphv"
+        }, {
+            "id": "node-2012-08-22-9da6eef6c6391d05-000c",
+            "title": "Digital Humanities",
+            "uri": "",
+            "description": "",
+            "position": {
+                "x": -110.57020731070799,
+                "y": 160.92139209086253
+            },
+            "created_by": "u-raphv"
+        }, {
+            "id": "node-2012-08-22-b778a9fc31296d6b-0008",
+            "title": "Les rétentions (Tweet)",
+            "uri": "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/e328e188-ff2f-11e0-b9e1-00145ea49a02/#id=a924b90c-46a1-4f0a-9e13-bcf69f7b5de0-127750274034049024",
+            "description": "Tweet by Vincent Puig: #tfcem Les rétentions primaires (perception) s'aggrégent et forment des rétentions secondaires (mémoire), gravées sur rétentions tertiaires",
+            "position": {
+                "x": 186.15055288633457,
+                "y": -184.66836073709257
+            },
+            "created_by": "u-cybunk"
+        }, {
+            "id": "node-2012-08-22-b778a9fc31296d6b-0009",
+            "title": "L'origine de la géométrie (Tweet)",
+            "uri": "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/e328e188-ff2f-11e0-b9e1-00145ea49a02/#id=5b34ae61-ffb1-4535-a479-007cb0ef57e8-127752118743474177",
+            "description": "Tweet by Vincent Puig: #tfcem L'origine de la géométrie: l'écriture est processus long de transindividuation. Nos tweets quasi temps réel sont de même nature++",
+            "position": {
+                "x": 109.36171738186508,
+                "y": -322.7405203211109
+            },
+            "created_by": "u-cybunk"
+        }, {
+            "id": "node-2012-08-22-b778a9fc31296d6b-000a",
+            "title": "Polemictweet : un outil Digital Studies (Tweet)",
+            "uri": "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/e328e188-ff2f-11e0-b9e1-00145ea49a02/#id=4b34e895-221b-467b-a0f2-8ff4ae87cae4-127758736415666177",
+            "description": "Tweet by Vincent Puig:\n#tfcem Polemictweet : un outil Digital Studies pensé à l'IRI comme rétention tertiaire numérique avec les même armes que l'industrie",
+            "position": {
+                "x": 174.8441677339912,
+                "y": 69.79052957489553
+            },
+            "created_by": "u-cybunk"
+        }, {
+            "id": "node-2012-08-22-b778a9fc31296d6b-000f",
+            "title": "Rétention (Définition AI)",
+            "uri": "http://arsindustrialis.org/vocabulaire-ars-industrialis/r%C3%A9tention",
+            "description": "Les rétentions sont ce qui est retenu ou recueilli par la conscience. Ce terme est emprunté à Husserl ; mais les rétentions tertiaires sont propres à la philosophie de Bernard Stiegler.\n\nLes rétentions sont des sélections : dans le flux de conscience que vous êtes vous ne pouvez pas tout retenir, ce que vous retenez est ce que vous êtes, mais ce que vous retenez dépend ce que vous avez déjà retenu.\n\nL’espèce humaine, étant originairement constituée par sa prothéticité, dispose d’une troisième mémoire, ni génétique, ni épigénétique : le milieu épiphylogénétique, comme ensemble des rétentions tertiaires formant des dispositifs rétentionels.",
+            "position": {
+                "x": 240.98461723225768,
+                "y": -53.794373087027985
+            },
+            "created_by": "u-cybunk"
+        }, {
+            "id": "node-2012-08-22-5b349e49066c1b01-0001",
+            "title": "Polemic Tweet",
+            "uri": "http://polemictweet.com/",
+            "description": "Polemic Tweet Web Site",
+            "position": {
+                "x": 220.27339862010322,
+                "y": 209.95821750254615
+            },
+            "created_by": "u-cybunk"
+        }
+    ],
+    "edges": [
+        {
+            "id": "edge-2012-08-22-9da6eef6c6391d05-0005",
+            "title": "is about",
+            "uri": "",
+            "description": "",
+            "from": "node-2012-08-22-9da6eef6c6391d05-0002",
+            "to": "node-2012-08-22-9da6eef6c6391d05-0004",
+            "created_by": "u-raphv"
+        }, {
+            "id": "edge-2012-08-22-9da6eef6c6391d05-0006",
+            "title": "is about",
+            "uri": "",
+            "description": "",
+            "from": "node-2012-08-22-9da6eef6c6391d05-0003",
+            "to": "node-2012-08-22-9da6eef6c6391d05-0004",
+            "created_by": "u-raphv"
+        }, {
+            "id": "edge-2012-08-22-9da6eef6c6391d05-0007",
+            "title": "speech by",
+            "uri": "",
+            "description": "",
+            "from": "node-2012-08-22-9da6eef6c6391d05-0001",
+            "to": "node-2012-08-22-9da6eef6c6391d05-0004",
+            "created_by": "u-raphv"
+        }, {
+            "id": "edge-2012-08-22-b778a9fc31296d6b-0001",
+            "title": "is about",
+            "uri": "",
+            "description": "",
+            "from": "node-2012-08-22-9da6eef6c6391d05-0001",
+            "to": "node-2012-08-22-9da6eef6c6391d05-000b",
+            "created_by": "u-raphv"
+        }, {
+            "id": "edge-manual-001",
+            "title": "theme of",
+            "uri": "",
+            "description": "",
+            "from": "node-2012-08-22-9da6eef6c6391d05-000b",
+            "to": "node-2012-08-22-9da6eef6c6391d05-0001",
+            "created_by": "u-cybunk"
+        }, {
+            "id": "edge-manual-002",
+            "title": "example of",
+            "uri": "",
+            "description": "",
+            "from": "node-2012-08-22-b778a9fc31296d6b-000a",
+            "to": "node-2012-08-22-9da6eef6c6391d05-000b",
+            "created_by": "u-cybunk"
+        }, {
+            "id": "edge-2012-08-22-b778a9fc31296d6b-0002",
+            "title": "Are related to",
+            "uri": "",
+            "description": "",
+            "from": "node-2012-08-22-9da6eef6c6391d05-000b",
+            "to": "node-2012-08-22-9da6eef6c6391d05-000c",
+            "created_by": "u-raphv"
+        }, {
+            "id": "edge-2012-08-22-b778a9fc31296d6b-0003",
+            "title": "is about",
+            "uri": "",
+            "description": "",
+            "from": "node-2012-08-22-9da6eef6c6391d05-0009",
+            "to": "node-2012-08-22-9da6eef6c6391d05-000c",
+            "created_by": "u-raphv"
+        }, {
+            "id": "edge-2012-08-22-b778a9fc31296d6b-0004",
+            "title": "is about",
+            "uri": "",
+            "description": "",
+            "from": "node-2012-08-22-9da6eef6c6391d05-000a",
+            "to": "node-2012-08-22-9da6eef6c6391d05-000c",
+            "created_by": "u-raphv"
+        }, {
+            "id": "edge-2012-08-22-b778a9fc31296d6b-000b",
+            "title": "is about",
+            "uri": "",
+            "description": "",
+            "from": "node-2012-08-22-b778a9fc31296d6b-000a",
+            "to": "node-2012-08-22-9da6eef6c6391d05-000b",
+            "created_by": "u-raphv"
+        }, {
+            "id": "edge-2012-08-22-b778a9fc31296d6b-000c",
+            "title": "tweeted during",
+            "uri": "",
+            "description": "",
+            "from": "node-2012-08-22-b778a9fc31296d6b-0009",
+            "to": "node-2012-08-22-9da6eef6c6391d05-0001",
+            "created_by": "u-cybunk"
+        }, {
+            "id": "edge-2012-08-22-b778a9fc31296d6b-000d",
+            "title": "tweeted during",
+            "uri": "",
+            "description": "",
+            "from": "node-2012-08-22-b778a9fc31296d6b-0008",
+            "to": "node-2012-08-22-9da6eef6c6391d05-0001",
+            "created_by": "u-cybunk"
+        }, {
+            "id": "edge-2012-08-22-b778a9fc31296d6b-000e",
+            "title": "tweeted during",
+            "uri": "",
+            "description": "",
+            "from": "node-2012-08-22-b778a9fc31296d6b-000a",
+            "to": "node-2012-08-22-9da6eef6c6391d05-0001",
+            "created_by": "u-cybunk"
+        }, {
+            "id": "edge-2012-08-22-b778a9fc31296d6b-0011",
+            "title": "is about",
+            "uri": "",
+            "description": "",
+            "from": "node-2012-08-22-b778a9fc31296d6b-0008",
+            "to": "node-2012-08-22-b778a9fc31296d6b-000f",
+            "created_by": "u-cybunk"
+        }, {
+            "id": "edge-2012-08-22-b778a9fc31296d6b-0012",
+            "title": "is about",
+            "uri": "",
+            "description": "",
+            "from": "node-2012-08-22-b778a9fc31296d6b-000a",
+            "to": "node-2012-08-22-b778a9fc31296d6b-000f",
+            "created_by": "u-cybunk"
+        }, {
+            "id": "edge-2012-08-22-5b349e49066c1b01-0002",
+            "title": "is about",
+            "uri": "",
+            "description": "",
+            "from": "node-2012-08-22-b778a9fc31296d6b-000a",
+            "to": "node-2012-08-22-5b349e49066c1b01-0001",
+            "created_by": "u-cybunk"
+        }
+    ]
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/metadataplayer/renkan.htm	Thu Aug 30 18:07:20 2012 +0200
@@ -0,0 +1,89 @@
+<!doctype html>
+<html>
+
+    <head>
+        <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
+        <title>Metadataplayer test with Renkan</title>
+        <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
+        <link href='test.css' rel='stylesheet' type='text/css'>
+        <script type="text/javascript" src="metadataplayer/LdtPlayer-core.js" type="text/javascript"></script>
+        <style type="text/css">
+        #MainContainer {
+            width: 1180px;
+            margin: 0 auto;
+        }
+        #RenkanContainer {
+            float: left;
+            width: 600px;
+            height: 500px;
+            margin: 5px;
+            background: #fff;
+        }
+        </style>
+    </head>
+
+    <body>
+        <h1>Metadataplayer test with Renkan</h1>
+        <div id="MainContainer">
+            <div id="LdtPlayer"></div>
+            <div id="RenkanContainer"></div>
+        </div>
+        <script type="text/javascript">
+    IriSP.libFiles.defaultDir = "libs/";
+    IriSP.language = 'fr';
+    IriSP.widgetsDir = "metadataplayer";
+    var _metadata = {
+        url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/67280b1c-ff30-11e0-a82d-00145ea49a02?callback=?',
+        format: 'ldt'
+    };
+    var _config = {
+        gui: {
+            width : 550,
+            container : 'LdtPlayer',
+            default_options: {
+                metadata: _metadata
+            },
+            css : 'metadataplayer/LdtPlayer-core.css',
+            widgets: [
+                { type: "Slider" },
+                { type: "Controller" },
+                { type: "Polemic" },
+                { type: "Segments" },
+                {
+                    type: "Arrow",
+                    base_height: 4
+                },
+                { type: "Annotation" },
+                { type: "Tweet" },
+                {
+                    type: "Renkan",
+                    container: "RenkanContainer",
+                    data: "json/renkan.json"
+                },
+                { type: "Mediafragment"}
+            ]
+        },
+        player:{
+            type:'auto',
+            live: true, 
+            height: 350, 
+            width: 550, 
+            provider: "rtmp",
+            streamer: function(_url) {
+                var _matches = _url.match(/^[^\/]+\/\/[^\/]+\/[^\/]+\//);
+                if (_matches) {
+                    return _matches[0];
+                } else {
+                    return _url;
+                }
+            },
+            //autostart: true,
+            metadata: _metadata
+        }
+    };
+    
+    _myPlayer = new IriSP.Metadataplayer(_config);
+    
+        </script>
+    </body>
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/metadataplayer/test.css	Thu Aug 30 18:07:20 2012 +0200
@@ -0,0 +1,56 @@
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var,
+b, u, i, center,
+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, 
+menu, nav, output, ruby, section, summary,
+time, mark, audio, video {
+    margin: 0;
+    padding: 0;
+    border: 0;
+    font-size: 100%;
+    font: inherit;
+    vertical-align: baseline;
+}
+
+img a {
+    border: none;
+}
+
+body {
+    background-color: #F7F6F6;
+    color: #003050;
+}
+
+body, p, h1, h2, h3 {
+    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
+}
+
+h1  {
+    margin: 5px 0; text-align: center; font-size: 24px;
+}
+
+ul.pageindex {
+    font-size: 20px; padding-left: 25px; list-style: disc;
+}
+
+h2 {
+    font-size: 20px; margin: 5px 0;
+}
+
+#LdtPlayer {
+    float: left;
+    margin: 10px;
+}
+
+#AnnotationsListContainer {
+    float: left;
+    width: 400px;
+    margin: 10px 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/metadataplayer/update-metadataplayer.sh	Thu Aug 30 18:07:20 2012 +0200
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+echo "Removing files"
+
+rm -rf libs
+rm -rf metadataplayer
+
+echo "Copying Metadataplayer files"
+
+cp -R ../../metadataplayer/test/metadataplayer .
+
+echo "Copying libraries"
+
+cp -R ../../metadataplayer/test/libs .