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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">

<head>
<title>Metadataplayer - Polemic tweet integration test</title>
</head>

<body style="background: #000000; color: #ffffff;">

  <div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
  <h1>MetaDataPlayer</h1>
  Integration test - ALLOCINE PLAYER
  </div>
  
  
 <!-- START Integration  ###################################### -->
 <!-- SIMPLE PLAYER EXPERIMENTATION -->
  <script type="text/javascript" src="/metadataplayer/build/LdtPlayer-release.js" type="text/javascript"></script>   
  
  <div id="video"></div>
  <div id="LdtPlayer"></div>
  <div id="Sparkline"></div>
  <script  type="text/javascript">
    var json_url = 'allocine_test/exemple_cinecast.json';
    
    IriSP.user = {name: 'awesome_user_name', avatar: 'allocine_test/avatar.png'};
    IriSP.libdir = "js/libs/";
    IriSP.widgetsDefaults["createAnnotationWidget"] = {};
    IriSP.widgetsDefaults["createAnnotationWidget"].cinecast_version = true;
    IriSP.widgetsDefaults["createAnnotationWidget"].polemic_mode = false;
    IriSP.widgetsDefaults["createAnnotationWidget"].keywords = ["#allocine", "#vodkaster", "#universcine"];
    IriSP.widgetsDefaults["createAnnotationWidget"].api_endpoint_template = "coucou/{{id}}.json";
    IriSP.defaults.user = function(){ return IriSP.user; };
    
    var config = {            
        gui:{
            width:650,
            height:2100,              
            container:'LdtPlayer',
            css:'css/LdtPlayer.css',
            default_options : {
                metadata:{
                format:'cinelab',
                src: json_url,
                type:'json'},
                width: 640
            },
            widgets: [
            {type: "StackGraphWidget",
               requires: [{
                type: "TooltipWidget",
                width: 180,
                heigh: 160,
                metadata : {type:'empty'
                }
               }],
            },            
            {type: "AnnotationsListWidget",
             container: "AnnotationsListContainer"},
            {type: "SliderWidget"},        
            {type: "PlayerWidget", // please note that type refers directly to the constructor of the widget.
             mode: "radio"},                     
            {type: "ArrowWidget"},
            {type: "TweetsWidget"},
            {type: "createAnnotationWidget"},
            {type: "TraceWidget"}
            ]
        },
      player:{
      type:'allocine', // player type 
              height: 300, 
              width: 640,
              acPlayerUrl: "allocine_test/AcPlayer_v3.0.swf",
              autoPlay: "true",
              urlAcData: "allocine_test/data_cinecast.xml"
      },
      modules: [
               { type: "MediaFragment",
                         metadata:{
                       format:'cinelab',
                           src:json_url,
                             type:'json'}
                        }]

    };
    
    
    IriSP.initPlayer(config, json_url);

  </script>
  
  
 </body>
 <div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div>
 </html>