test/integration/polemic.htm
branchpopcorn-port
changeset 676 499d9693d066
parent 667 2407ecee1169
child 696 94f3e60b322a
equal deleted inserted replaced
675:82a5ebbedc83 676:499d9693d066
    19   
    19   
    20   <div id="video"></div>
    20   <div id="video"></div>
    21   <div id="LdtPlayer"></div>
    21   <div id="LdtPlayer"></div>
    22   
    22   
    23   <script  type="text/javascript">
    23   <script  type="text/javascript">
       
    24     var file = "twitterized.json";
    24     var config = {            
    25     var config = {            
    25         gui:{
    26         gui:{
    26             width:650,
    27             width:650,
    27             height:2100,              
    28             height:2100,              
    28             container:'LdtPlayer',
    29             container:'LdtPlayer',
    31               {type: "PolemicWidget",
    32               {type: "PolemicWidget",
    32              width: 640, /* required for this widget */
    33              width: 640, /* required for this widget */
    33              height: 50,
    34              height: 50,
    34              metadata:{
    35              metadata:{
    35               format:'cinelab',
    36               format:'cinelab',
    36               src:'polemic_fr.json',
    37               src:file,
    37               type:'json'},
    38               type:'json'},
    38               
    39               
    39              requires: [{
    40              requires: [{
    40               type: "TooltipWidget",
    41               type: "TooltipWidget",
    41               width: 180,
    42               width: 180,
    49             },
    50             },
    50             {
    51             {
    51                 type: "StackGraphWidget",
    52                 type: "StackGraphWidget",
    52                 metadata: {
    53                 metadata: {
    53                     format:'cinelab',
    54                     format:'cinelab',
    54                     src:'polemic_fr.json',
    55                     src:file,
    55                     type:'json'
    56                     type:'json'
    56                 },requires: [{
    57                 },requires: [{
    57                   type: "TooltipWidget",
    58                   type: "TooltipWidget",
    58                   width: 180,
    59                   width: 180,
    59                   heigh: 160,
    60                   heigh: 160,
    66             {type: "SparklineWidget",
    67             {type: "SparklineWidget",
    67              width: 640, /* required for this widget */
    68              width: 640, /* required for this widget */
    68              height: 50,
    69              height: 50,
    69 						 metadata:{
    70 						 metadata:{
    70 						  format:'cinelab',
    71 						  format:'cinelab',
    71 						  src:'polemic_fr.json',
    72 						  src:file,
    72 						  type:'json'}
    73 						  type:'json'}
    73 						},
    74 						},
    74             {type: "SliderWidget",
    75             {type: "SliderWidget",
    75 						 metadata:{
    76 						 metadata:{
    76 						  format:'cinelab',
    77 						  format:'cinelab',
    77 						  src:'polemic_fr.json',
    78 						  src:file,
    78 						  type:'json'}
    79 						  type:'json'}
    79 						},
    80 						},
    80             {type: "AnnotationsListWidget",
    81             {type: "AnnotationsListWidget",
    81              container: "AnnotationsListContainer",             
    82              container: "AnnotationsListContainer",             
    82 						 metadata:{
    83 						 metadata:{
    83 						  format:'cinelab',
    84 						  format:'cinelab',
    84 						  src:'polemic_fr.json',
    85 						  src:file,
    85 						  type:'json'}
    86 						  type:'json'}
    86 						},
    87 						},
    87             {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
    88             {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
    88              mode: "radio",
    89              mode: "radio",
    89              metadata:{
    90              metadata:{
    90               format:'cinelab',
    91               format:'cinelab',
    91               src:'polemic_fr.json',
    92               src:file,
    92               type:'json'}
    93               type:'json'}
    93             },
    94             },
    94             {type: "SegmentsWidget",
    95             {type: "SegmentsWidget",
    95              metadata:{
    96              metadata:{
    96               format:'cinelab',
    97               format:'cinelab',
    97               src:'polemic_fr.json',
    98               src:file,
    98               type:'json'},
    99               type:'json'},
    99              requires: [{
   100              requires: [{
   100               type: "TooltipWidget",
   101               type: "TooltipWidget",
   101               width: 180,
   102               width: 180,
   102               heigh: 160,
   103               heigh: 160,
   106              }],
   107              }],
   107             },            
   108             },            
   108             {type: "SliceWidget",
   109             {type: "SliceWidget",
   109              metadata:{
   110              metadata:{
   110               format:'cinelab',
   111               format:'cinelab',
   111               src:'polemic_fr.json',
   112               src:file,
   112               type:'json'}
   113               type:'json'}
   113             },            
   114             },            
   114             {type: "ArrowWidget",
   115             {type: "ArrowWidget",
   115              metadata:{
   116              metadata:{
   116               format:'cinelab',
   117               format:'cinelab',
   117               src:'polemic_fr.json',
   118               src:file,
   118               type:'json'}
   119               type:'json'}
   119             },
   120             },
   120 
   121 
   121 
   122 
   122             {type: "AnnotationsWidget",
   123             {type: "AnnotationsWidget",
   123 						 metadata:{
   124 						 metadata:{
   124 						  format:'cinelab',
   125 						  format:'cinelab',
   125 						  src:'polemic_fr.json',
   126 						  src:file,
   126 						  type:'json'}
   127 						  type:'json'}
   127 						},
   128 						},
   128             {type: "TweetsWidget",
   129             {type: "TweetsWidget",
   129 						 metadata:{
   130 						 metadata:{
   130 						  format:'cinelab',
   131 						  format:'cinelab',
   131 						  src:'polemic_fr.json',
   132 						  src:file,
   132 						  type:'json'}
   133 						  type:'json'}
   133 						},
   134 						},
   134             {type: "createAnnotationWidget",
   135             {type: "createAnnotationWidget",
   135 						 metadata:{
   136 						 metadata:{
   136 						  format:'cinelab',
   137 						  format:'cinelab',
   137 						  src:'polemic_fr.json',
   138 						  src:file,
   138 						  type:'json'}
   139 						  type:'json'}
   139 						}      
   140 						}      
   140             ]
   141             ]
   141         },
   142         },
   142       player:{
   143       player:{
   148       },
   149       },
   149       modules: [
   150       modules: [
   150                { type: "MediaFragment",
   151                { type: "MediaFragment",
   151   			     		 metadata:{
   152   			     		 metadata:{
   152 	  	  			   format:'cinelab',
   153 	  	  			   format:'cinelab',
   153 		  				   src:'polemic_fr.json',
   154 		  				   src:file,
   154 						     type:'json'}
   155 						     type:'json'}
   155 						}]
   156 						}]
   156 
   157 
   157     };
   158     };
   158     
   159