test/integration/elm/index.htm
author hamidouk
Mon, 05 Dec 2011 14:54:19 +0100
branchcap-demo
changeset 404 6c4e5b2fee8c
parent 401 e08183460e0f
child 405 e1ed0fdbbec9
permissions -rw-r--r--
fixed typo in varname.
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 */
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    37
             height: 50,
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    38
             heightmax: 50,
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
            },
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    88
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    89
            {type: "AnnotationsWidget",
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    90
						 metadata:{
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    91
						  format:'cinelab',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    92
						  src:'elm_fr.json',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    93
						  type:'json'}
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    94
						},
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    95
            {type: "TweetsWidget",
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    96
						 metadata:{
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    97
						  format:'cinelab',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    98
						  src:'elm_fr.json',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
    99
						  type:'json'}
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   100
						}      
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   101
            ]
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   102
        },
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   103
      player:{
401
e08183460e0f update demo files.
hamidouk
parents: 399
diff changeset
   104
              type:'html5', // player type
399
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   105
              container: 'PopcornContainer',
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   106
              // the rest is player-dependent configuration options.
401
e08183460e0f update demo files.
hamidouk
parents: 399
diff changeset
   107
              file : "elm.webm",
e08183460e0f update demo files.
hamidouk
parents: 399
diff changeset
   108
              height: 196, 
399
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   109
              width: 640, 
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   110
            }
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   111
    };
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   112
    
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   113
    IriSP.loadLibs(IriSP.lib, config.gui.css, 
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   114
      function() {   
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   115
              var layoutManager = new IriSP.LayoutManager(config.gui.container);
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   116
              var pop = IriSP.configurePopcorn(layoutManager, config.player);
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   117
              
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   118
              var widgets = IriSP.configureWidgets(pop, layoutManager, config.gui); });
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   119
    
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   120
    });
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   121
  </script>
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   122
  
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   123
  
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   124
 </body>
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   125
 <div id="PopcornContainer"></div>
8048252d7cc5 added folder for the capdigital demo.
hamidouk
parents:
diff changeset
   126
 </html>