test/integration/youtube.htm
branchpopcorn-port
changeset 215 e03f5f886f52
child 227 0eb060a3b656
equal deleted inserted replaced
214:50c4609e50f4 215:e03f5f886f52
       
     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 
       
     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 	Test d'intégration du widget du player avec Popcorn (Youtube).
       
    13 	</div>
       
    14 	
       
    15 	
       
    16  <!-- START Integration  ###################################### -->
       
    17  <!-- SIMPLE PLAYER EXPERIMENTATION -->
       
    18 	<script type="text/javascript" src="../../build/LdtPlayer-release.js"></script> 
       
    19 	<script src="../../res/js/jquery.min.js"></script>
       
    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>
       
    23 	
       
    24 	<script  type="text/javascript">
       
    25 		$(document).ready(function() {
       
    26 		var config = {						
       
    27 				gui:{
       
    28 						width:650,
       
    29 						height:2100,							
       
    30 						container:'LdtPlayer',
       
    31 						css:'../../src/css/LdtPlayer.css',
       
    32 					  widgets: [					  	
       
    33 						{type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
       
    34 						 mode: "radio",
       
    35 						 metadata:{
       
    36 						  format:'cinelab',
       
    37 						  src:'../test.json',
       
    38 						  type:'json'}
       
    39 						},
       
    40 						
       
    41 						{type: "SegmentsWidget", // please note that type refers directly to the constructor of the widget.
       
    42 						 mode: "radio",
       
    43 						 metadata:{
       
    44 						  format:'cinelab',
       
    45 						  src:'../test.json',
       
    46 						  type:'json'}
       
    47 						},
       
    48 						
       
    49 						{type: "AnnotationsWidget", // please note that type refers directly to the constructor of the widget.
       
    50 						 mode: "radio",
       
    51 						 metadata:{
       
    52 						  format:'cinelab',
       
    53 						  src:'../test.json',
       
    54 						  type:'json'}
       
    55 						},
       
    56 					  	
       
    57 					  ]
       
    58 			  },
       
    59 			player:{
       
    60 				type:'youtube', // player type
       
    61 				  // the rest is player-dependent configuration options.
       
    62 				  video: "http://www.youtube.com/watch?v=rrkrvAUbU9Y",
       
    63 				  height: 400, 
       
    64 				  width: 640, 
       
    65 				  provider: "rtmp" 
       
    66 				}
       
    67 		};
       
    68 		
       
    69 		IriSP.loadLibs(IriSP.lib, config.gui.css, 
       
    70 			function() { 	
       
    71 							var layoutManager = new IriSP.LayoutManager(config.gui.container);
       
    72 							var pop = IriSP.configurePopcorn(layoutManager, config.player);
       
    73 							
       
    74 							var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); });
       
    75 		
       
    76 		});	
       
    77 	</script>
       
    78 <div id='Ldt-Root'>
       
    79 	<div id='Ldt-PlaceHolder'>
       
    80 	</div>
       
    81 </div>	
       
    82 <!-- END  ################  ###################################### -->
       
    83  </body>
       
    84  </html>