test/integration/polemic-platform.htm
author hamidouk
Mon, 16 Jan 2012 15:06:41 +0100
branchpopcorn-port
changeset 640 a6b64eeeb76d
parent 635 c33b08e0e7c4
child 665 372852c77e6d
permissions -rw-r--r--
redid samuel's decimal to hexa conversion function.
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/";
635
c33b08e0e7c4 changed project_id
hamidouk
parents: 624
diff changeset
    25
    //var project_id = "47e3eef0-3ab4-11e1-9423-001d7d7c6d1d";
c33b08e0e7c4 changed project_id
hamidouk
parents: 624
diff changeset
    26
    var project_id = "67d92570-4024-11e1-b8b0-001d7d7c6d1d";
618
79c9a05ddaed disable the cinecast modifications.
hamidouk
parents: 600
diff changeset
    27
    
79c9a05ddaed disable the cinecast modifications.
hamidouk
parents: 600
diff changeset
    28
    IriSP.widgetsDefaults["createAnnotationWidget"].cinecast_version = false;
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    29
    var config = {            
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    30
        gui:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    31
            width:650,
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    32
            height:2100,              
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    33
            container:'LdtPlayer',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    34
            css:'../../src/css/LdtPlayer.css',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    35
            widgets: [
624
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    36
             {type: "PolemicWidget",
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    37
               width: 640, /* required for this widget */
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    38
               height: 50,
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    39
               metadata:{
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    40
                format:'cinelab',
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    41
                src:platf_url + 'cljson/id/' + project_id,
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    42
                type:'json'},
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    43
                
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    44
               requires: [{
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    45
                type: "TooltipWidget",
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    46
                width: 180,
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    47
                heigh: 160,
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    48
                metadata : {
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    49
                  format:'cinelab',
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    50
                  src:platf_url + 'cljson/id/' + project_id,
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    51
                  type:'empty'
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    52
                }
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    53
               }],
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    54
            },                      
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    55
            {type: "AnnotationsListWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    56
             container: "AnnotationsListContainer",             
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
						},
600
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    62
            {type: "SparklineWidget",
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    63
             width: 640, /* required for this widget */
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    64
             height: 50,            
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    65
						 metadata:{
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    66
						  format:'cinelab',
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    67
						  src:platf_url + 'cljson/id/' + project_id,
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    68
						  type:'json'}
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    69
						},
624
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    70
            {type: "SliderWidget",
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    71
						 metadata:{
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    72
						  format:'cinelab',
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    73
						  src:platf_url + 'cljson/id/' + project_id,
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    74
						  type:'json'}
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    75
						},  
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    76
            {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
    77
             mode: "radio",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    78
             metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    79
              format:'cinelab',
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
    80
              src:platf_url + 'cljson/id/' + project_id,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    81
              type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    82
            },
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    83
            {type: "SegmentsWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    84
             metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    85
              format:'cinelab',
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
    86
              src:platf_url + 'cljson/id/' + project_id,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    87
              type:'json'},
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    88
             requires: [{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    89
              type: "TooltipWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    90
              width: 180,
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    91
              heigh: 160,
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    92
              metadata : {
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    93
                type:'empty'
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    94
              }
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
            },            
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    97
            {type: "SliceWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    98
             metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    99
              format:'cinelab',
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
   100
              src:platf_url + 'cljson/id/' + project_id,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   101
              type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   102
            },            
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   103
            {type: "ArrowWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   104
             metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   105
              format:'cinelab',
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
   106
              src:platf_url + 'cljson/id/' + project_id,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   107
              type:'json'}
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
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   111
            {type: "AnnotationsWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   112
						 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   113
						  format:'cinelab',
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
   114
						  src:platf_url + 'cljson/id/' + project_id,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   115
						  type:'json'}
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
            {type: "TweetsWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   118
						 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   119
						  format:'cinelab',
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
   120
						  src:platf_url + 'cljson/id/' + project_id,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   121
						  type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   122
						},
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   123
            {type: "createAnnotationWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   124
						 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   125
						  format:'cinelab',
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
   126
						  src:platf_url + 'cljson/id/' + project_id,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   127
						  type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   128
						}      
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   129
            ]
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   130
        },
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   131
      player:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   132
      type:'jwplayer', // player type
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   133
              live: true, 
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   134
              height: 300, 
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   135
              width: 640, 
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   136
              provider: "rtmp" 
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
      modules: [
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   139
               { type: "MediaFragment",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   140
  			     		 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   141
	  	  			   format:'cinelab',
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
   142
		  				   src:platf_url + 'cljson/id/' + project_id,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   143
						     type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   144
						}]
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   145
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   146
    };
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   147
    
598
50cfc3600365 made the file a little less project-specific.
hamidouk
parents: 595
diff changeset
   148
    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
   149
      function() {   
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   150
              var layoutManager = new IriSP.LayoutManager(config.gui.container);
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   151
              var pop = IriSP.configurePopcorn(layoutManager, config.player);
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   152
              
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   153
              var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); 
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   154
              var modules = IriSP.configureModules(pop, config.modules); 
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   155
      });
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   156
  </script>
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   157
  
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   158
  
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   159
 </body>
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   160
 <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
   161
 </html>