test/integration/index-jwplayer.htm
author hamidouk
Tue, 08 Nov 2011 10:53:21 +0100
branchpopcorn-port
changeset 208 49c7eec0955d
parent 82 b9a26940e7cc
child 209 63501d879bce
permissions -rw-r--r--
a couple changes to the integration testing file.
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 (jwplayer).
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" type="text/javascript"></script> 
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    19
	<script src="../../res/js/jquery.min.js" type="text/javascript"></script>
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    20
	<script src="../../res/js/jquery.tools.min.js" type="text/javascript"></script>
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    21
	<script src="../../res/js/jquery-ui.min.js" type="text/javascript"></script>
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    22
	
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    23
	<div id="video"></div>
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    24
	<div id="LdtPlayer"></div>
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    25
	
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    26
	<script  type="text/javascript">
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    27
		$(document).ready(function() {
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    28
		var config = {
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    29
						metadata:{
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    30
							format:'cinelab',
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    31
							src:'test.json',
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    32
							load:'json'},
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    33
						gui:{
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    34
							width:650,
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    35
							height:1,
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    36
							mode:'video',
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    37
							container:'LdtPlayer',
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    38
							debug:true,
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    39
							css:'../../src/css/LdtPlayer.css'},
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    40
						player:{
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    41
							type:'jwplayer',
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    42
							src:'../res/swf/player.swf'}
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    43
					};
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    44
		
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    45
		IriSP.loadLibs(IriSP.lib, config.gui.css, function() {});
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    46
		var pop = Popcorn.jwplayer( '#video', "", {"file" : "../trailer.mp4", "duration" : 40, "flashplayer" : "../../res/swf/player.swf"});
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    47
		//pop.pause();
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    48
		dt = new IriSP.DataLoader();
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    49
		ser = new IriSP.JSONSerializer(dt, "../test.json");
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    50
		ser2 = new IriSP.JSONSerializer(dt, "../test.json");
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    51
		var player = new IriSP.PlayerWidget(pop, config, ser);
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    52
		var annotationWidget = new IriSP.AnnotationsWidget(pop, config, ser);
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
		ser.sync(function() { player.draw();  annotationWidget.draw(); });
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    55
		/*
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    56
		var annotationBar = new IriSP.AnnotationWidget(pop, config, ser);
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    57
		ser.sync(IriSP.wrap(annotationBar, draw));
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    58
		*/
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    59
		});
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    60
	</script>
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    61
	
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    62
	
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    63
 </body>
b9a26940e7cc two integration testing files, for jwplayer and youtube.
hamidouk
parents:
diff changeset
    64
 </html>