test/integration/allocine_dossier_independant/polemic-allocine.htm
branchpopcorn-port
changeset 835 a8af9da7c622
parent 833 33a5d5882be4
child 836 526f91f5253e
equal deleted inserted replaced
834:573c7ca752e0 835:a8af9da7c622
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     2 <html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
     2 <html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
       
     3     <head>
       
     4         <title>Metadataplayer - Polemic tweet integration test</title>
       
     5     </head>
       
     6     <body style="background: #222222; color: #ffffff;">
       
     7         <div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
       
     8             <h1>MetaDataPlayer</h1>
       
     9             Integration test - ALLOCINE PLAYER
       
    10         </div>
       
    11         <!-- START Integration  ###################################### -->
       
    12         <!-- SIMPLE PLAYER EXPERIMENTATION -->
       
    13         <script type="text/javascript" src="/metadataplayer/build/LdtPlayer-release.js" type="text/javascript"></script>
       
    14         <div id="video"></div>
       
    15         <div id="LdtPlayer"></div>
       
    16         <div id="Sparkline"></div>
       
    17         <script  type="text/javascript">
       
    18             var json_url = 'allocine_test/bamako.json';
     3 
    19 
     4 <head>
    20             IriSP.user = {
     5 <title>Metadataplayer - Polemic tweet integration test</title>
    21                 name : 'awesome_user_name',
     6 </head>
    22                 avatar : 'allocine_test/avatar.png'
       
    23             };
       
    24             IriSP.libdir = "/metadataplayer/src/js/libs/";
       
    25             IriSP.defaults.user = function() {
       
    26                 return IriSP.user;
       
    27             };
       
    28             var config = {
       
    29                 gui : {
       
    30                     width : 610,
       
    31                     height : 2100,
       
    32                     container : 'LdtPlayer',
       
    33                     css : 'css/LdtPlayer.css',
       
    34                     default_options : {
       
    35                         metadata : {
       
    36                             format : 'cinelab',
       
    37                             src : json_url,
       
    38                             type : 'json'
       
    39                         },
       
    40                         cinecast_version : true,
       
    41                         width : 610
       
    42                     },
       
    43                     widgets : [{
       
    44                         type : "AnnotationsListWidget",
       
    45                         container : "AnnotationsListContainer",
       
    46                         ajax_mode : false
       
    47                     }, {
       
    48                         type : "SparklineWidget",
       
    49                         height : 50,
       
    50                         lineColor: "#ffffff",
       
    51                         fillColor: "#999999"
       
    52                     }, {
       
    53                         type : "SliderWidget"
       
    54                     }, {
       
    55                         type : "PlayerWidget",
       
    56                         disable_annotate_btn : true,
       
    57                         disable_search_btn : true
       
    58                     }, {
       
    59                         type : "SegmentsWidget",
       
    60                         requires : [{
       
    61                             type : "TooltipWidget",
       
    62                             width : 180,
       
    63                             height : 160,
       
    64                         }]
       
    65                     }, {
       
    66                         type : "createAnnotationWidget",
       
    67                         polemic_mode : false,
       
    68                         keywords : ['#vodkaster', '#allocine', '#universcine'],
       
    69                         api_endpoint_template : "coucou/{{id}}.json",
       
    70                         api_method : 'POST'
       
    71                     }, {
       
    72                         type: "TraceWidget",
       
    73                         url: "http://192.168.56.101:5000/",
       
    74                         requestmode: 'GET',
       
    75                         syncmode: "sync"
       
    76                     }]
       
    77                 },
       
    78                 player : {
       
    79                     type : 'allocine', // player type
       
    80                     height : 300,
       
    81                     width : 610,
       
    82                     acPlayerUrl : "allocine_test/AcPlayer_v3.0.swf",
       
    83                     autoPlay : "false",
       
    84                     urlAcData : "allocine_test/data_cinecast.xml"
       
    85                 },
       
    86                 modules : [{
       
    87                     type : "MediaFragment",
       
    88                     metadata : {
       
    89                         format : 'cinelab',
       
    90                         src : json_url,
       
    91                         type : 'json'
       
    92                     }
       
    93                 }]
     7 
    94 
     8 <body style="background: #000000; color: #ffffff;">
    95             };
     9 
    96 
    10   <div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
    97             IriSP.initPlayer(config, json_url);
    11   <h1>MetaDataPlayer</h1>
       
    12   Integration test - ALLOCINE PLAYER
       
    13   </div>
       
    14   
       
    15   
       
    16  <!-- START Integration  ###################################### -->
       
    17  <!-- SIMPLE PLAYER EXPERIMENTATION -->
       
    18   <script type="text/javascript" src="/metadataplayer/build/LdtPlayer-release.js" type="text/javascript"></script>   
       
    19   
       
    20   <div id="video"></div>
       
    21   <div id="LdtPlayer"></div>
       
    22   <div id="Sparkline"></div>
       
    23   <script  type="text/javascript">
       
    24     var json_url = 'allocine_test/allocine.json';
       
    25     
       
    26     IriSP.user = {name: 'awesome_user_name', avatar: 'allocine_test/avatar.png'};
       
    27     IriSP.libdir = "js/libs/";
       
    28     IriSP.defaults.user = function(){ return IriSP.user; };
       
    29     
       
    30     var config = {            
       
    31         gui:{
       
    32             width:610,
       
    33             height:2100,              
       
    34             container:'LdtPlayer',
       
    35             css:'css/LdtPlayer.css?42',
       
    36             default_options : {
       
    37                 metadata:{
       
    38                     format:'cinelab',
       
    39                     src: json_url,
       
    40                     type:'json'
       
    41                 },
       
    42                 cinecast_version: true,
       
    43                 width: 610
       
    44             },
       
    45             widgets: [
       
    46             {type: "StackGraphWidget",
       
    47                requires: [{
       
    48                 type: "TooltipWidget",
       
    49                 width: 180,
       
    50                 heigh: 160,
       
    51                 metadata : {type:'empty'
       
    52                 }
       
    53                }],
       
    54             },            
       
    55             {type: "AnnotationsListWidget",
       
    56              container: "AnnotationsListContainer",
       
    57              ajax_mode: false},
       
    58             {type: "SliderWidget"},
       
    59             {type: "PlayerWidget",
       
    60              disable_annotate_btn: true},
       
    61             {type: "createAnnotationWidget",
       
    62             polemic_mode: false,
       
    63             keywords: ['#vodkaster', '#allocine', '#universcine'],
       
    64             api_endpoint_template : "coucou/{{id}}.json",
       
    65             api_method: 'POST'}
       
    66             ]
       
    67         },
       
    68       player:{
       
    69       type:'allocine', // player type 
       
    70               height: 300, 
       
    71               width: 640,
       
    72               acPlayerUrl: "allocine_test/AcPlayer_v3.0.swf",
       
    73               autoPlay: "false",
       
    74               urlAcData: "allocine_test/data_cinecast.xml"
       
    75       },
       
    76       modules: [
       
    77                { type: "MediaFragment",
       
    78                          metadata:{
       
    79                        format:'cinelab',
       
    80                            src:json_url,
       
    81                              type:'json'}
       
    82                         }]
       
    83 
    98 
    84     };
    99         </script>
    85     
   100     </body>
    86     
   101     <div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div>
    87     IriSP.initPlayer(config, json_url);
   102 </html>
    88 
       
    89   </script>
       
    90   
       
    91   
       
    92  </body>
       
    93  <div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div>
       
    94  </html>