test/jwplayer.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 - Test with JwPlayer</title>
       
     6 </head>
       
     7 
       
     8 <body>
       
     9   <script type="text/javascript" src="../build/LdtPlayer-core.js" type="text/javascript"></script>   
       
    10   
       
    11   <div id="LdtPlayer"></div>
       
    12   
       
    13   <script  type="text/javascript">
       
    14   IriSP.libFiles.defaultDir = "../src/js/libs/";
       
    15   IriSP.widgetsDir = "../src/widgets"
       
    16   IriSP.jwplayer_swf_path = "player.swf";
       
    17     var _metadata = {
       
    18         url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/f1a17368-2bc8-11e1-b21a-00145ea49a02?callback=?',
       
    19         format: 'ldt'
       
    20     };
       
    21     var _config = {            
       
    22         gui: {
       
    23             width:620,
       
    24             container:'LdtPlayer',
       
    25 			default_options: {
       
    26 				metadata: _metadata
       
    27 			},
       
    28             css:'../src/css/LdtPlayer-core.css',
       
    29             widgets: [
       
    30                 { type: "Sparkline" },
       
    31                 { type: "Slider" },
       
    32                 { type: "Controller" },
       
    33                 { type: "Polemic" },
       
    34                 { type: "Segments" },
       
    35                 { type: "Slice" },
       
    36                 { type: "Arrow" },
       
    37                 { type: "Annotation" },
       
    38                 { type: "Tweet" },
       
    39                 { type: "Tagcloud" },
       
    40                 {
       
    41                     type: "AnnotationsList",
       
    42                     //ajax_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?", 
       
    43                     //foreign_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}",
       
    44                     container: "AnnotationsListContainer"
       
    45                 },
       
    46                 { type: "Mediafragment"},
       
    47 /*                {
       
    48                     type: "Trace",
       
    49                     js_console: true
       
    50                 }
       
    51 */            ]
       
    52         },
       
    53         player:{
       
    54             type:'jwplayer', // player type
       
    55             live: true, 
       
    56             height: 350, 
       
    57             width: 620, 
       
    58             provider: "rtmp" ,
       
    59             autostart: true
       
    60         }
       
    61     };
       
    62     
       
    63     var _myPlayer = new IriSP.Metadataplayer(_config, _metadata);
       
    64   </script>
       
    65   
       
    66  <div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 0;"></div>
       
    67   
       
    68  </body>
       
    69  </html>