test/integration/polemic-festival.htm
author hamidouk
Mon, 16 Jan 2012 15:06:41 +0100
branchpopcorn-port
changeset 640 a6b64eeeb76d
parent 624 177dfeacc7a6
child 679 db6807d0823b
permissions -rw-r--r--
redid samuel's decimal to hexa conversion function.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
617
cb8772265ce2 added integration test file for festival cinecast.
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">
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
     2
<html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
     3
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
     4
<head>
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
     5
<title>Metadataplayer - Polemic tweet integration test</title>
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
     6
</head>
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
     7
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
     8
<body>
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
     9
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    10
  <div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    11
  <h1>MetaDataPlayer</h1>
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    12
  Integration test - Using an ldtplatform located at http://localhost/pf/
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    13
  </div>
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    14
  
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    15
  
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    16
 <!-- START Integration  ###################################### -->
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    17
 <!-- SIMPLE PLAYER EXPERIMENTATION -->
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    18
  <script type="text/javascript" src="../../build/LdtPlayer-release.js" type="text/javascript"></script>   
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    19
  
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    20
  <div id="video"></div>
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    21
  <div id="LdtPlayer"></div>
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    22
  <div id="Sparkline"></div>
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    23
  <script  type="text/javascript">
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    24
    var platf_url = "http://localhost/pf/ldtplatform/ldt/";
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    25
    var project_id = "47e3eef0-3ab4-11e1-9423-001d7d7c6d1d";
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    26
    var config = {            
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    27
        gui:{
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    28
            width:650,
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    29
            height:2100,              
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    30
            container:'LdtPlayer',
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    31
            css:'../../src/css/LdtPlayer.css',
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    32
            widgets: [
624
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 617
diff changeset
    33
            {type: "PolemicWidget",
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 617
diff changeset
    34
               width: 640, /* required for this widget */
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 617
diff changeset
    35
               height: 50,
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 617
diff changeset
    36
               metadata:{
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 617
diff changeset
    37
                format:'cinelab',
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 617
diff changeset
    38
                src:'polemic_fr.json',
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 617
diff changeset
    39
                type:'json'},
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 617
diff changeset
    40
                
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 617
diff changeset
    41
               requires: [{
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 617
diff changeset
    42
                type: "TooltipWidget",
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 617
diff changeset
    43
                width: 180,
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 617
diff changeset
    44
                heigh: 160,
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 617
diff changeset
    45
                metadata : {
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 617
diff changeset
    46
                  format:'cinelab',
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 617
diff changeset
    47
                  src:'polemic.json',
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 617
diff changeset
    48
                  type:'empty'
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 617
diff changeset
    49
                }
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 617
diff changeset
    50
               }],
177dfeacc7a6 made the polemicwidget not show itself if it has no data to display.
hamidouk
parents: 617
diff changeset
    51
            },            
617
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    52
            {type: "AnnotationsListWidget",
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    53
             container: "AnnotationsListContainer",             
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    54
						 metadata:{
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    55
						  format:'cinelab',
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    56
						  src:platf_url + 'cljson/id/' + project_id,
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    57
						  type:'json'}
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    58
						},
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    59
            {type: "SparklineWidget",
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    60
             width: 640, /* required for this widget */
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    61
             height: 50,            
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    62
						 metadata:{
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    63
						  format:'cinelab',
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    64
						  src:platf_url + 'cljson/id/' + project_id,
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    65
						  type:'json'}
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    66
						},
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    67
            {type: "SliderWidget",
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    68
						 metadata:{
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    69
						  format:'cinelab',
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    70
						  src:platf_url + 'cljson/id/' + project_id,
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    71
						  type:'json'}
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    72
						},        
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    73
            {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    74
             mode: "radio",
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    75
             metadata:{
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    76
              format:'cinelab',
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    77
              src:platf_url + 'cljson/id/' + project_id,
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    78
              type:'json'}
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    79
            },
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    80
            {type: "SegmentsWidget",
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    81
             metadata:{
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    82
              format:'cinelab',
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    83
              src:platf_url + 'cljson/id/' + project_id,
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    84
              type:'json'},
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    85
             requires: [{
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    86
              type: "TooltipWidget",
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    87
              width: 180,
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    88
              heigh: 160,
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    89
              metadata : {
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    90
                type:'empty'
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    91
              }
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    92
             }],
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    93
            },                     
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    94
            {type: "ArrowWidget",
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    95
             metadata:{
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    96
              format:'cinelab',
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    97
              src:platf_url + 'cljson/id/' + project_id,
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    98
              type:'json'}
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
    99
            },
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   100
            {type: "TweetsWidget",
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   101
						 metadata:{
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   102
						  format:'cinelab',
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   103
						  src:platf_url + 'cljson/id/' + project_id,
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   104
						  type:'json'}
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   105
						},
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   106
            {type: "createAnnotationWidget",
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   107
						 metadata:{
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   108
						  format:'cinelab',
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   109
						  src:platf_url + 'cljson/id/' + project_id,
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   110
						  type:'json'}
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   111
						}      
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   112
            ]
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   113
        },
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   114
      player:{
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   115
      type:'jwplayer', // player type
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   116
              live: true, 
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   117
              height: 300, 
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   118
              width: 640, 
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   119
              provider: "rtmp" 
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   120
      },
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   121
      modules: [
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   122
               { type: "MediaFragment",
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   123
  			     		 metadata:{
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   124
	  	  			   format:'cinelab',
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   125
		  				   src:platf_url + 'cljson/id/' + project_id,
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   126
						     type:'json'}
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   127
						}]
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   128
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   129
    };
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   130
    
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   131
    IriSP.loadLibs(IriSP.lib, config, platf_url + 'cljson/id/' + project_id,
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   132
      function() {   
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   133
              var layoutManager = new IriSP.LayoutManager(config.gui.container);
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   134
              var pop = IriSP.configurePopcorn(layoutManager, config.player);
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   135
              
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   136
              var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); 
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   137
              var modules = IriSP.configureModules(pop, config.modules); 
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   138
      });
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   139
  </script>
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   140
  
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   141
  
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   142
 </body>
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   143
 <div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div>
cb8772265ce2 added integration test file for festival cinecast.
hamidouk
parents:
diff changeset
   144
 </html>