test/integration/jwplayer-video.htm
author hamidouk
Mon, 19 Dec 2011 15:25:22 +0100
branchpopcorn-port
changeset 481 a46cfeee6d77
parent 457 fbcb991cc595
child 504 02daece5dfda
permissions -rw-r--r--
using jquery ui draggable changes the state of an element from absolute to relative positioning, which breaks the way our seek button expands itself, so we need to force absolute positioning, quite uglily, using jquery.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
457
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
     2
<html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
     3
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
     4
<head>
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
     5
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
     6
</head>
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
     7
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
     8
<body>
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
     9
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    10
	<div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    11
	<h1>MetaDataPlayer </h1>
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    12
	Test d'intégration du widget du player avec Popcorn (jwplayer).
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    13
	</div>
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    14
	
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    15
	
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    16
 <!-- START Integration  ###################################### -->
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    17
 <!-- SIMPLE PLAYER EXPERIMENTATION -->
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    18
	<script type="text/javascript" src="../../build/LdtPlayer-release.js" type="text/javascript"></script> 
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    19
	<script src="../../res/js/jquery.min.js" type="text/javascript"></script>
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    20
	<script src="../../res/js/jquery.tools.min.js" type="text/javascript"></script>
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    21
	<script src="../../res/js/jquery-ui.min.js" type="text/javascript"></script>
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    22
	
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    23
	<div id="video"></div>
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    24
	<div id="LdtPlayer"></div>
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    25
	
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    26
	<script  type="text/javascript">
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    27
		$(document).ready(function() {
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    28
		var config = {
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    29
						gui:{
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    30
							width:650,
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    31
							height:1,
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    32
							mode:'video',
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    33
							container:'LdtPlayer',
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    34
							debug:true,
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    35
							css:'../../src/css/LdtPlayer.css',
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    36
              widgets : [{ 
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    37
                  type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    38
                  mode: "radio",
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    39
                  metadata:{
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    40
                  format:'cinelab',
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    41
                  src:'../test.json',
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    42
                  type:'json'}
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    43
              },
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    44
              {type: "SliderWidget",
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    45
               metadata:{
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    46
                format:'cinelab',
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    47
                src:'../test.json',
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    48
                type:'json'}
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    49
              }
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    50
              ]},
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    51
						player:{
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    52
							type:'jwplayer',
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    53
							flashplayer:'../../res/swf/player.swf',
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    54
              file:'../trailer.mp4',
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    55
              provider:'video',
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    56
              duration: 50}
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    57
					};
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    58
		
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    59
          IriSP.loadLibs(IriSP.lib, config.gui.css, "../test.json", function() { 	
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    60
              var layoutManager = new IriSP.LayoutManager(config.gui.container);
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    61
              var pop = IriSP.configurePopcorn(layoutManager, config.player);
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    62
              
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    63
              var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); });
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    64
    
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    65
    });
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    66
	</script>
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    67
	
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    68
	
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    69
 </body>
215
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    70
 </html>