test/integration/polemic.htm
branchnew-model
changeset 882 61c384dda19e
parent 881 f11b234497f7
child 883 d35ad8111c5e
equal deleted inserted replaced
881:f11b234497f7 882:61c384dda19e
     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-core.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.widgetsDir = "/metadataplayer/src/widgets"
       
    26 IriSP.jwplayer_swf_path = "../libs/player.swf";
       
    27     var _metadata = {
       
    28         url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/13b0aa52-336b-11e0-b233-00145ea49a02?callback=?',
       
    29         format: 'ldt'
       
    30     };
       
    31     var _config = {            
       
    32         gui: {
       
    33             width:640,
       
    34             height:800,
       
    35             container:'LdtPlayer',
       
    36 			default_options: {
       
    37 				metadata: _metadata
       
    38 			},
       
    39             css:'../../src/css/LdtPlayer-release.css',
       
    40             widgets: [
       
    41  /*           {type: "PolemicWidget",
       
    42              width: 640,
       
    43              height: 50,              
       
    44              requires: [{
       
    45               type: "TooltipWidget",
       
    46               width: 180,
       
    47               height: 160,
       
    48              }],
       
    49             }, 
       
    50             {type: "StackGraphWidget",
       
    51              height: 150,
       
    52             streamgraph: true,
       
    53              requires: [{
       
    54               type: "TooltipWidget",
       
    55               width: 180,
       
    56               height: 160,
       
    57              }],
       
    58             },
       
    59             {type: "SparklineWidget",
       
    60              width: 640,
       
    61              height: 50},
       
    62             {type: "PlayerWidget"},
       
    63             {type: "SegmentsWidget",
       
    64              requires: [{
       
    65               type: "TooltipWidget",
       
    66 			  width: 180,
       
    67               heigh: 160,
       
    68               }],
       
    69             },            
       
    70             {type: "SliceWidget"},            
       
    71             {type: "ArrowWidget"},
       
    72             {type: "AnnotationsWidget"},
       
    73             {type: "TweetsWidget"},
       
    74             {type: "createAnnotationWidget"},
       
    75             {type: "TagCloudWidget",
       
    76             excludeWords: ['#museoweb']},, */
       
    77 //            {type: "TraceWidget"}
       
    78                 {
       
    79                     type: "Sparkline"
       
    80                 },
       
    81                 {
       
    82                     type: "Slider"
       
    83                 },
       
    84                 {
       
    85                     type: "Controller"
       
    86                 },
       
    87                 {
       
    88                     type: "Polemic"
       
    89                 },
       
    90                 {
       
    91                     type: "Segments"
       
    92                 },
       
    93                 {
       
    94                     type: "Slice"
       
    95                 },
       
    96                 {
       
    97                     type: "Arrow"
       
    98                 },
       
    99                 {
       
   100                     type: "Annotation"
       
   101                 },
       
   102                 {
       
   103                     type: "Tweet"
       
   104                 },
       
   105                 {
       
   106                     type: "Tagcloud"
       
   107                 },
       
   108                 {
       
   109                     type: "AnnotationsList",
       
   110                     //ajax_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?", 
       
   111                     foreign_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}",
       
   112                     annotation_type : "tweet",
       
   113                     container: "AnnotationsListContainer"
       
   114                 },
       
   115                 { type: "Mediafragment"}
       
   116             ]
       
   117         },
       
   118       player:{
       
   119           type:'jwplayer', // player type
       
   120           live: true, 
       
   121           height: 300, 
       
   122           width: 640, 
       
   123           provider: "rtmp" 
       
   124       },
       
   125       modules: [
       
   126            /*    { type: "MediaFragment",
       
   127                             metadata:{
       
   128                            format:'cinelab',
       
   129                              src:file,
       
   130                              type:'json'}
       
   131                         }*/]
       
   132 
       
   133     };
       
   134     
       
   135     var _myPlayer = new IriSP.Metadataplayer(_config, _metadata);
       
   136   </script>
       
   137   
       
   138   
       
   139  </body>
       
   140  <div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div>
       
   141  </html>