test/integration/youtube.htm
author hamidouk
Thu, 10 Nov 2011 14:27:51 +0100
branchpopcorn-port
changeset 224 f2bb098683ef
parent 215 e03f5f886f52
child 227 0eb060a3b656
permissions -rw-r--r--
changed the styling of the search box div to make it appear correctly.
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
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 du widget du player avec Popcorn (Youtube).
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"></script> 
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    19
	<script src="../../res/js/jquery.min.js"></script>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    20
	<script src="../../res/js/jquery.tools.min.js"></script>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    21
	<script src="../../res/js/jquery-ui.min.js"></script>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    22
	<div id="LdtPlayer"></div>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    23
	
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    24
	<script  type="text/javascript">
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    25
		$(document).ready(function() {
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    26
		var config = {						
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    27
				gui:{
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    28
						width:650,
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    29
						height:2100,							
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    30
						container:'LdtPlayer',
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    31
						css:'../../src/css/LdtPlayer.css',
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    32
					  widgets: [					  	
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    33
						{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
    34
						 mode: "radio",
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    35
						 metadata:{
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    36
						  format:'cinelab',
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    37
						  src:'../test.json',
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    38
						  type:'json'}
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    39
						},
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    40
						
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    41
						{type: "SegmentsWidget", // please note that type refers directly to the constructor of the widget.
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    42
						 mode: "radio",
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    43
						 metadata:{
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    44
						  format:'cinelab',
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    45
						  src:'../test.json',
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    46
						  type:'json'}
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    47
						},
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    48
						
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    49
						{type: "AnnotationsWidget", // please note that type refers directly to the constructor of the widget.
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    50
						 mode: "radio",
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    51
						 metadata:{
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    52
						  format:'cinelab',
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    53
						  src:'../test.json',
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    54
						  type:'json'}
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    55
						},
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    56
					  	
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    57
					  ]
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    58
			  },
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    59
			player:{
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    60
				type:'youtube', // player type
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    61
				  // the rest is player-dependent configuration options.
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    62
				  video: "http://www.youtube.com/watch?v=rrkrvAUbU9Y",
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    63
				  height: 400, 
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    64
				  width: 640, 
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    65
				  provider: "rtmp" 
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    66
				}
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    67
		};
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    68
		
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    69
		IriSP.loadLibs(IriSP.lib, config.gui.css, 
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    70
			function() { 	
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    71
							var layoutManager = new IriSP.LayoutManager(config.gui.container);
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    72
							var pop = IriSP.configurePopcorn(layoutManager, config.player);
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    73
							
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    74
							var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); });
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    75
		
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    76
		});	
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    77
	</script>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    78
<div id='Ldt-Root'>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    79
	<div id='Ldt-PlaceHolder'>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    80
	</div>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    81
</div>	
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    82
<!-- END  ################  ###################################### -->
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    83
 </body>
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    84
 </html>