test/integration/index-radio.htm
author hamidouk
Tue, 08 Nov 2011 10:38:29 +0100
branchpopcorn-port
changeset 207 2bc276f0c1ae
parent 181 765eaf72d547
child 209 63501d879bce
permissions -rw-r--r--
converted tabs to spaces.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
86
0e7e9fd624bb added a radio integration testing file.
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">
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
     2
<html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
     3
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
     4
<head>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
     5
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
     6
</head>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
     7
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
     8
<body>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
     9
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    10
	<div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    11
	<h1>MetaDataPlayer </h1>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    12
	Test d'intégration du widget du player avec Popcorn (jwplayer).
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    13
	</div>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    14
	
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    15
	
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    16
 <!-- START Integration  ###################################### -->
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    17
 <!-- SIMPLE PLAYER EXPERIMENTATION -->
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    18
	<script type="text/javascript" src="../../build/LdtPlayer-release.js" type="text/javascript"></script> 
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    19
	<script src="../../res/js/jquery.min.js" type="text/javascript"></script>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    20
	<script src="../../res/js/jquery.tools.min.js" type="text/javascript"></script>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    21
	<script src="../../res/js/jquery-ui.min.js" type="text/javascript"></script>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    22
	
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    23
	<div id="video"></div>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    24
	<div id="LdtPlayer"></div>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    25
	
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    26
	<script  type="text/javascript">
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    27
		$(document).ready(function() {
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    28
		var config = {
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    29
						metadata:{
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    30
							format:'cinelab',
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    31
							src:'test.json',
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    32
							load:'json'},
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    33
						gui:{
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    34
							width:650,
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    35
							height:1,
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    36
							mode:'video',
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    37
							container:'LdtPlayer',
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    38
							debug:true,
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    39
							css:'../../src/css/LdtPlayer.css'},
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    40
						player:{
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    41
							type:'jwplayer',
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    42
							src:'../libs/player.swf'}
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    43
					};
181
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    44
		var config = {						
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    45
				gui:{
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    46
						width:650,
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    47
						height:2100,							
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    48
						container:'LdtPlayer',
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    49
						css:'../../src/css/LdtPlayer.css',
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    50
					  widgets: [					  	
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    51
						{type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    52
						 mode: "radio",
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    53
						 metadata:{
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    54
						  format:'cinelab',
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    55
						  src:'../test.json',
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    56
						  type:'json'}
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    57
						},
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    58
						
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    59
						{type: "SegmentsWidget", // please note that type refers directly to the constructor of the widget.
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    60
						 mode: "radio",
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    61
						 metadata:{
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    62
						  format:'cinelab',
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    63
						  src:'../test.json',
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    64
						  type:'json'}
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    65
						},
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    66
						
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    67
						{type: "AnnotationsWidget", // please note that type refers directly to the constructor of the widget.
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    68
						 mode: "radio",
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    69
						 metadata:{
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    70
						  format:'cinelab',
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    71
						  src:'../test.json',
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    72
						  type:'json'}
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    73
						},
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    74
					  	
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    75
					  ]
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    76
			  },
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    77
			player:{
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    78
				type:'jwplayer', // player type
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    79
				  // the rest is player-dependent configuration options.
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    80
				  file : "video/franceculture/franceculture_retourdudimanche20100620.flv", 
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    81
				  streamer: "rtmp://media.iri.centrepompidou.fr/ddc_player/", 
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    82
				  flashplayer : '../libs/player.swf',
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    83
				  live: true, 
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    84
				  "controlbar.position" : "none", 
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    85
				  height: 300, 
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    86
				  width: 640, 
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    87
				  provider: "rtmp" 
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    88
				}
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    89
		};
86
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    90
		
181
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    91
		IriSP.loadLibs(IriSP.lib, config.gui.css, 
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    92
			function() { 	
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    93
							var layoutManager = new IriSP.LayoutManager(config.gui.container);
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    94
							var pop = IriSP.configurePopcorn(layoutManager, config.player);
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    95
							
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    96
							var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); });
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    97
		
765eaf72d547 updated file to follow the new api
hamidouk
parents: 106
diff changeset
    98
		});			
86
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    99
	</script>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
   100
	
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
   101
	
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
   102
 </body>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
   103
 </html>