test/index.htm
branchnew-model
changeset 883 d35ad8111c5e
parent 882 61c384dda19e
child 884 10233337f6da
equal deleted inserted replaced
882:61c384dda19e 883:d35ad8111c5e
     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">
       
     3 
       
     4 <head>
       
     5 <title>Metadataplayer - Polemic tweet integration test</title>
       
     6 </head>
       
     7 
       
     8 <body>
       
     9 
       
    10   <div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
       
    11   <h1>MetaDataPlayer</h1>
       
    12   Polemic tweet integration test - using Popcorn, jwplayer and the <a href="http://polemictweet.com">PolemicTweet</a> widget.<br>
       
    13   </div>
       
    14   
       
    15   
       
    16  <!-- START Integration  ###################################### -->
       
    17  <!-- SIMPLE PLAYER EXPERIMENTATION -->
       
    18   <script type="text/javascript" src="../build/LdtPlayer-core.js" type="text/javascript"></script>   
       
    19   
       
    20   <div id="video"></div>
       
    21   <div id="LdtPlayer"></div>
       
    22   
       
    23   <script  type="text/javascript">
       
    24   IriSP.libFiles.defaultDir = "../src/js/libs/";
       
    25   IriSP.widgetsDir = "../src/widgets"
       
    26   IriSP.jwplayer_swf_path = "player.swf";
       
    27     var _metadata = {
       
    28         url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/13b0aa52-336b-11e0-b233-00145ea49a02?callback=?',
       
    29         format: 'ldt'
       
    30     };
       
    31     var _config = {            
       
    32         gui: {
       
    33             width:620,
       
    34             height:800,
       
    35             container:'LdtPlayer',
       
    36 			default_options: {
       
    37 				metadata: _metadata
       
    38 			},
       
    39             css:'../src/css/LdtPlayer-core.css',
       
    40             widgets: [
       
    41                 { type: "Sparkline" },
       
    42                 { type: "Slider" },
       
    43                 { type: "Controller" },
       
    44                 { type: "Polemic" },
       
    45                 { type: "Segments" },
       
    46                 { type: "Slice" },
       
    47                 { type: "Arrow" },
       
    48                 { type: "Annotation" },
       
    49                 { type: "Tweet" },
       
    50                 { type: "Tagcloud" },
       
    51                 {
       
    52                     type: "AnnotationsList",
       
    53                     //ajax_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?", 
       
    54                     //foreign_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}",
       
    55                     container: "AnnotationsListContainer"
       
    56                 },
       
    57                 { type: "Mediafragment"},
       
    58 /*                {
       
    59                     type: "Trace",
       
    60                     js_console: true
       
    61                 }
       
    62 */            ]
       
    63         },
       
    64         player:{
       
    65             type:'jwplayer', // player type
       
    66             live: true, 
       
    67             height: 300, 
       
    68             width: 620, 
       
    69             provider: "rtmp" 
       
    70         }
       
    71     };
       
    72     
       
    73     var _myPlayer = new IriSP.Metadataplayer(_config, _metadata);
       
    74   </script>
       
    75   
       
    76   
       
    77  </body>
       
    78  <div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div>
       
    79  </html>