test/integration/youtube.htm
branchlab-port
changeset 504 02daece5dfda
parent 457 fbcb991cc595
child 744 76400fd4ce70
equal deleted inserted replaced
503:81207b472e2c 504:02daece5dfda
    14 	
    14 	
    15 	
    15 	
    16  <!-- START Integration  ###################################### -->
    16  <!-- START Integration  ###################################### -->
    17  <!-- SIMPLE PLAYER EXPERIMENTATION -->
    17  <!-- SIMPLE PLAYER EXPERIMENTATION -->
    18 	<script type="text/javascript" src="../../build/LdtPlayer-release.js"></script> 
    18 	<script type="text/javascript" src="../../build/LdtPlayer-release.js"></script> 
    19 	<script src="../../res/js/jquery.min.js"></script>
    19 
    20 	<script src="../../res/js/jquery.tools.min.js"></script>
       
    21 	<script src="../../res/js/jquery-ui.min.js"></script>
       
    22 	<div id="LdtPlayer"></div>
    20 	<div id="LdtPlayer"></div>
    23 	
    21 	
    24 	<script  type="text/javascript">
    22 	<script  type="text/javascript">
    25 		$(document).ready(function() {
       
    26 		var config = {						
    23 		var config = {						
    27 				gui:{
    24 				gui:{
    28 						width:650,
    25 						width:650,
    29 						height:2100,							
    26 						height:2100,							
    30 						container:'LdtPlayer',
    27 						container:'LdtPlayer',
    41 						 metadata:{
    38 						 metadata:{
    42 						  format:'cinelab',
    39 						  format:'cinelab',
    43 						  src:'../test.json',
    40 						  src:'../test.json',
    44 						  type:'json'}
    41 						  type:'json'}
    45 						},
    42 						},
    46 						
    43 
    47 						{type: "SegmentsWidget", // please note that type refers directly to the constructor of the widget.
    44 						{type: "SegmentsWidget", // please note that type refers directly to the constructor of the widget.
       
    45 						 mode: "radio",
       
    46 						 metadata:{
       
    47 						  format:'cinelab',
       
    48 						  src:'../test.json',
       
    49 						  type:'json'},
       
    50               requires: [{
       
    51               type: "TooltipWidget",
       
    52               width: 180,
       
    53               heigh: 160,
       
    54               metadata : {
       
    55                 type:'empty'
       
    56               }
       
    57              }]
       
    58 						},
       
    59 												
       
    60 						{type: "ArrowWidget", // please note that type refers directly to the constructor of the widget.
    48 						 mode: "radio",
    61 						 mode: "radio",
    49 						 metadata:{
    62 						 metadata:{
    50 						  format:'cinelab',
    63 						  format:'cinelab',
    51 						  src:'../test.json',
    64 						  src:'../test.json',
    52 						  type:'json'}
    65 						  type:'json'}
    53 						},
    66 						},
    54 						
    67             
    55 						{type: "AnnotationsWidget", // please note that type refers directly to the constructor of the widget.
    68 						{type: "AnnotationsWidget", // please note that type refers directly to the constructor of the widget.
    56 						 mode: "radio",
    69 						 mode: "radio",
    57 						 metadata:{
    70 						 metadata:{
    58 						  format:'cinelab',
    71 						  format:'cinelab',
    59 						  src:'../test.json',
    72 						  src:'../test.json',
    70 				  width: 640, 
    83 				  width: 640, 
    71 				  provider: "rtmp" 
    84 				  provider: "rtmp" 
    72 				}
    85 				}
    73 		};
    86 		};
    74 		
    87 		
    75 		IriSP.loadLibs(IriSP.lib, config.gui.css, '../test.json',
    88 		IriSP.loadLibs(IriSP.lib, config, '../test.json',
    76 			function() { 	
    89 			function() { 	
    77 							var layoutManager = new IriSP.LayoutManager(config.gui.container);
    90 							var layoutManager = new IriSP.LayoutManager(config.gui.container);
    78 							var pop = IriSP.configurePopcorn(layoutManager, config.player);
    91 							var pop = IriSP.configurePopcorn(layoutManager, config.player);
    79 							
    92 							
    80 							var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); });
    93 							var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); });
    81 		
       
    82 		});	
       
    83 	</script>
    94 	</script>
    84 <div id='Ldt-Root'>
    95 <div id='Ldt-Root'>
    85 	<div id='Ldt-PlaceHolder'>
    96 	<div id='Ldt-PlaceHolder'>
    86 	</div>
    97 	</div>
    87 </div>	
    98 </div>