test/integration/allocine_dossier_independant/polemic-allocine.htm
branchcinecast-traces
changeset 823 1e7962e1d3ae
parent 820 7968346b9689
child 826 c7ae4f126e51
--- a/test/integration/allocine_dossier_independant/polemic-allocine.htm	Thu Mar 01 17:33:52 2012 +0100
+++ b/test/integration/allocine_dossier_independant/polemic-allocine.htm	Fri Mar 02 13:18:09 2012 +0100
@@ -5,7 +5,7 @@
 <title>Metadataplayer - Polemic tweet integration test</title>
 </head>
 
-<body>
+<body style="background: #000000; color: #ffffff;">
 
   <div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
   <h1>MetaDataPlayer</h1>
@@ -15,7 +15,7 @@
   
  <!-- START Integration  ###################################### -->
  <!-- SIMPLE PLAYER EXPERIMENTATION -->
-  <script type="text/javascript" src="../../../build/LdtPlayer-release.js" type="text/javascript"></script>   
+  <script type="text/javascript" src="js/LdtPlayer-release.js" type="text/javascript"></script>   
   
   <div id="video"></div>
   <div id="LdtPlayer"></div>
@@ -23,10 +23,11 @@
   <script  type="text/javascript">
     var json_url = 'allocine_test/exemple_cinecast.json';
     
-    IriSP.user = {name: 'awesome_user_name', avatar: 'allocine_test/avatar.png',};
+    IriSP.user = {name: 'awesome_user_name', avatar: 'allocine_test/avatar.png'};
     IriSP.libdir = "js/libs/";
     IriSP.widgetsDefaults["createAnnotationWidget"] = {};
     IriSP.widgetsDefaults["createAnnotationWidget"].cinecast_version = true;
+    IriSP.widgetsDefaults["createAnnotationWidget"].polemic_mode = false;
     IriSP.widgetsDefaults["createAnnotationWidget"].keywords = ["#allocine", "#vodkaster", "#universcine"];
     IriSP.widgetsDefaults["createAnnotationWidget"].api_endpoint_template = "coucou/{{id}}.json";
     IriSP.defaults.user = function(){ return IriSP.user; };
@@ -37,30 +38,15 @@
             height:2100,              
             container:'LdtPlayer',
             css:'css/LdtPlayer.css',
-            widgets: [
-            {type: "StackGraphWidget",
-                tags : [
-                    {
-                        "keywords" : [ "élève", "souleyman", "souleiman", "koumba", "kumba", "karl", "esmeralda" ],
-                        "description" : "Mentions des élèves",
-                        "color" : "#CE0A15",
-                    },
-                    {
-                        "keywords" : [ "F.M", "françois" ],
-                        "description" : "Mentions de François",
-                        "color" : "#036AAE",
-                    },
-                    {
-                        "keywords" : [ "plan", "pano", "caméra", "plongée" ],
-                        "description" : "Descriptions de plans",
-                        "color" : "#C5A62D",   
-                    },
-                ],
-               metadata:{
+            default_options : {
+                metadata:{
                 format:'cinelab',
                 src: json_url,
                 type:'json'},
-                
+                width: 640
+            },
+            widgets: [
+            {type: "StackGraphWidget",
                requires: [{
                 type: "TooltipWidget",
                 width: 180,
@@ -70,65 +56,13 @@
                }],
             },            
             {type: "AnnotationsListWidget",
-             container: "AnnotationsListContainer",             
-                         metadata:{
-                          format:'cinelab',
-                          src:json_url,
-                          type:'json'}
-                        },
-            {type: "SparklineWidget",
-             width: 640, /* required for this widget */
-             height: 50,            
-                         metadata:{
-                          format:'cinelab',
-                          src:json_url,
-                          type:'json'}
-                        },
-            {type: "SliderWidget",
-                         metadata:{
-                          format:'cinelab',
-                          src:json_url,
-                          type:'json'}
-                        },        
+             container: "AnnotationsListContainer"},
+            {type: "SliderWidget"},        
             {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
-             mode: "radio",
-             metadata:{
-              format:'cinelab',
-              src:json_url,
-              type:'json'}
-            },
-            {type: "SegmentsWidget",
-             metadata:{
-              format:'cinelab',
-              src:json_url,
-              type:'json'},
-             requires: [{
-              type: "TooltipWidget",
-              width: 180,
-              heigh: 160,
-              metadata : {
-                type:'empty'
-              }
-             }],
-            },                     
-            {type: "ArrowWidget",
-             metadata:{
-              format:'cinelab',
-              src:json_url,
-              type:'json'}
-            },
-            {type: "TweetsWidget",
-                         metadata:{
-                          format:'cinelab',
-                          src:json_url,
-                          type:'json'}
-                        },
-            {type: "createAnnotationWidget",
-                         metadata:{
-                          format:'cinelab',
-                          src:json_url,
-                          type:'json'}
-                        }      
+             mode: "radio"},                     
+            {type: "ArrowWidget"},
+            {type: "TweetsWidget"},
+            {type: "createAnnotationWidget"}      
             ]
         },
       player:{
@@ -136,9 +70,8 @@
               height: 300, 
               width: 640,
               acPlayerUrl: "allocine_test/AcPlayer_v3.0.swf",
-              autoPlay: "true",
-              urlAcData: "allocine_test/data_cinecast.xml",
-              directVideoPath: "http://hd.fr.mediaplayer.allocine.fr/nmedia/18/86/23/92/19282986_fa3_vost_sd_001.flv"
+              autoPlay: "false",
+              urlAcData: "allocine_test/data_cinecast.xml"
       },
       modules: [
                { type: "MediaFragment",