test/integration/init-radio.htm
author hamidouk
Wed, 26 Oct 2011 11:32:21 +0200
branchpopcorn-port
changeset 147 955119f901b4
parent 141 becd5f52fa24
child 158 1813e6e4f0d6
permissions -rw-r--r--
added a function to search annotations to the json serializer.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
135
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
     2
<html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
     3
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
     4
<head>
141
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
     5
<title>Test d'intégration de l'initialisation</title>
135
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
     6
</head>
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
     7
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
     8
<body>
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
     9
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    10
	<div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    11
	<h1>MetaDataPlayer </h1>
141
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    12
	Test d'intégration de l'initialisation.
135
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    13
	</div>
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    14
	
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    15
	
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    16
 <!-- START Integration  ###################################### -->
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    17
 <!-- SIMPLE PLAYER EXPERIMENTATION -->
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    18
	<script type="text/javascript" src="../../build/LdtPlayer-release.js" type="text/javascript"></script> 
141
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    19
	<script type="text/javascript" src="../../unittests/mockSerializer.js" type="text/javascript"></script> 
135
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    20
	<script src="../../res/js/jquery.min.js" type="text/javascript"></script>
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    21
	<script src="../../res/js/jquery.tools.min.js" type="text/javascript"></script>
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    22
	<script src="../../res/js/jquery-ui.min.js" type="text/javascript"></script>
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    23
	
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    24
	<div id="video"></div>
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    25
	<div id="LdtPlayer"></div>
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    26
	
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    27
	<script  type="text/javascript">
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    28
		$(document).ready(function() {
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    29
		var config = {						
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    30
				gui:{
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    31
						width:650,
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    32
						height:480,							
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    33
						container:'LdtPlayer',
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    34
						css:'../../src/css/LdtPlayer.css',
141
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    35
					  widgets: [
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    36
						{type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    37
						 mode: "radio",
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    38
						 metadata:{
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    39
						  format:'cinelab',
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    40
						  src:'../test.json',
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    41
						  type:'json'}
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    42
						},
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    43
						
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    44
					   {type: "SegmentsWidget", 
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    45
						 metadata:{
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    46
						  format:'cinelab',
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    47
						  src:'../test.json',
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    48
						  type:'json'}
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    49
						},
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    50
					   {type: "AnnotationsWidget", 
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    51
						 metadata:{
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    52
						  format:'cinelab',
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    53
						  src:'../test.json',
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    54
						  type:'json'}
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    55
						}		
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    56
					  ]
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    57
			  },
135
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    58
			player:{
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    59
			type:'jwplayer', // player type
141
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    60
              container: 'PopcornContainer',
135
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    61
              // the rest is player-dependent configuration options.
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    62
              file : "video/franceculture/franceculture_retourdudimanche20100620.flv", 
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    63
              streamer: "rtmp://media.iri.centrepompidou.fr/ddc_player/", 
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    64
              flashplayer : '../libs/player.swf',
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    65
              live: true, 
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    66
              "controlbar.position" : "none", 
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    67
              height: 300, 
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    68
              width: 200, 
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    69
              provider: "rtmp" 
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    70
            }
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    71
		};
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    72
		
141
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    73
		IriSP.loadLibs(IriSP.lib, config.gui.css, 
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    74
			function() { 	var pop = IriSP.configurePopcorn(config.player);
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    75
							var widgets = IriSP.configureWidgets(pop, config.gui); });
135
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    76
		
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    77
		});
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    78
	</script>
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    79
	
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    80
	
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    81
 </body>
141
becd5f52fa24 this commit fixes an elusive integration bug where the object would get called
hamidouk
parents: 135
diff changeset
    82
 <div id="PopcornContainer"></div>
135
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    83
 </html>