test/integration/polemic-festival.htm
changeset 952 693c282aa4e9
parent 951 13fed6c21d51
child 953 b58eda0ce5df
equal deleted inserted replaced
951:13fed6c21d51 952:693c282aa4e9
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
       
     2 <html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
       
     3 
       
     4 <head>
       
     5 <title>Metadataplayer - Polemic tweet integration test</title>
       
     6 </head>
       
     7 
       
     8 <body>
       
     9 
       
    10   <div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
       
    11   <h1>MetaDataPlayer</h1>
       
    12   Integration test - Using an ldtplatform located at http://localhost/pf/
       
    13   </div>
       
    14   
       
    15   
       
    16  <!-- START Integration  ###################################### -->
       
    17  <!-- SIMPLE PLAYER EXPERIMENTATION -->
       
    18   <script type="text/javascript" src="../../build/LdtPlayer-release.js" type="text/javascript"></script>   
       
    19   
       
    20   <div id="video"></div>
       
    21   <div id="LdtPlayer"></div>
       
    22   <div id="Sparkline"></div>
       
    23   <script  type="text/javascript">
       
    24     var platf_url = IriSP.platform_url;
       
    25     var project_id = "a0593b58-f258-11df-80e1-00145ea4a2be";
       
    26     var json_url = platf_url + '/ldtplatform/ldt/cljson/id/' + project_id;
       
    27     var config = {            
       
    28         gui:{
       
    29             width:650,
       
    30             height:2100,              
       
    31             container:'LdtPlayer',
       
    32             css:'../../src/css/LdtPlayer.css',
       
    33 			default_options : {
       
    34 			 metadata:{
       
    35                           format:'cinelab',
       
    36                           src:json_url,
       
    37                           type:'json'}
       
    38             },
       
    39 			
       
    40             widgets: [
       
    41             {type: "StackGraphWidget",
       
    42                 tags : [
       
    43                     {
       
    44                         "keywords" : [ "élève", "souleyman", "souleiman", "koumba", "kumba", "karl", "esmeralda" ],
       
    45                         "description" : "Mentions des élèves",
       
    46                         "color" : "#CE0A15",
       
    47                     },
       
    48                     {
       
    49                         "keywords" : [ "F.M", "françois" ],
       
    50                         "description" : "Mentions de François",
       
    51                         "color" : "#036AAE",
       
    52                     },
       
    53                     {
       
    54                         "keywords" : [ "plan", "pano", "caméra", "plongée" ],
       
    55                         "description" : "Descriptions de plans",
       
    56                         "color" : "#C5A62D",   
       
    57                     },
       
    58                 ],
       
    59                metadata:{
       
    60                 format:'cinelab',
       
    61                 src: json_url,
       
    62                 type:'json'},
       
    63                 
       
    64                requires: [{
       
    65                 type: "TooltipWidget",
       
    66                 width: 180,
       
    67                 heigh: 160,
       
    68                 metadata : {type:'empty'
       
    69                 }
       
    70                }],
       
    71             },            
       
    72             {type: "AnnotationsListWidget",
       
    73              container: "AnnotationsListContainer"},                                   
       
    74             {type: "SparklineWidget",
       
    75              width: 640, /* required for this widget */
       
    76              height: 50,
       
    77 			},
       
    78             {type: "SliderWidget"},        
       
    79             {type: "PlayerWidget"},
       
    80             {type: "SegmentsWidget",             
       
    81              requires: [{
       
    82               type: "TooltipWidget",
       
    83               width: 180,
       
    84               heigh: 160,
       
    85               metadata : {
       
    86                 type:'empty'
       
    87               }
       
    88              }],
       
    89             },                     
       
    90             {type: "ArrowWidget",           
       
    91             },
       
    92             {type: "TweetsWidget",                       
       
    93             },
       
    94             {type: "createAnnotationWidget"}   
       
    95             ]
       
    96         },
       
    97       player:{
       
    98       type:'jwplayer', // player type
       
    99               live: true, 
       
   100               height: 300, 
       
   101               width: 640, 
       
   102               provider: "rtmp" 
       
   103       },
       
   104       modules: [
       
   105                { type: "MediaFragment",
       
   106                          metadata:{
       
   107                        format:'cinelab',
       
   108                            src:json_url,
       
   109                              type:'json'}
       
   110                         }]
       
   111 
       
   112     };
       
   113     
       
   114     IriSP.initPlayer(config, json_url);
       
   115 
       
   116   </script>
       
   117   
       
   118   
       
   119  </body>
       
   120  <div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div>
       
   121  </html>