test/integration/allocine_dossier_independant/polemic-allocine.htm
branchpopcorn-port
changeset 819 9b8e68803f6f
child 820 7968346b9689
equal deleted inserted replaced
818:1d5816a94943 819:9b8e68803f6f
       
     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 - ALLOCINE PLAYER
       
    13   </div>
       
    14   
       
    15   
       
    16  <!-- START Integration  ###################################### -->
       
    17  <!-- SIMPLE PLAYER EXPERIMENTATION -->
       
    18   <script type="text/javascript" src="js/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 json_url = 'allocine_test/exemple.json';
       
    25     
       
    26     IriSP.user = {name: 'awesome_user_name', avatar: 'allocine_test/avatar.png',};
       
    27     IriSP.libdir = "js/libs/";
       
    28     IriSP.widgetsDefaults["createAnnotationWidget"] = {};
       
    29     IriSP.widgetsDefaults["createAnnotationWidget"].cinecast_version = true;
       
    30     IriSP.widgetsDefaults["createAnnotationWidget"].keywords = ["#allocine", "#vodkaster", "#universcine"];
       
    31     IriSP.widgetsDefaults["createAnnotationWidget"].api_endpoint_template = "coucou/{{id}}.json";
       
    32     IriSP.defaults.user = function(){ return IriSP.user; };
       
    33     
       
    34     var config = {            
       
    35         gui:{
       
    36             width:650,
       
    37             height:2100,              
       
    38             container:'LdtPlayer',
       
    39             css:'css/LdtPlayer.css',
       
    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                          metadata:{
       
    75                           format:'cinelab',
       
    76                           src:json_url,
       
    77                           type:'json'}
       
    78                         },
       
    79             {type: "SparklineWidget",
       
    80              width: 640, /* required for this widget */
       
    81              height: 50,            
       
    82                          metadata:{
       
    83                           format:'cinelab',
       
    84                           src:json_url,
       
    85                           type:'json'}
       
    86                         },
       
    87             {type: "SliderWidget",
       
    88                          metadata:{
       
    89                           format:'cinelab',
       
    90                           src:json_url,
       
    91                           type:'json'}
       
    92                         },        
       
    93             {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
       
    94              mode: "radio",
       
    95              metadata:{
       
    96               format:'cinelab',
       
    97               src:json_url,
       
    98               type:'json'}
       
    99             },
       
   100             {type: "SegmentsWidget",
       
   101              metadata:{
       
   102               format:'cinelab',
       
   103               src:json_url,
       
   104               type:'json'},
       
   105              requires: [{
       
   106               type: "TooltipWidget",
       
   107               width: 180,
       
   108               heigh: 160,
       
   109               metadata : {
       
   110                 type:'empty'
       
   111               }
       
   112              }],
       
   113             },                     
       
   114             {type: "ArrowWidget",
       
   115              metadata:{
       
   116               format:'cinelab',
       
   117               src:json_url,
       
   118               type:'json'}
       
   119             },
       
   120             {type: "TweetsWidget",
       
   121                          metadata:{
       
   122                           format:'cinelab',
       
   123                           src:json_url,
       
   124                           type:'json'}
       
   125                         },
       
   126             {type: "createAnnotationWidget",
       
   127                          metadata:{
       
   128                           format:'cinelab',
       
   129                           src:json_url,
       
   130                           type:'json'}
       
   131                         }      
       
   132             ]
       
   133         },
       
   134       player:{
       
   135       type:'allocine', // player type 
       
   136               height: 300, 
       
   137               width: 640,
       
   138               acPlayerUrl: "allocine_test/AcPlayer_v3.0.swf",
       
   139               autoPlay: "true",
       
   140               urlAcData: "allocine_test/data_cinecast.xml",
       
   141               directVideoPath: "http://hd.fr.mediaplayer.allocine.fr/nmedia/18/86/23/92/19282986_fa3_vost_sd_001.flv"
       
   142       },
       
   143       modules: [
       
   144                { type: "MediaFragment",
       
   145                          metadata:{
       
   146                        format:'cinelab',
       
   147                            src:json_url,
       
   148                              type:'json'}
       
   149                         }]
       
   150 
       
   151     };
       
   152     
       
   153     
       
   154     IriSP.initPlayer(config, json_url);
       
   155 
       
   156   </script>
       
   157   
       
   158   
       
   159  </body>
       
   160  <div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div>
       
   161  </html>