test/integration/polemic-platform.htm
author hamidouk
Thu, 12 Jan 2012 14:22:48 +0100
branchpopcorn-port
changeset 616 ff108c38a0c9
parent 600 4e669328ab6d
child 618 79c9a05ddaed
permissions -rw-r--r--
removed debug printf.
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>
600
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    22
  <div id="Sparkline"></div>
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    23
  <script  type="text/javascript">
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
    24
    var platf_url = "http://localhost/pf/ldtplatform/ldt/";
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
    25
    var project_id = "47e3eef0-3ab4-11e1-9423-001d7d7c6d1d";
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    26
    var config = {            
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    27
        gui:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    28
            width:650,
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    29
            height:2100,              
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    30
            container:'LdtPlayer',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    31
            css:'../../src/css/LdtPlayer.css',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    32
            widgets: [
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    33
            {type: "SliderWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    34
						 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    35
						  format:'cinelab',
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
    36
						  src:platf_url + 'cljson/id/' + project_id,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    37
						  type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    38
						},            
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    39
            
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    40
            {type: "AnnotationsListWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    41
             container: "AnnotationsListContainer",             
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    42
						 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    43
						  format:'cinelab',
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
    44
						  src:platf_url + 'cljson/id/' + project_id,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    45
						  type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    46
						},
600
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    47
            {type: "SparklineWidget",
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    48
             width: 640, /* required for this widget */
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    49
             height: 50,            
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    50
						 metadata:{
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    51
						  format:'cinelab',
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    52
						  src:platf_url + 'cljson/id/' + project_id,
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    53
						  type:'json'}
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    54
						},
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    55
            {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
    56
             mode: "radio",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    57
             metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    58
              format:'cinelab',
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
    59
              src:platf_url + 'cljson/id/' + project_id,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    60
              type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    61
            },
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    62
            {type: "SegmentsWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    63
             metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    64
              format:'cinelab',
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
    65
              src:platf_url + 'cljson/id/' + project_id,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    66
              type:'json'},
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    67
             requires: [{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    68
              type: "TooltipWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    69
              width: 180,
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    70
              heigh: 160,
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    71
              metadata : {
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    72
                type:'empty'
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    73
              }
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    74
             }],
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    75
            },            
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    76
            {type: "SliceWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    77
             metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    78
              format:'cinelab',
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
    79
              src:platf_url + 'cljson/id/' + project_id,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    80
              type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    81
            },            
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    82
            {type: "ArrowWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    83
             metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    84
              format:'cinelab',
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
    85
              src:platf_url + 'cljson/id/' + project_id,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    86
              type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    87
            },
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    88
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    89
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    90
            {type: "AnnotationsWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    91
						 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    92
						  format:'cinelab',
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
    93
						  src:platf_url + 'cljson/id/' + project_id,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    94
						  type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    95
						},
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    96
            {type: "TweetsWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    97
						 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    98
						  format:'cinelab',
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
    99
						  src:platf_url + 'cljson/id/' + project_id,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   100
						  type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   101
						},
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   102
            {type: "createAnnotationWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   103
						 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   104
						  format:'cinelab',
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
   105
						  src:platf_url + 'cljson/id/' + project_id,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   106
						  type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   107
						}      
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   108
            ]
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   109
        },
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   110
      player:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   111
      type:'jwplayer', // player type
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   112
              live: true, 
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   113
              height: 300, 
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   114
              width: 640, 
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   115
              provider: "rtmp" 
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
      modules: [
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   118
               { type: "MediaFragment",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   119
  			     		 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   120
	  	  			   format:'cinelab',
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
   121
		  				   src:platf_url + 'cljson/id/' + project_id,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   122
						     type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   123
						}]
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
    };
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   126
    
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
   127
    IriSP.loadLibs(IriSP.lib, config, platf_url + 'cljson/id/' + project_id,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   128
      function() {   
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   129
              var layoutManager = new IriSP.LayoutManager(config.gui.container);
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   130
              var pop = IriSP.configurePopcorn(layoutManager, config.player);
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   131
              
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   132
              var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); 
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   133
              var modules = IriSP.configureModules(pop, config.modules); 
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   134
      });
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   135
  </script>
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   136
  
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   137
  
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   138
 </body>
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   139
 <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
   140
 </html>