test/integration/polemic.htm
changeset 843 75ba66457232
parent 842 4ae2247a59f4
child 866 3bf7aa8216e5
equal deleted inserted replaced
53:7b55777486c3 843:75ba66457232
       
     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   Polemic tweet integration test - using Popcorn, jwplayer and the <a href="http://polemictweet.com">PolemicTweet</a> widget.<br>
       
    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   
       
    23   <script  type="text/javascript">
       
    24   IriSP.libFiles.defaultDir = "/metadataplayer/src/js/libs/";
       
    25 IriSP.jwplayer_swf_path = "../libs/player.swf";
       
    26     var file = "polemic_fr.json";
       
    27     var config = {            
       
    28         gui:{
       
    29             width:640,
       
    30             height:800,              
       
    31             container:'LdtPlayer',
       
    32 			default_options: {
       
    33 				metadata:{
       
    34 				  format:'cinelab',
       
    35 				  src:file,
       
    36 				  type:'json'}
       
    37 			},
       
    38             css:'../../src/css/LdtPlayer.css',
       
    39             widgets: [
       
    40  /*           {type: "PolemicWidget",
       
    41              width: 640,
       
    42              height: 50,              
       
    43              requires: [{
       
    44               type: "TooltipWidget",
       
    45               width: 180,
       
    46               height: 160,
       
    47              }],
       
    48             }, */
       
    49             {type: "StackGraphWidget",
       
    50              height: 150,
       
    51             streamgraph: true,
       
    52 /*            tags : [
       
    53             {
       
    54                 "keywords" : [ "#ilReste" ],
       
    55                 "description" : "#ilReste",
       
    56                 "color" : "#1D973D"
       
    57             },
       
    58             {
       
    59                 "keywords" : [ "#ilPart" ],
       
    60                 "description" : "#ilPart",
       
    61                 "color" : "#CE0A15"
       
    62             },
       
    63             {
       
    64                 "keywords" : [ "#change2ton" ],
       
    65                 "description" : "#change2ton",
       
    66                 "color" : "#C5A62D"  
       
    67             },
       
    68             {
       
    69                 "keywords" : [ "#cQui" ],
       
    70                 "description" : "#cQui",
       
    71                 "color" : "#036AAE"
       
    72             } 
       
    73         ],*/
       
    74              requires: [{
       
    75               type: "TooltipWidget",
       
    76               width: 180,
       
    77               height: 160,
       
    78              }],
       
    79             },
       
    80             {type: "SparklineWidget",
       
    81              width: 640,
       
    82              height: 50},
       
    83             {type: "SliderWidget"},
       
    84             {type: "PlayerWidget"},
       
    85             {type: "SegmentsWidget",
       
    86              requires: [{
       
    87               type: "TooltipWidget",
       
    88 			  width: 180,
       
    89               heigh: 160,
       
    90               }],
       
    91             },            
       
    92             {type: "SliceWidget"},            
       
    93             {type: "ArrowWidget"},
       
    94             {type: "AnnotationsWidget"},
       
    95             {type: "TweetsWidget"},
       
    96             {type: "createAnnotationWidget"},
       
    97             {type: "TagCloudWidget",
       
    98             excludeWords: ['#museoweb']},
       
    99             {type: "AnnotationsListWidget",
       
   100             container: "AnnotationsListContainer",
       
   101             ajax_mode: false},
       
   102 //            {type: "TraceWidget"}
       
   103             ]
       
   104         },
       
   105       player:{
       
   106           type:'jwplayer', // player type - 
       
   107           live: true, 
       
   108           height: 300, 
       
   109           width: 640, 
       
   110           provider: "rtmp" 
       
   111       },
       
   112       modules: [
       
   113                { type: "MediaFragment",
       
   114                             metadata:{
       
   115                            format:'cinelab',
       
   116                              src:file,
       
   117                              type:'json'}
       
   118                         }]
       
   119 
       
   120     };
       
   121     
       
   122     IriSP.initPlayer(config, file);
       
   123   </script>
       
   124   
       
   125   
       
   126  </body>
       
   127  <div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div>
       
   128  </html>