test/mashup/player-local-html.htm
changeset 961 e1baacb52075
parent 959 ee11ed1b739e
child 965 eadb7290c325
equal deleted inserted replaced
956:7c1d08cf6956 961:e1baacb52075
    53 IriSP.language = 'fr';
    53 IriSP.language = 'fr';
    54 var _metadata = {
    54 var _metadata = {
    55     url: 'bab_files/mashup-local-html.json',
    55     url: 'bab_files/mashup-local-html.json',
    56     format: 'ldt'
    56     format: 'ldt'
    57 };
    57 };
    58 var _config = {            
    58 var _config = {
    59     gui: {
    59     width : 630,
    60         width : 630,
    60     container : 'LdtPlayer',
    61         container : 'LdtPlayer',
    61     default_options: {
    62         default_options: {
    62         metadata: _metadata
    63             metadata: _metadata
    63     },
       
    64     css : '../metadataplayer/LdtPlayer-core.css',
       
    65     widgets: [
       
    66         { type: "MashupPlayer" },
       
    67         { type: "Slider" },
       
    68         { type: "Controller" },
       
    69         {
       
    70             type: "Segments",
       
    71             annotation_type: false
    64         },
    72         },
    65         css : '../metadataplayer/LdtPlayer-core.css',
    73         { type: "Arrow" },
    66         widgets: [
    74         {
    67             { type: "Slider" },
    75             type: "Annotation",
    68             { type: "Controller" },
    76             annotation_type: false
    69             {
    77         },
    70                 type: "Segments",
    78         {
    71                 annotation_type: false
    79             type: "MediaList",
    72             },
    80             container: "mediaList"
    73             { type: "Arrow" },
    81         },
    74             {
    82         {
    75                 type: "Annotation",
    83             type: "AnnotationsList",
    76                 annotation_type: false
    84             container: "annotationList",
    77             },
    85             ajax_url: "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?",
    78             {
    86             ajax_granularity: 30000,
    79                 type: "MediaList",
    87             limit_count: 3
    80                 container: "mediaList"
    88         },
    81             },
    89         { type: "Mediafragment" }
    82             {
    90     ]
    83                 type: "AnnotationsList",
       
    84                 container: "annotationList",
       
    85                 ajax_url: "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?",
       
    86                 ajax_granularity: 30000,
       
    87                 limit_count: 3
       
    88             },
       
    89             { type: "Mediafragment" }
       
    90         ]
       
    91     },
       
    92     player:{
       
    93         type:'mashup-html',
       
    94         height: 350,
       
    95         width: 630,
       
    96         metadata: _metadata
       
    97     }
       
    98 };
    91 };
    99 
    92 
   100 _myPlayer = new IriSP.Metadataplayer(_config);
    93 _myPlayer = new IriSP.Metadataplayer(_config);
   101 
    94 
   102     </script>
    95     </script>