test/integration/polemic-platform.htm
branchpopcorn-port
changeset 595 29d86e6c61a6
parent 592 35459f92bb66
child 598 50cfc3600365
equal deleted inserted replaced
594:96af41097260 595:29d86e6c61a6
    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 project_id = "af3b99e4-b695-11df-bfde-00145ea4a2be";
    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',
    29             css:'../../src/css/LdtPlayer.css',
    30             css:'../../src/css/LdtPlayer.css',
    30             widgets: [
    31             widgets: [
    31             {type: "SliderWidget",
    32             {type: "SliderWidget",
    32 						 metadata:{
    33 						 metadata:{
    33 						  format:'cinelab',
    34 						  format:'cinelab',
    34 						  src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
    35 						  src:'http://localhost//pf/ldtplatform/ldt/cljson/id/' + project_id,
    35 						  type:'json'}
    36 						  type:'json'}
    36 						},            
    37 						},            
    37             
    38             
    38             {type: "AnnotationsListWidget",
    39             {type: "AnnotationsListWidget",
    39              container: "AnnotationsListContainer",             
    40              container: "AnnotationsListContainer",             
    40 						 metadata:{
    41 						 metadata:{
    41 						  format:'cinelab',
    42 						  format:'cinelab',
    42 						  src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
    43 						  src:'http://localhost//pf/ldtplatform/ldt/cljson/id/' + project_id,
    43 						  type:'json'}
    44 						  type:'json'}
    44 						},
    45 						},
    45             {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
    46             {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
    46              mode: "radio",
    47              mode: "radio",
    47              metadata:{
    48              metadata:{
    48               format:'cinelab',
    49               format:'cinelab',
    49               src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
    50               src:'http://localhost//pf/ldtplatform/ldt/cljson/id/' + project_id,
    50               type:'json'}
    51               type:'json'}
    51             },
    52             },
    52             {type: "SegmentsWidget",
    53             {type: "SegmentsWidget",
    53              metadata:{
    54              metadata:{
    54               format:'cinelab',
    55               format:'cinelab',
    55               src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
    56               src:'http://localhost//pf/ldtplatform/ldt/cljson/id/' + project_id,
    56               type:'json'},
    57               type:'json'},
    57              requires: [{
    58              requires: [{
    58               type: "TooltipWidget",
    59               type: "TooltipWidget",
    59               width: 180,
    60               width: 180,
    60               heigh: 160,
    61               heigh: 160,
    64              }],
    65              }],
    65             },            
    66             },            
    66             {type: "SliceWidget",
    67             {type: "SliceWidget",
    67              metadata:{
    68              metadata:{
    68               format:'cinelab',
    69               format:'cinelab',
    69               src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
    70               src:'http://localhost//pf/ldtplatform/ldt/cljson/id/' + project_id,
    70               type:'json'}
    71               type:'json'}
    71             },            
    72             },            
    72             {type: "ArrowWidget",
    73             {type: "ArrowWidget",
    73              metadata:{
    74              metadata:{
    74               format:'cinelab',
    75               format:'cinelab',
    75               src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
    76               src:'http://localhost//pf/ldtplatform/ldt/cljson/id/' + project_id,
    76               type:'json'}
    77               type:'json'}
    77             },
    78             },
    78 
    79 
    79 
    80 
    80             {type: "AnnotationsWidget",
    81             {type: "AnnotationsWidget",
    81 						 metadata:{
    82 						 metadata:{
    82 						  format:'cinelab',
    83 						  format:'cinelab',
    83 						  src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
    84 						  src:'http://localhost//pf/ldtplatform/ldt/cljson/id/' + project_id,
    84 						  type:'json'}
    85 						  type:'json'}
    85 						},
    86 						},
    86             {type: "TweetsWidget",
    87             {type: "TweetsWidget",
    87 						 metadata:{
    88 						 metadata:{
    88 						  format:'cinelab',
    89 						  format:'cinelab',
    89 						  src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
    90 						  src:'http://localhost//pf/ldtplatform/ldt/cljson/id/' + project_id,
    90 						  type:'json'}
    91 						  type:'json'}
    91 						},
    92 						},
    92             {type: "createAnnotationWidget",
    93             {type: "createAnnotationWidget",
    93 						 metadata:{
    94 						 metadata:{
    94 						  format:'cinelab',
    95 						  format:'cinelab',
    95 						  src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
    96 						  src:'http://localhost//pf/ldtplatform/ldt/cljson/id/' + project_id,
    96 						  type:'json'}
    97 						  type:'json'}
    97 						}      
    98 						}      
    98             ]
    99             ]
    99         },
   100         },
   100       player:{
   101       player:{
   106       },
   107       },
   107       modules: [
   108       modules: [
   108                { type: "MediaFragment",
   109                { type: "MediaFragment",
   109   			     		 metadata:{
   110   			     		 metadata:{
   110 	  	  			   format:'cinelab',
   111 	  	  			   format:'cinelab',
   111 		  				   src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
   112 		  				   src:'http://localhost//pf/ldtplatform/ldt/cljson/id/' + project_id,
   112 						     type:'json'}
   113 						     type:'json'}
   113 						}]
   114 						}]
   114 
   115 
   115     };
   116     };
   116     
   117