test/integration/polemic.htm
author hamidouk
Tue, 08 Nov 2011 10:53:21 +0100
branchpopcorn-port
changeset 208 49c7eec0955d
parent 193 336b6c88146c
child 213 d65dafb9273d
permissions -rw-r--r--
a couple changes to the integration testing file.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
178
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
     2
<html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
     3
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
     4
<head>
208
49c7eec0955d a couple changes to the integration testing file.
hamidouk
parents: 193
diff changeset
     5
<title>Metadataplayer - Polemic tweet integration test</title>
178
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
     6
</head>
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
     7
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
     8
<body>
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
     9
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    10
	<div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    11
	<h1>MetaDataPlayer </h1>
208
49c7eec0955d a couple changes to the integration testing file.
hamidouk
parents: 193
diff changeset
    12
	Polemic tweet integration test<br>
178
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    13
	</div>
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    14
	
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    15
	
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    16
 <!-- START Integration  ###################################### -->
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    17
 <!-- SIMPLE PLAYER EXPERIMENTATION -->
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    18
	<script type="text/javascript" src="../../build/LdtPlayer-release.js" type="text/javascript"></script> 
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    19
	<script type="text/javascript" src="../../unittests/mockSerializer.js" type="text/javascript"></script> 
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    20
	<script src="../../res/js/jquery.min.js" type="text/javascript"></script>
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    21
	<script src="../../res/js/jquery.tools.min.js" type="text/javascript"></script>
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    22
	<script src="../../res/js/jquery-ui.min.js" type="text/javascript"></script>
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    23
	
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    24
	<div id="video"></div>
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    25
	<div id="LdtPlayer"></div>
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    26
	
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    27
	<script  type="text/javascript">
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    28
		$(document).ready(function() {
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    29
		var config = {						
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    30
				gui:{
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    31
						width:650,
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    32
						height:2100,							
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    33
						container:'LdtPlayer',
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    34
						css:'../../src/css/LdtPlayer.css',
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    35
					  widgets: [
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    36
					  	{type: "PolemicWidget",
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    37
						 width: 640, /* required for this widget */
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    38
						 height: 50,
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    39
						 heightmax: 50,
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    40
						 metadata:{
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    41
						  format:'cinelab',
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    42
						  src:'polemic_fr.json',
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    43
						  type:'json'},
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    44
						  
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    45
						 requires: [{
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    46
							type: "TooltipWidget",
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    47
							width: 180,
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    48
							heigh: 160,
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    49
							metadata : {
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    50
								format:'cinelab',
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    51
								src:'polemic.json',
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    52
								type:'empty'
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    53
							}
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    54
						 }],
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    55
						},
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    56
						{type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    57
						 mode: "radio",
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    58
						 metadata:{
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    59
						  format:'cinelab',
193
336b6c88146c changed the data source from one widget in an example.
hamidouk
parents: 178
diff changeset
    60
						  src:'polemic_fr.json',
178
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    61
						  type:'json'}
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    62
						}
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    63
					  	
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    64
					  ]
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    65
			  },
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    66
			player:{
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    67
			type:'jwplayer', // player type
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    68
              container: 'PopcornContainer',
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    69
              // the rest is player-dependent configuration options.
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    70
              file : "video/ldtplatform/museologie_inaugurale_20111018_flat.f4v", 
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    71
              streamer: "rtmp://media.iri.centrepompidou.fr/ddc_player/", 
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    72
              flashplayer : '../libs/player.swf',
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    73
              live: true, 
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    74
              "controlbar.position" : "none", 
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    75
              height: 300, 
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    76
              width: 640, 
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    77
              provider: "rtmp" 
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    78
            }
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    79
		};
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    80
		
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    81
		IriSP.loadLibs(IriSP.lib, config.gui.css, 
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    82
			function() { 	
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    83
							var layoutManager = new IriSP.LayoutManager(config.gui.container);
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    84
							var pop = IriSP.configurePopcorn(layoutManager, config.player);
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    85
							
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    86
							var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); });
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    87
		
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    88
		});
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    89
	</script>
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    90
	
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    91
	
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    92
 </body>
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    93
 <div id="PopcornContainer"></div>
169
427632a324d5 first import of the polemic tweet widget.
hamidouk
parents:
diff changeset
    94
 </html>