metadataplayer/mashup/player.htm
changeset 15 ed7ac7e94090
parent 14 94e058cf84de
child 16 5135ccbf5a5f
equal deleted inserted replaced
14:94e058cf84de 15:ed7ac7e94090
     1 <!doctype html>
       
     2 <html>
       
     3     <head>
       
     4         <title>Preuve de concept Mashup</title>
       
     5         <link rel="stylesheet" type="text/css" href="style.css" />
       
     6         <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
       
     7         <script type="text/javascript" src="../metadataplayer/LdtPlayer-core.js" type="text/javascript"></script>
       
     8     </head>
       
     9     <body>
       
    10         <div class="main-container">
       
    11             <div class="header">
       
    12                 <h1>Hash Cut #</h1>
       
    13             </div>
       
    14             <div class="steps">
       
    15                 <h2>Créer un Hash-cut en 3 étapes&nbsp;:</h2>
       
    16                 <div class="steps-frame">
       
    17                     <div class="step">
       
    18                         <div class="step-icon step-1"></div>
       
    19                         <div class="step-title">S'inscrire et<br />créer un projet</div>
       
    20                     </div>
       
    21                     <div class="step-separator"></div>
       
    22                     <div class="step">
       
    23                         <div class="step-icon step-2"></div>
       
    24                         <div class="step-title">Découper et<br />Assembler</div>
       
    25                     </div>
       
    26                     <div class="step-separator"></div>
       
    27                     <div class="step active">
       
    28                         <div class="step-icon step-3"></div>
       
    29                         <div class="step-title">Partager et<br />regarder&nbsp;!</div>
       
    30                     </div>
       
    31                 </div>
       
    32             </div>
       
    33             <div class="colgauche">
       
    34                 <h2>Mon HashCut</h2>
       
    35                 <hr />
       
    36                 <div id="LdtPlayer"></div>
       
    37             </div>
       
    38             <div class="coldroite">
       
    39                 <div id="mediaList"></div>
       
    40                 <h2>Annotations</h2>
       
    41                 <hr />
       
    42                 <div id="annotationList"></div>
       
    43             </div>
       
    44             <div class="footer">
       
    45                 <hr />
       
    46                 <p style="text-align: right;">&copy; IRI 2012</p>
       
    47             </div>
       
    48         </div>
       
    49     <script type="text/javascript">
       
    50 
       
    51 IriSP.libFiles.defaultDir = "../libs/";
       
    52 IriSP.widgetsDir = "../metadataplayer";
       
    53 IriSP.language = 'fr';
       
    54 var _metadata = {
       
    55     url: 'bab_files/mashup.json',
       
    56 //    url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/b2754186-a0c9-11e0-b8bd-00145ea49a02?callback=?',
       
    57     format: 'ldt'
       
    58 };
       
    59 var _config = {            
       
    60     gui: {
       
    61         width : 630,
       
    62         container : 'LdtPlayer',
       
    63         default_options: {
       
    64             metadata: _metadata
       
    65         },
       
    66         css : '../metadataplayer/LdtPlayer-core.css',
       
    67         widgets: [
       
    68             { type: "Slider" },
       
    69             { type: "Controller" },
       
    70             {
       
    71                 type: "Segments",
       
    72                 annotation_type: false
       
    73             },
       
    74             { type: "Arrow" },
       
    75             {
       
    76                 type: "Annotation",
       
    77                 annotation_type: false
       
    78             },
       
    79             {
       
    80                 type: "MediaList",
       
    81                 container: "mediaList"
       
    82             },
       
    83             {
       
    84                 type: "AnnotationsList",
       
    85                 container: "annotationList",
       
    86                 ajax_url: "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?",
       
    87                 ajax_granularity: 30000,
       
    88                 limit_count: 3
       
    89             },
       
    90             { type: "Mediafragment" }
       
    91         ]
       
    92     },
       
    93     player:{
       
    94         type:'mashup',
       
    95         live: true, 
       
    96         height: 350,
       
    97         width: 630, 
       
    98         provider: "rtmp",
       
    99         mashup_swf : "bab_files/player_bab_ldt.swf",
       
   100         mashup_xml : "bab_files/mashup.xml",
       
   101         autostart: true,
       
   102         metadata: _metadata
       
   103     }
       
   104 };
       
   105 
       
   106 _myPlayer = new IriSP.Metadataplayer(_config);
       
   107 
       
   108     </script>
       
   109     </body>
       
   110 </html>