added an integration test file. popcorn-port
authorhamidouk
Thu, 13 Oct 2011 17:14:07 +0200
branchpopcorn-port
changeset 76 c35da6f48eef
parent 75 f5a7299bd0ff
child 77 b3140ffed377
added an integration test file.
test/integration/index.htm
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/integration/index.htm	Thu Oct 13 17:14:07 2011 +0200
@@ -0,0 +1,53 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
+
+<head>
+
+</head>
+
+<body>
+
+	<div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
+	<h1>MetaDataPlayer </h1>
+	Test d'intégration du widget du player avec Popcorn.
+	</div>
+	
+	
+ <!-- START Integration  ###################################### -->
+ <!-- SIMPLE PLAYER EXPERIMENTATION -->
+	<script type="text/javascript" src="../../build/LdtPlayer-release.js"></script> 
+	<script src="../../res/js/jquery.min.js"></script>
+	<script src="../../res/js/jquery.tools.min.js"></script>
+	<script src="../../res/js/jquery-ui.min.js"></script>
+	<div id="LdtPlayer"></div>
+	
+	<script  type="text/javascript">	
+		var config = {
+						metadata:{
+							format:'cinelab',
+							src:'test.json',
+							load:'json'},
+						gui:{
+							width:650,
+							height:1,
+							mode:'radio',
+							container:'LdtPlayer',
+							debug:true,
+							css:'../../src/css/LdtPlayer.css'},
+						player:{
+							type:'jwplayer',
+							src:'../res/swf/player.swf'}
+					};
+		
+		IriSP.loadLibs(IriSP.lib, config.gui.css, function() {});     
+		Popcorn = Popcorn.youtube("#LdtPlayer", "http://www.youtube.com/watch?v=QH2-TGUlwu4");    
+		dt = new IriSP.DataLoader();
+		ser = new IriSP.JSONSerializer(this.dt, "../test.json");
+		var player = new IriSP.PlayerWidget(this.Popcorn, this.config, this.ser);
+		ser.sync(IriSP.wrap(player, player.draw));
+	</script>
+	
+
+<!-- END  ################  ###################################### -->
+ </body>
+ </html>
\ No newline at end of file