test/integration/index.htm
author hamidouk
Thu, 20 Oct 2011 15:53:27 +0200
branchpopcorn-port
changeset 107 2edab45f0e90
parent 88 4de2f474ca01
child 209 63501d879bce
permissions -rw-r--r--
changed the json file with a less-buggy version.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
76
c35da6f48eef added an integration test 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">
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
     2
<html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
     3
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
     4
<head>
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
     5
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
     6
</head>
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
     7
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
     8
<body>
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
     9
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    10
	<div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    11
	<h1>MetaDataPlayer </h1>
84
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    12
	Test d'intégration du widget du player avec Popcorn (jwplayer).
76
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    13
	</div>
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    14
	
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    15
	
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    16
 <!-- START Integration  ###################################### -->
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    17
 <!-- SIMPLE PLAYER EXPERIMENTATION -->
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    18
	<script type="text/javascript" src="../../build/LdtPlayer-release.js"></script> 
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    19
	<script src="../../res/js/jquery.min.js"></script>
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    20
	<script src="../../res/js/jquery.tools.min.js"></script>
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    21
	<script src="../../res/js/jquery-ui.min.js"></script>
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    22
	<div id="LdtPlayer"></div>
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    23
	
84
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    24
	<script  type="text/javascript">
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    25
		$(document).ready(function() {
76
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    26
		var config = {
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    27
						metadata:{
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    28
							format:'cinelab',
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    29
							src:'test.json',
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    30
							load:'json'},
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    31
						gui:{
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    32
							width:650,
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    33
							height:1,
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    34
							mode:'radio',
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    35
							container:'LdtPlayer',
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    36
							debug:true,
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    37
							css:'../../src/css/LdtPlayer.css'},
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    38
						player:{
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    39
							type:'jwplayer',
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    40
							src:'../res/swf/player.swf'}
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    41
					};
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    42
		
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    43
		IriSP.loadLibs(IriSP.lib, config.gui.css, function() {});     
88
4de2f474ca01 changes to the integration files.
hamidouk
parents: 84
diff changeset
    44
		pop = Popcorn("#video");    
76
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    45
		dt = new IriSP.DataLoader();
84
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    46
		ser = new IriSP.JSONSerializer(dt, "../test.json");
88
4de2f474ca01 changes to the integration files.
hamidouk
parents: 84
diff changeset
    47
		var player = new IriSP.PlayerWidget(pop, config, ser);
4de2f474ca01 changes to the integration files.
hamidouk
parents: 84
diff changeset
    48
		var annotationWidget = new IriSP.AnnotationsWidget(pop, config, ser);
4de2f474ca01 changes to the integration files.
hamidouk
parents: 84
diff changeset
    49
		ser.sync(function() { player.draw();  annotationWidget.draw(); });
84
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    50
		});
76
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    51
	</script>
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    52
	
84
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    53
 <video id='video'
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    54
    style="display:;width:300px"
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    55
    controls
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    56
    preload="auto">
76
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    57
84
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    58
    <source id='mp4'
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    59
      src="../trailer.mp4"
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    60
      type='video/mp4; codecs="avc1, mp4a"'>
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    61
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    62
    <source id='ogv'
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    63
      src="../trailer.ogv"
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    64
      type='video/ogg; codecs="theora, vorbis"'>
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    65
      
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    66
    <source id='webm'
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    67
      src="../trailer.webm"
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    68
      type='video/webm; codecs="vp8, vorbis"'>
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    69
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    70
    <p>Your user agent does not support the HTML5 Video element.</p>
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    71
44ffcad678eb changes to the integration testing file for html5 video.
hamidouk
parents: 76
diff changeset
    72
  </video>
76
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    73
 </body>
c35da6f48eef added an integration test file.
hamidouk
parents:
diff changeset
    74
 </html>