test/integration/elm/index.htm
author hamidouk
Mon, 05 Dec 2011 15:53:30 +0100
branchcap-demo
changeset 409 aa08a47b3dbb
parent 407 eba1d023f9b1
child 412 d1fbfb7adeea
permissions -rw-r--r--
truncate the text if it's too long.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
399
8048252d7cc5 added folder for the capdigital demo.
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">
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
     2
<html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
     3
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
     4
<head>
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
     5
<title>Metadataplayer - Polemic tweet integration test</title>
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
     6
</head>
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
     7
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
     8
<body>
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
     9
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    10
  <div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    11
  <h1>MetaDataPlayer</h1>
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    12
  Metadataplayer - entre les murs demo.
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    13
  </div>
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    14
  
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    15
  
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    16
 <!-- START Integration  ###################################### -->
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    17
 <!-- SIMPLE PLAYER EXPERIMENTATION -->
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    18
  <script type="text/javascript" src="../../../build/LdtPlayer-release.js" type="text/javascript"></script> 
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    19
  <script src="../../../res/js/jquery.min.js" type="text/javascript"></script>
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    20
  <script src="../../../res/js/jquery.tools.min.js" type="text/javascript"></script>
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    21
  <script src="../../../res/js/jquery-ui.min.js" type="text/javascript"></script>
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    22
  
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    23
  <div id="video"></div>
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    24
  <div id="LdtPlayer"></div>
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    25
  
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    26
  <script  type="text/javascript">
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    27
    $(document).ready(function() {
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    28
    var config = {            
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    29
        gui:{
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    30
            width:650,
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    31
            height:2100,              
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    32
            container:'LdtPlayer',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    33
            css:'../../../src/css/LdtPlayer.css',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    34
            widgets: [
401
e08183460e0f update demo files.
hamidouk
parents: 399
diff changeset
    35
              {type: "PolemicViewer",
399
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    36
             width: 640, /* required for this widget */
407
eba1d023f9b1 changed height.
hamidouk
parents: 405
diff changeset
    37
             height: 150,
eba1d023f9b1 changed height.
hamidouk
parents: 405
diff changeset
    38
             heightmax: 150,
399
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    39
             metadata:{
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    40
              format:'cinelab',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    41
              src:'elm_fr.json',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    42
              type:'json'},
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    43
              
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    44
             requires: [{
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    45
              type: "TooltipWidget",
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    46
              width: 180,
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    47
              heigh: 160,
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    48
              metadata : {
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    49
                format:'cinelab',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    50
                src:'elm.json',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    51
                type:'empty'
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    52
              }
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    53
             }],
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    54
            },
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    55
            {type: "SliderWidget",
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    56
						 metadata:{
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    57
						  format:'cinelab',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    58
						  src:'elm_fr.json',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    59
						  type:'json'}
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    60
						},
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    61
            {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    62
             mode: "radio",
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    63
             metadata:{
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    64
              format:'cinelab',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    65
              src:'elm_fr.json',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    66
              type:'json'}
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    67
            },
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    68
            {type: "SegmentsWidget",
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    69
             metadata:{
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    70
              format:'cinelab',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    71
              src:'elm_fr.json',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    72
              type:'json'},
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    73
             requires: [{
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    74
              type: "TooltipWidget",
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    75
              width: 180,
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    76
              heigh: 160,
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    77
              metadata : {
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    78
                type:'empty'
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    79
              }
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    80
             }],
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    81
            },
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    82
            {type: "ArrowWidget",
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    83
             metadata:{
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    84
              format:'cinelab',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    85
              src:'elm_fr.json',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    86
              type:'json'}
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    87
            },
407
eba1d023f9b1 changed height.
hamidouk
parents: 405
diff changeset
    88
            {type: "TweetsView",
399
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    89
						 metadata:{
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    90
						  format:'cinelab',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    91
						  src:'elm_fr.json',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    92
						  type:'json'}
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    93
						}      
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    94
            ]
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    95
        },
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    96
      player:{
401
e08183460e0f update demo files.
hamidouk
parents: 399
diff changeset
    97
              type:'html5', // player type
399
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    98
              container: 'PopcornContainer',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    99
              // the rest is player-dependent configuration options.
401
e08183460e0f update demo files.
hamidouk
parents: 399
diff changeset
   100
              file : "elm.webm",
405
e1ed0fdbbec9 fixed polemicview size and video size.
hamidouk
parents: 401
diff changeset
   101
              height: 262, 
399
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   102
              width: 640, 
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   103
            }
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   104
    };
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   105
    
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   106
    IriSP.loadLibs(IriSP.lib, config.gui.css, 
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   107
      function() {   
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   108
              var layoutManager = new IriSP.LayoutManager(config.gui.container);
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   109
              var pop = IriSP.configurePopcorn(layoutManager, config.player);
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   110
              
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   111
              var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); });
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   112
    
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   113
    });
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   114
  </script>
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   115
  
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   116
  
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   117
 </body>
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   118
 <div id="PopcornContainer"></div>
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   119
 </html>