test/integration/index-youtube.htm
author hamidouk
Thu, 20 Oct 2011 10:19:36 +0200
branchpopcorn-port
changeset 100 dbd302a995f5
parent 88 4de2f474ca01
child 102 67e8179afde5
permissions -rw-r--r--
added a new widget and the tests which come with it.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
82
b9a26940e7cc two integration testing files, for jwplayer and youtube.
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">
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
     2
<html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
     3
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
     4
<head>
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
     5
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
     6
</head>
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
     7
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
     8
<body>
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
     9
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    10
	<div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    11
	<h1>MetaDataPlayer </h1>
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    12
	Test d'intégration du widget du player avec Popcorn (Youtube).
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    13
	</div>
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    14
	
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    15
	
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    16
 <!-- START Integration  ###################################### -->
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    17
 <!-- SIMPLE PLAYER EXPERIMENTATION -->
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    18
	<script type="text/javascript" src="../../build/LdtPlayer-release.js"></script> 
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    19
	<script src="../../res/js/jquery.min.js"></script>
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    20
	<script src="../../res/js/jquery.tools.min.js"></script>
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    21
	<script src="../../res/js/jquery-ui.min.js"></script>
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    22
	<div id="LdtPlayer"></div>
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    23
	
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    24
	<script  type="text/javascript">
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    25
	$(document).ready(function() {
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    26
		var config = {
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    27
						metadata:{
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    28
							format:'cinelab',
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    29
							src:'test.json',
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    30
							load:'json'},
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    31
						gui:{
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    32
							width:650,
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    33
							height:1,
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    34
							mode:'radio',
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    35
							container:'LdtPlayer',
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    36
							debug:true,
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    37
							css:'../../src/css/LdtPlayer.css'},
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    38
						player:{
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    39
							type:'jwplayer',
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    40
							src:'../res/swf/player.swf'}
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    41
					};
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    42
		
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    43
		IriSP.loadLibs(IriSP.lib, config.gui.css, function() {});     
88
4de2f474ca01 changes to the integration files.
hamidouk
parents: 82
diff changeset
    44
		var pop = Popcorn.youtube("#LdtPlayer", "http://www.youtube.com/watch?v=lFtNG1wZ4zU", {controls: 0});    
82
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    45
		var dt = new IriSP.DataLoader();
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    46
		var ser = new IriSP.JSONSerializer(dt, "../test.json");
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    47
		var player = new IriSP.PlayerWidget(pop, config, ser);
88
4de2f474ca01 changes to the integration files.
hamidouk
parents: 82
diff changeset
    48
		var annotationWidget = new IriSP.AnnotationsWidget(pop, config, ser);		
4de2f474ca01 changes to the integration files.
hamidouk
parents: 82
diff changeset
    49
		ser.sync(function() { player.draw();  annotationWidget.draw(); });
4de2f474ca01 changes to the integration files.
hamidouk
parents: 82
diff changeset
    50
		
82
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    51
	});
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    52
	</script>
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    53
	
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    54
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    55
<!-- END  ################  ###################################### -->
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    56
 </body>
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    57
 </html>