test/oggvideo.htm
branchplayers-as-widgets
changeset 957 4da0a5740b6c
parent 917 eb8677d3a663
child 958 2aa7fdb0762a
equal deleted inserted replaced
956:7c1d08cf6956 957:4da0a5740b6c
    13     <body>
    13     <body>
    14         <h1>Metadataplayer test with HTML5 / OGG Video - Does not work with IE and Safari</h1>
    14         <h1>Metadataplayer test with HTML5 / OGG Video - Does not work with IE and Safari</h1>
    15         <div id="LdtPlayer"></div>
    15         <div id="LdtPlayer"></div>
    16         <div id="AnnotationsListContainer"></div>
    16         <div id="AnnotationsListContainer"></div>
    17         <script type="text/javascript">
    17         <script type="text/javascript">
    18             testConfig('json/ldt-ogv.json', true);
    18 IriSP.libFiles.defaultDir = "libs/";
       
    19 IriSP.widgetsDir = "metadataplayer";
       
    20 var _metadata = {
       
    21     url: "json/ldt-ogv.json",
       
    22     format: 'ldt'
       
    23 };
       
    24 var _config = {            
       
    25     gui: {
       
    26         width : 620,
       
    27         container : 'LdtPlayer',
       
    28         default_options: {
       
    29             metadata: _metadata
       
    30         },
       
    31         css : 'metadataplayer/LdtPlayer-core.css',
       
    32         widgets: [
       
    33             { type: "PopcornPlayer"},
       
    34             { type: "Sparkline" },
       
    35             { type: "Slider" },
       
    36             { type: "Controller" },
       
    37             { type: "Polemic" },
       
    38             { type: "Segments" },
       
    39             { type: "Slice" },
       
    40             { type: "Arrow" },
       
    41             { type: "Annotation" },
       
    42             { type: "CreateAnnotation" },
       
    43             { type: "Tweet" },
       
    44             { type: "Tagcloud" },
       
    45             {
       
    46                 type: "AnnotationsList",
       
    47                 container: "AnnotationsListContainer"
       
    48             },
       
    49             { type: "Mediafragment"}
       
    50         ]
       
    51     },
       
    52     player:{
       
    53         type:'auto',
       
    54         live: true, 
       
    55         height: 350, 
       
    56         width: 620, 
       
    57         provider: "rtmp",
       
    58         autostart: true,
       
    59         metadata: _metadata
       
    60     }
       
    61 };
       
    62 _myPlayer = new IriSP.Metadataplayer(_config);
    19         </script>
    63         </script>
    20     </body>
    64     </body>
    21 </html>
    65 </html>