test/jwplayer.htm
branchnew-model
changeset 934 aa1ede2e2c29
parent 932 48dac21e086f
child 939 1f9e30f0fa3c
equal deleted inserted replaced
933:8604bc7b4712 934:aa1ede2e2c29
    18     IriSP.libFiles.locations.jwPlayerSWF = "player.swf";
    18     IriSP.libFiles.locations.jwPlayerSWF = "player.swf";
    19     IriSP.libFiles.defaultDir = "libs/";
    19     IriSP.libFiles.defaultDir = "libs/";
    20     IriSP.language = 'fr';
    20     IriSP.language = 'fr';
    21     IriSP.widgetsDir = "metadataplayer";
    21     IriSP.widgetsDir = "metadataplayer";
    22     var _metadata = {
    22     var _metadata = {
    23 //        url: 'json/ldt-jwplayer.json',
    23         url: 'json/ldt-jwplayer.json',
    24         url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/5a893570-ca73-11e1-9443-00145ea4a2be?callback=?',
    24 //        url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/5a893570-ca73-11e1-9443-00145ea4a2be?callback=?',
    25         format: 'ldt'
    25         format: 'ldt'
    26     };
    26     };
    27     var _config = {            
    27     var _config = {            
    28         gui: {
    28         gui: {
    29             width : 550,
    29             width : 550,
    44                 },
    44                 },
    45                 { type: "Annotation" },
    45                 { type: "Annotation" },
    46                 {
    46                 {
    47                     type: "CreateAnnotation",
    47                     type: "CreateAnnotation",
    48                     api_endpoint_template: "post-test.php",
    48                     api_endpoint_template: "post-test.php",
    49                     api_method: "POST",
       
    50                     creator_name: "Metadataplayer",
    49                     creator_name: "Metadataplayer",
    51                     creator_avatar: "https://si0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png",
    50                     creator_avatar: "https://si0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png",
    52                     tag_titles: ["#amateur", "#digital-humanities"]
    51                     tag_titles: ["#amateur", "#digital-humanities"]
    53                 },
    52                 },
    54                 { type: "Tweet" },
    53                 { type: "Tweet" },
       
    54                 {
       
    55                     type: "Tagger",
       
    56                     api_endpoint: "post-test.php"
       
    57                 },
    55                 {
    58                 {
    56                     type: "Tagcloud"
    59                     type: "Tagcloud"
    57                 },
    60                 },
    58                 {
    61                 {
    59                     type: "AnnotationsList",
    62                     type: "AnnotationsList",
    75                     return _matches[0];
    78                     return _matches[0];
    76                 } else {
    79                 } else {
    77                     return _url;
    80                     return _url;
    78                 }
    81                 }
    79             },
    82             },
    80             autostart: true,
    83             //autostart: true,
    81             metadata: _metadata
    84             metadata: _metadata
    82         }
    85         }
    83     };
    86     };
    84     
    87     
    85     _myPlayer = new IriSP.Metadataplayer(_config);
    88     _myPlayer = new IriSP.Metadataplayer(_config);