test/integration/polemic-platform.htm
author hamidouk
Fri, 06 Jan 2012 17:20:18 +0100
branchpopcorn-port
changeset 593 a4c63f13f021
parent 592 35459f92bb66
child 595 29d86e6c61a6
permissions -rw-r--r--
adapting the widget to the new convention.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
592
35459f92bb66 added a special file to test the platform response.
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">
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
     2
<html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
     3
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
     4
<head>
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
     5
<title>Metadataplayer - Polemic tweet integration test</title>
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
     6
</head>
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
     7
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
     8
<body>
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
     9
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    10
  <div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    11
  <h1>MetaDataPlayer</h1>
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    12
  Integration test - Using an ldtplatform located at http://localhost/pf/
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    13
  </div>
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    14
  
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    15
  
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    16
 <!-- START Integration  ###################################### -->
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    17
 <!-- SIMPLE PLAYER EXPERIMENTATION -->
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    18
  <script type="text/javascript" src="../../build/LdtPlayer-release.js" type="text/javascript"></script>   
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    19
  
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    20
  <div id="video"></div>
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    21
  <div id="LdtPlayer"></div>
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    22
  
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    23
  <script  type="text/javascript">
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    24
    var config = {            
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    25
        gui:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    26
            width:650,
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    27
            height:2100,              
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    28
            container:'LdtPlayer',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    29
            css:'../../src/css/LdtPlayer.css',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    30
            widgets: [
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    31
            {type: "SliderWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    32
						 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    33
						  format:'cinelab',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    34
						  src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    35
						  type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    36
						},            
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    37
            
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    38
            {type: "AnnotationsListWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    39
             container: "AnnotationsListContainer",             
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    40
						 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    41
						  format:'cinelab',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    42
						  src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    43
						  type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    44
						},
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    45
            {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    46
             mode: "radio",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    47
             metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    48
              format:'cinelab',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    49
              src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    50
              type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    51
            },
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    52
            {type: "SegmentsWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    53
             metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    54
              format:'cinelab',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    55
              src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    56
              type:'json'},
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    57
             requires: [{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    58
              type: "TooltipWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    59
              width: 180,
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    60
              heigh: 160,
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    61
              metadata : {
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    62
                type:'empty'
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    63
              }
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    64
             }],
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    65
            },            
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    66
            {type: "SliceWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    67
             metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    68
              format:'cinelab',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    69
              src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    70
              type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    71
            },            
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    72
            {type: "ArrowWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    73
             metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    74
              format:'cinelab',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    75
              src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    76
              type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    77
            },
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    78
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    79
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    80
            {type: "AnnotationsWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    81
						 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    82
						  format:'cinelab',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    83
						  src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    84
						  type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    85
						},
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    86
            {type: "TweetsWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    87
						 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    88
						  format:'cinelab',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    89
						  src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    90
						  type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    91
						},
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    92
            {type: "createAnnotationWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    93
						 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    94
						  format:'cinelab',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    95
						  src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    96
						  type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    97
						}      
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    98
            ]
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    99
        },
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   100
      player:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   101
      type:'jwplayer', // player type
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   102
              live: true, 
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   103
              height: 300, 
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   104
              width: 640, 
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   105
              provider: "rtmp" 
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   106
      },
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   107
      modules: [
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   108
               { type: "MediaFragment",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   109
  			     		 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   110
	  	  			   format:'cinelab',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   111
		  				   src:'http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   112
						     type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   113
						}]
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   114
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   115
    };
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   116
    
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   117
    IriSP.loadLibs(IriSP.lib, config, "http://localhost//pf/ldtplatform/ldt/cljson/id/af3b99e4-b695-11df-bfde-00145ea4a2be",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   118
      function() {   
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   119
              var layoutManager = new IriSP.LayoutManager(config.gui.container);
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   120
              var pop = IriSP.configurePopcorn(layoutManager, config.player);
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   121
              
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   122
              var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); 
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   123
              var modules = IriSP.configureModules(pop, config.modules); 
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   124
      });
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   125
  </script>
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   126
  
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   127
  
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   128
 </body>
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   129
 <div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div>
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   130
 </html>