test/integration/polemic.htm
branchpopcorn-port
changeset 169 427632a324d5
child 178 83241c5139a7
equal deleted inserted replaced
168:a14343a9e897 169:427632a324d5
       
     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 <title>Test d'intégration de l'initialisation</title>
       
     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 polemic tweet.
       
    13 	</div>
       
    14 	
       
    15 	
       
    16  <!-- START Integration  ###################################### -->
       
    17  <!-- SIMPLE PLAYER EXPERIMENTATION -->
       
    18 	<script type="text/javascript" src="../../build/LdtPlayer-release.js" type="text/javascript"></script> 
       
    19 	<script type="text/javascript" src="../../unittests/mockSerializer.js" type="text/javascript"></script> 
       
    20 	<script src="../../res/js/jquery.min.js" type="text/javascript"></script>
       
    21 	<script src="../../res/js/jquery.tools.min.js" type="text/javascript"></script>
       
    22 	<script src="../../res/js/jquery-ui.min.js" type="text/javascript"></script>
       
    23 	
       
    24 	<div id="video"></div>
       
    25 	<div id="LdtPlayer"></div>
       
    26 	
       
    27 	<script  type="text/javascript">
       
    28 		$(document).ready(function() {
       
    29 		var config = {						
       
    30 				gui:{
       
    31 						width:650,
       
    32 						height:2100,							
       
    33 						container:'LdtPlayer',
       
    34 						css:'../../src/css/LdtPlayer.css',
       
    35 					  widgets: [
       
    36 						{type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
       
    37 						 mode: "radio",
       
    38 						 metadata:{
       
    39 						  format:'cinelab',
       
    40 						  src:'../test.json',
       
    41 						  type:'json'}
       
    42 						},
       
    43 						{type: "PolemicWidget", 
       
    44 						 metadata:{
       
    45 						  format:'cinelab',
       
    46 						  src:'polemic.json',
       
    47 						  type:'json'}
       
    48 						},
       
    49 					   {type: "SegmentsWidget", 
       
    50 						 metadata:{
       
    51 						  format:'cinelab',
       
    52 						  src:'../test.json',
       
    53 						  type:'json'}
       
    54 						},
       
    55 					  		
       
    56 					  ]
       
    57 			  },
       
    58 			player:{
       
    59 			type:'jwplayer', // player type
       
    60               container: 'PopcornContainer',
       
    61               // the rest is player-dependent configuration options.
       
    62               file : "video/franceculture/franceculture_retourdudimanche20100620.flv", 
       
    63               streamer: "rtmp://media.iri.centrepompidou.fr/ddc_player/", 
       
    64               flashplayer : '../libs/player.swf',
       
    65               live: true, 
       
    66               "controlbar.position" : "none", 
       
    67               height: 300, 
       
    68               width: 200, 
       
    69               provider: "rtmp" 
       
    70             }
       
    71 		};
       
    72 		
       
    73 		IriSP.loadLibs(IriSP.lib, config.gui.css, 
       
    74 			function() { 	
       
    75 							var layoutManager = new IriSP.LayoutManager(config.gui.container);
       
    76 							var pop = IriSP.configurePopcorn(layoutManager, config.player);
       
    77 							
       
    78 							var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); });
       
    79 		
       
    80 		});
       
    81 	</script>
       
    82 	
       
    83 	
       
    84  </body>
       
    85  <div id="PopcornContainer"></div>
       
    86  </html>