test/integration/allocine_dossier_independant/polemic-allocine.htm
author veltr
Mon, 05 Mar 2012 18:11:58 +0100
branchpopcorn-port
changeset 828 bcf0c2bdcb8e
parent 826 c7ae4f126e51
child 830 18ca612e9ff0
permissions -rw-r--r--
Removed some console.logs + css corrections
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
819
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
     2
<html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
     3
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
     4
<head>
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
     5
<title>Metadataplayer - Polemic tweet integration test</title>
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
     6
</head>
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
     7
823
1e7962e1d3ae Starting 'cinecast-traces' branch
veltr
parents: 820
diff changeset
     8
<body style="background: #000000; color: #ffffff;">
819
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
     9
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    10
  <div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    11
  <h1>MetaDataPlayer</h1>
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    12
  Integration test - ALLOCINE PLAYER
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    13
  </div>
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    14
  
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    15
  
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    16
 <!-- START Integration  ###################################### -->
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    17
 <!-- SIMPLE PLAYER EXPERIMENTATION -->
826
c7ae4f126e51 Starting implementing a trace widget
veltr
parents: 823
diff changeset
    18
  <script type="text/javascript" src="/metadataplayer/build/LdtPlayer-release.js" type="text/javascript"></script>   
819
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    19
  
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    20
  <div id="video"></div>
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    21
  <div id="LdtPlayer"></div>
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    22
  <div id="Sparkline"></div>
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    23
  <script  type="text/javascript">
820
7968346b9689 Added compatibility with cinecast format (with get_aliased)
veltr
parents: 819
diff changeset
    24
    var json_url = 'allocine_test/exemple_cinecast.json';
819
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    25
    
823
1e7962e1d3ae Starting 'cinecast-traces' branch
veltr
parents: 820
diff changeset
    26
    IriSP.user = {name: 'awesome_user_name', avatar: 'allocine_test/avatar.png'};
819
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    27
    IriSP.libdir = "js/libs/";
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    28
    IriSP.widgetsDefaults["createAnnotationWidget"] = {};
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    29
    IriSP.widgetsDefaults["createAnnotationWidget"].cinecast_version = true;
823
1e7962e1d3ae Starting 'cinecast-traces' branch
veltr
parents: 820
diff changeset
    30
    IriSP.widgetsDefaults["createAnnotationWidget"].polemic_mode = false;
819
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    31
    IriSP.widgetsDefaults["createAnnotationWidget"].keywords = ["#allocine", "#vodkaster", "#universcine"];
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    32
    IriSP.widgetsDefaults["createAnnotationWidget"].api_endpoint_template = "coucou/{{id}}.json";
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    33
    IriSP.defaults.user = function(){ return IriSP.user; };
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    34
    
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    35
    var config = {            
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    36
        gui:{
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    37
            width:650,
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    38
            height:2100,              
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    39
            container:'LdtPlayer',
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    40
            css:'css/LdtPlayer.css',
823
1e7962e1d3ae Starting 'cinecast-traces' branch
veltr
parents: 820
diff changeset
    41
            default_options : {
1e7962e1d3ae Starting 'cinecast-traces' branch
veltr
parents: 820
diff changeset
    42
                metadata:{
819
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    43
                format:'cinelab',
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    44
                src: json_url,
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    45
                type:'json'},
823
1e7962e1d3ae Starting 'cinecast-traces' branch
veltr
parents: 820
diff changeset
    46
                width: 640
1e7962e1d3ae Starting 'cinecast-traces' branch
veltr
parents: 820
diff changeset
    47
            },
1e7962e1d3ae Starting 'cinecast-traces' branch
veltr
parents: 820
diff changeset
    48
            widgets: [
1e7962e1d3ae Starting 'cinecast-traces' branch
veltr
parents: 820
diff changeset
    49
            {type: "StackGraphWidget",
819
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    50
               requires: [{
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    51
                type: "TooltipWidget",
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    52
                width: 180,
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    53
                heigh: 160,
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    54
                metadata : {type:'empty'
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    55
                }
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    56
               }],
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    57
            },            
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    58
            {type: "AnnotationsListWidget",
823
1e7962e1d3ae Starting 'cinecast-traces' branch
veltr
parents: 820
diff changeset
    59
             container: "AnnotationsListContainer"},
1e7962e1d3ae Starting 'cinecast-traces' branch
veltr
parents: 820
diff changeset
    60
            {type: "SliderWidget"},        
819
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    61
            {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
823
1e7962e1d3ae Starting 'cinecast-traces' branch
veltr
parents: 820
diff changeset
    62
             mode: "radio"},                     
1e7962e1d3ae Starting 'cinecast-traces' branch
veltr
parents: 820
diff changeset
    63
            {type: "ArrowWidget"},
1e7962e1d3ae Starting 'cinecast-traces' branch
veltr
parents: 820
diff changeset
    64
            {type: "TweetsWidget"},
826
c7ae4f126e51 Starting implementing a trace widget
veltr
parents: 823
diff changeset
    65
            {type: "createAnnotationWidget"},
c7ae4f126e51 Starting implementing a trace widget
veltr
parents: 823
diff changeset
    66
            {type: "TraceWidget"}
819
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    67
            ]
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    68
        },
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    69
      player:{
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    70
      type:'allocine', // player type 
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    71
              height: 300, 
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    72
              width: 640,
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    73
              acPlayerUrl: "allocine_test/AcPlayer_v3.0.swf",
826
c7ae4f126e51 Starting implementing a trace widget
veltr
parents: 823
diff changeset
    74
              autoPlay: "true",
823
1e7962e1d3ae Starting 'cinecast-traces' branch
veltr
parents: 820
diff changeset
    75
              urlAcData: "allocine_test/data_cinecast.xml"
819
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    76
      },
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    77
      modules: [
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    78
               { type: "MediaFragment",
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    79
                         metadata:{
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    80
                       format:'cinelab',
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    81
                           src:json_url,
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    82
                             type:'json'}
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    83
                        }]
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    84
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    85
    };
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    86
    
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    87
    
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    88
    IriSP.initPlayer(config, json_url);
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    89
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    90
  </script>
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    91
  
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    92
  
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    93
 </body>
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    94
 <div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div>
9b8e68803f6f add allocine player, and add an full test with this allocine player.
cavaliet
parents:
diff changeset
    95
 </html>