test/youtube.htm
branchnew-model
changeset 883 d35ad8111c5e
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 Youtube</title>
       
     6 </head>
       
     7 
       
     8 <body>
       
     9 
       
    10   <script type="text/javascript" src="../build/LdtPlayer-core.js" type="text/javascript"></script>   
       
    11   
       
    12   <div id="LdtPlayer"></div>
       
    13   
       
    14   <script  type="text/javascript">
       
    15     IriSP.libFiles.defaultDir = "../src/js/libs/";
       
    16     IriSP.widgetsDir = "../src/widgets"
       
    17     var _metadata = {
       
    18         url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/78bb591c-6392-11e1-92e8-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: "Arrow" },
       
    34                 { type: "Annotation" },
       
    35                 {
       
    36                     type: "AnnotationsList",
       
    37                     ajax_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?", 
       
    38                     //foreign_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}",
       
    39                     container: "AnnotationsListContainer"
       
    40                 },
       
    41                 { type: "Mediafragment"},
       
    42 /*                {
       
    43                     type: "Trace",
       
    44                     js_console: true
       
    45                 }
       
    46 */            ]
       
    47         },
       
    48         player:{
       
    49             type:'youtube', // player type
       
    50             live: true, 
       
    51             height: 350, 
       
    52             width: 620, 
       
    53             provider: "rtmp" ,
       
    54             autostart: true
       
    55         }
       
    56     };
       
    57     
       
    58     var _myPlayer = new IriSP.Metadataplayer(_config, _metadata);
       
    59   </script>
       
    60   
       
    61  <div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 0;"></div>
       
    62   
       
    63  </body>
       
    64  </html>