test/integration/polemic-platform.htm
author veltr
Thu, 19 Apr 2012 19:20:41 +0200
branchnew-model
changeset 872 d777d05a16e4
parent 744 76400fd4ce70
permissions -rw-r--r--
finished AnnotationsList and started New PolemicWidget
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/";
704
235190848d7d changed project id.
hamidouk
parents: 695
diff changeset
    25
    //var project_id = "47e3eef0-3ab4-11e1-9423-001d7d7c6d1d";
695
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    26
    //http://localhost/pf/ldtplatform/ldt/cljson/id/
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    27
    //var project_id = "1771a6cf-3dfd-11e1-a3d8-001d7d7c6d1d";
704
235190848d7d changed project id.
hamidouk
parents: 695
diff changeset
    28
    var project_id = "1771a6cf-3dfd-11e1-a3d8-001d7d7c6d1d";
695
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    29
    var json_src = platf_url + "cljson/id/" + project_id;
618
79c9a05ddaed disable the cinecast modifications.
hamidouk
parents: 600
diff changeset
    30
    
744
76400fd4ce70 changed the files to follow the simpler embed convention.
hamidouk
parents: 704
diff changeset
    31
    IriSP.widgetsDefaults["createAnnotationWidget"] = {};
618
79c9a05ddaed disable the cinecast modifications.
hamidouk
parents: 600
diff changeset
    32
    IriSP.widgetsDefaults["createAnnotationWidget"].cinecast_version = false;
744
76400fd4ce70 changed the files to follow the simpler embed convention.
hamidouk
parents: 704
diff changeset
    33
    
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    34
    var config = {            
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    35
        gui:{
665
372852c77e6d changed platform test file.
hamidouk
parents: 635
diff changeset
    36
            width:650,        
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    37
            container:'LdtPlayer',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    38
            css:'../../src/css/LdtPlayer.css',
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    39
            widgets: [
624
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    40
             {type: "PolemicWidget",
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    41
               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
    42
               height: 50,
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    43
               metadata:{
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    44
                format:'cinelab',
695
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    45
                src:json_src,
624
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    46
                type:'json'},
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    47
                
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    48
               requires: [{
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    49
                type: "TooltipWidget",
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    50
                width: 180,
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    51
                heigh: 160,
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    52
                metadata : {
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    53
                  format:'cinelab',
695
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    54
                  src:json_src,
624
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    55
                  type:'empty'
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    56
                }
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    57
               }],
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    58
            },                      
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    59
            {type: "AnnotationsListWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    60
             container: "AnnotationsListContainer",             
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
						  format:'cinelab',
695
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    63
						  src:json_src,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    64
						  type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    65
						},
600
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    66
            {type: "SparklineWidget",
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    67
             width: 640, /* required for this widget */
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    68
             height: 50,            
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    69
						 metadata:{
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    70
						  format:'cinelab',
695
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    71
						  src:json_src,
600
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    72
						  type:'json'}
4e669328ab6d fixed config bug.
hamidouk
parents: 598
diff changeset
    73
						},
695
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    74
            {   type: "StackGraphWidget",
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    75
                metadata: {
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    76
                    format:'cinelab',
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    77
                    src:json_src,
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    78
                    type:'json'
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    79
                },requires: [{
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    80
                  type: "TooltipWidget",
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    81
                  width: 180,
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    82
                  heigh: 160,
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    83
                  metadata : {
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    84
                    type:'empty'
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    85
                  }
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    86
                  }]
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    87
            },
624
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    88
            {type: "SliderWidget",
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    89
						 metadata:{
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    90
						  format:'cinelab',
695
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    91
						  src:json_src,
624
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    92
						  type:'json'}
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 618
diff changeset
    93
						},  
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    94
            {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
    95
             mode: "radio",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    96
             metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    97
              format:'cinelab',
695
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
    98
              src:json_src,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
    99
              type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   100
            },
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   101
            {type: "SegmentsWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   102
             metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   103
              format:'cinelab',
695
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
   104
              src:json_src,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   105
              type:'json'},
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   106
             requires: [{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   107
              type: "TooltipWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   108
              width: 180,
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   109
              heigh: 160,
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   110
              metadata : {
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   111
                type:'empty'
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   112
              }
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
            {type: "SliceWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   116
             metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   117
              format:'cinelab',
695
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
   118
              src:json_src,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   119
              type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   120
            },            
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   121
            {type: "ArrowWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   122
             metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   123
              format:'cinelab',
695
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
   124
              src:json_src,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   125
              type:'json'}
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
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   129
            {type: "AnnotationsWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   130
						 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   131
						  format:'cinelab',
695
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
   132
						  src:json_src,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   133
						  type:'json'}
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
            {type: "TweetsWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   136
						 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   137
						  format:'cinelab',
695
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
   138
						  src:json_src,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   139
						  type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   140
						},
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   141
            {type: "createAnnotationWidget",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   142
						 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   143
						  format:'cinelab',
695
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
   144
						  src:json_src,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   145
						  type:'json'}
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
            ]
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   148
        },
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   149
      player:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   150
      type:'jwplayer', // player type
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   151
              live: true, 
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   152
              height: 300, 
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   153
              width: 640, 
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   154
              provider: "rtmp" 
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
      modules: [
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   157
               { type: "MediaFragment",
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   158
  			     		 metadata:{
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   159
	  	  			   format:'cinelab',
695
8bcde739ab93 made the file DRYer
hamidouk
parents: 665
diff changeset
   160
		  				   src:json_src,
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   161
						     type:'json'}
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   162
						}]
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   163
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   164
    };
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   165
    
744
76400fd4ce70 changed the files to follow the simpler embed convention.
hamidouk
parents: 704
diff changeset
   166
    IriSP.initPlayer(config, json_src);
592
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   167
  </script>
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   168
  
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   169
  
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   170
 </body>
35459f92bb66 added a special file to test the platform response.
hamidouk
parents:
diff changeset
   171
 <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
   172
 </html>