test/integration/index-radio.htm
author hamidouk
Thu, 20 Oct 2011 15:53:27 +0200
branchpopcorn-port
changeset 107 2edab45f0e90
parent 106 d9f1a193df16
child 181 765eaf72d547
permissions -rw-r--r--
changed the json file with a less-buggy version.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
86
0e7e9fd624bb added a radio integration testing 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">
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
     2
<html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
     3
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
     4
<head>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
     5
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
     6
</head>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
     7
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
     8
<body>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
     9
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    10
	<div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    11
	<h1>MetaDataPlayer </h1>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    12
	Test d'intégration du widget du player avec Popcorn (jwplayer).
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    13
	</div>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    14
	
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    15
	
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    16
 <!-- START Integration  ###################################### -->
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    17
 <!-- SIMPLE PLAYER EXPERIMENTATION -->
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    18
	<script type="text/javascript" src="../../build/LdtPlayer-release.js" type="text/javascript"></script> 
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    19
	<script src="../../res/js/jquery.min.js" type="text/javascript"></script>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    20
	<script src="../../res/js/jquery.tools.min.js" type="text/javascript"></script>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    21
	<script src="../../res/js/jquery-ui.min.js" type="text/javascript"></script>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    22
	
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    23
	<div id="video"></div>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    24
	<div id="LdtPlayer"></div>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    25
	
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    26
	<script  type="text/javascript">
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    27
		$(document).ready(function() {
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    28
		var config = {
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    29
						metadata:{
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    30
							format:'cinelab',
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    31
							src:'test.json',
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    32
							load:'json'},
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    33
						gui:{
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    34
							width:650,
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    35
							height:1,
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    36
							mode:'video',
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    37
							container:'LdtPlayer',
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    38
							debug:true,
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    39
							css:'../../src/css/LdtPlayer.css'},
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    40
						player:{
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    41
							type:'jwplayer',
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    42
							src:'../libs/player.swf'}
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    43
					};
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    44
		
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    45
		IriSP.loadLibs(IriSP.lib, config.gui.css, function() {});
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    46
		var pop = Popcorn.jwplayer( '#video', "",{file : "video/franceculture/franceculture_retourdudimanche20100620.flv", streamer: "rtmp://media.iri.centrepompidou.fr/ddc_player/", flashplayer : config.player.src,
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    47
                                     live: true, "controlbar.position" : "none", height: config.gui.height, width: config.gui.width, provider: "rtmp"});
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    48
		//pop.pause();
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    49
		dt = new IriSP.DataLoader();
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    50
		ser = new IriSP.JSONSerializer(dt, "../test.json");
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    51
		ser2 = new IriSP.JSONSerializer(dt, "../test.json");
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    52
		var player = new IriSP.PlayerWidget(pop, config, ser);
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    53
		var annotationWidget = new IriSP.AnnotationsWidget(pop, config, ser);
106
d9f1a193df16 added the new widget to the integration tests.
hamidouk
parents: 94
diff changeset
    54
		var segmentsWidget = new IriSP.SegmentsWidget(pop, config, ser);
d9f1a193df16 added the new widget to the integration tests.
hamidouk
parents: 94
diff changeset
    55
		ser.sync(function() { player.draw();  annotationWidget.draw(); segmentsWidget.draw();});
86
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    56
		});
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    57
	</script>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    58
	
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    59
	
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    60
 </body>
0e7e9fd624bb added a radio integration testing file.
hamidouk
parents:
diff changeset
    61
 </html>