test/integration/init-radio.htm
author hamidouk
Tue, 25 Oct 2011 14:32:05 +0200
branchpopcorn-port
changeset 139 ba2b3c15bd47
parent 135 98080f19ccce
child 141 becd5f52fa24
permissions -rw-r--r--
fixing prototype bug.
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>
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
     5
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>
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    12
	Test d'intégration de gestionnaire de placement.
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> 
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    19
	<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
    20
	<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
    21
	<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
    22
	
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    23
	<div id="video"></div>
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    24
	<div id="LdtPlayer"></div>
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    25
	
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    26
	<script  type="text/javascript">
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    27
		$(document).ready(function() {
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    28
		var config = {						
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    29
				gui:{
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    30
						width:650,
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    31
						height:480,							
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    32
						container:'LdtPlayer',
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    33
						css:'../../src/css/LdtPlayer.css',
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    34
              widgets: [
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    35
                {type: "IriSP.PlayerWidget", // please note that type refers directly to the constructor of the widget.
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    36
                 metadata:{
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    37
                  format:'cinelab',
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    38
                  src:'test.json',
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    39
                  load:'json'}
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    40
                },
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    41
               {type: "IriSP.SegmentsWidget", 
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    42
                 metadata:{
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    43
                  format:'cinelab',
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    44
                  src:'test.json',
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    45
                  load:'json'}
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    46
                },
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    47
               {type: "IriSP.AnnotationsWidget", 
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    48
                 metadata:{
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    49
                  format:'cinelab',
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    50
                  src:'test.json',
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    51
                  load:'json'}
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    52
                },
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    53
              ]
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    54
			player:{
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    55
			type:'jwplayer', // player type
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    56
              container: '#PopcornContainer'
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    57
              // the rest is player-dependent configuration options.
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    58
              file : "video/franceculture/franceculture_retourdudimanche20100620.flv", 
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    59
              streamer: "rtmp://media.iri.centrepompidou.fr/ddc_player/", 
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    60
              flashplayer : '../libs/player.swf',
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    61
              live: true, 
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    62
              "controlbar.position" : "none", 
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    63
              height: 300, 
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    64
              width: 200, 
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    65
              provider: "rtmp" 
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    66
            }
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    67
		};
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    68
		
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    69
		IriSP.loadLibs(IriSP.lib, config.gui.css, function() {});
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    70
		var pop = Popcorn.jwplayer( '#video', "",{file : "video/franceculture/franceculture_retourdudimanche20100620.flv", streamer: "rtmp://media.iri.centrepompidou.fr/ddc_player/", flashplayer : config.player.src,
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    71
                                     live: true, "controlbar.position" : "none", height: config.gui.height, width: config.gui.width, provider: "rtmp"});
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    72
		
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    73
		var dt = new IriSP.DataLoader();
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    74
		var ser = new IriSP.JSONSerializer(dt, "../test.json");
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    75
		var ser2 = new IriSP.JSONSerializer(dt, "../test.json");
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
		var lay = new IriSP.LayoutManager({divId : "LdtPlayer"});
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    78
		lay.setPopcornInstance(pop);
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
		config.gui.container = lay.createDiv();
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    81
		var player = new IriSP.PlayerWidget(pop, config.gui, ser);
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    82
		
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    83
		config.gui.container = lay.createDiv();
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    84
		var annotationWidget = new IriSP.AnnotationsWidget(pop, config.gui, ser);
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    85
		
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    86
		config.gui.container = lay.createDiv();
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    87
		var segmentsWidget = new IriSP.SegmentsWidget(pop, config.gui, ser);
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    88
		ser.sync(function() { player.draw();  annotationWidget.draw(); segmentsWidget.draw();});
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    89
		});
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    90
	</script>
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    91
	
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    92
	
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    93
 </body>
98080f19ccce added a file to integration-test the init process.
hamidouk
parents:
diff changeset
    94
 </html>