test/integration/html5-video.htm
author hamidouk
Mon, 19 Dec 2011 15:25:22 +0100
branchpopcorn-port
changeset 481 a46cfeee6d77
parent 457 fbcb991cc595
child 744 76400fd4ce70
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"></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"></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"></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"></script>
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    22
	<div id="LdtPlayer"></div>
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    23
	
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    24
	<script  type="text/javascript">
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    25
		$(document).ready(function() {
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    26
      var config = {
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    27
						gui:{
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    28
							width:650,
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    29
							height:1,
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    30
							mode:'video',
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    31
							container:'LdtPlayer',
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    32
							debug:true,
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    33
							css:'../../src/css/LdtPlayer.css',
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    34
              widgets : [{ 
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    35
                  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
    36
                  mode: "radio",
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    37
                  metadata:{
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    38
                  format:'cinelab',
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    39
                  src:'../test.json',
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    40
                  type:'json'}
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    41
              }, 
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    42
              {type: "SliderWidget",
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    43
               metadata:{
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    44
                format:'cinelab',
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    45
                src:'../test.json',
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    46
                type:'json'}
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    47
              },
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    48
              ]},
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    49
						player:{
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    50
							type:'html5',							
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    51
              file:'../trailer.ogv',
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    52
              duration: 50}
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    53
					};
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    54
		
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    55
      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
    56
          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
    57
          var pop = IriSP.configurePopcorn(layoutManager, config.player);
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
          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
    60
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    61
    });
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    62
	</script>
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    63
  
fbcb991cc595 updated the integration tests and changed their line endings to unix.
hamidouk
parents: 227
diff changeset
    64
 </body>
215
e03f5f886f52 renamed and trimmed the integration tests.
hamidouk
parents:
diff changeset
    65
 </html>