test/integration/radio.htm
author hamidouk
Tue, 29 Nov 2011 15:09:34 +0100
branchpopcorn-port
changeset 351 e5190c3a682c
parent 227 0eb060a3b656
child 342 d42377159e37
child 457 fbcb991cc595
permissions -rw-r--r--
forgot to update the other polemic tweet example - the segmentsWidget now depends on the TooltipWidget.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
215
e03f5f886f52 renamed and trimmed the integration tests.
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">
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
     2
<html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
     3
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
     4
<head>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
     5
<title>Test d'intégration de l'initialisation</title>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
     6
</head>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
     7
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
     8
<body>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
     9
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    10
	<div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    11
	<h1>MetaDataPlayer </h1>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    12
	Test d'intégration de l'initialisation.
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    13
	</div>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    14
	
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    15
	
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    16
 <!-- START Integration  ###################################### -->
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    17
 <!-- SIMPLE PLAYER EXPERIMENTATION -->
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    18
	<script type="text/javascript" src="../../build/LdtPlayer-release.js" type="text/javascript"></script> 
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    19
	<script type="text/javascript" src="../../unittests/mockSerializer.js" type="text/javascript"></script> 
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    20
	<script src="../../res/js/jquery.min.js" type="text/javascript"></script>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    21
	<script src="../../res/js/jquery.tools.min.js" type="text/javascript"></script>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    22
	<script src="../../res/js/jquery-ui.min.js" type="text/javascript"></script>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    23
	
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    24
	<div id="video"></div>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    25
	<div id="LdtPlayer"></div>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    26
	
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    27
	<script  type="text/javascript">
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    28
		$(document).ready(function() {
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    29
		var config = {						
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    30
				gui:{
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    31
						width:650,
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    32
						height:2100,							
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    33
						container:'LdtPlayer',
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    34
						css:'../../src/css/LdtPlayer.css',
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    35
					  widgets: [
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    36
						{type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    37
						 mode: "radio",
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    38
						 metadata:{
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    39
						  format:'cinelab',
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    40
						  src:'../test.json',
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    41
						  type:'json'}
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    42
						},
227
0eb060a3b656 updated the test to use the new slider widget.
hamidouk
parents: 215
diff changeset
    43
						{type: "SliderWidget",
0eb060a3b656 updated the test to use the new slider widget.
hamidouk
parents: 215
diff changeset
    44
						 metadata:{
0eb060a3b656 updated the test to use the new slider widget.
hamidouk
parents: 215
diff changeset
    45
						  format:'cinelab',
0eb060a3b656 updated the test to use the new slider widget.
hamidouk
parents: 215
diff changeset
    46
						  src:'../test.json',
0eb060a3b656 updated the test to use the new slider widget.
hamidouk
parents: 215
diff changeset
    47
						  type:'json'}
0eb060a3b656 updated the test to use the new slider widget.
hamidouk
parents: 215
diff changeset
    48
						},
215
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    49
						{type: "AnnotationsWidget", 
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    50
						 metadata:{
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    51
						  format:'cinelab',
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    52
						  src:'../test.json',
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    53
						  type:'json'}
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    54
						},
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    55
					   {type: "SegmentsWidget", 
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    56
						 metadata:{
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    57
						  format:'cinelab',
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    58
						  src:'../test.json',
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    59
						  type:'json'}
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    60
						},
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    61
					  		
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    62
					  ]
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    63
			  },
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    64
			player:{
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    65
			type:'jwplayer', // player type
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    66
              container: 'PopcornContainer',
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    67
              // the rest is player-dependent configuration options.
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    68
              file : "video/franceculture/franceculture_retourdudimanche20100620.flv", 
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    69
              streamer: "rtmp://media.iri.centrepompidou.fr/ddc_player/", 
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    70
              flashplayer : '../libs/player.swf',
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    71
              live: true, 
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    72
              "controlbar.position" : "none", 
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    73
              height: 300, 
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    74
              width: 200, 
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    75
              provider: "rtmp" 
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    76
            }
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    77
		};
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    78
		
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    79
		IriSP.loadLibs(IriSP.lib, config.gui.css, 
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    80
			function() { 	
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    81
							var layoutManager = new IriSP.LayoutManager(config.gui.container);
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    82
							var pop = IriSP.configurePopcorn(layoutManager, config.player);
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    83
							
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    84
							var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); });
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    85
		
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    86
		});
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    87
	</script>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    88
	
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    89
	
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    90
 </body>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    91
 <div id="PopcornContainer"></div>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    92
 </html>