test/jwplayer.htm
branchnew-model
changeset 931 0fdce6e14748
parent 928 5aadbc9f27cd
child 932 48dac21e086f
equal deleted inserted replaced
930:165f236e42f2 931:0fdce6e14748
    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                 },
    55                 {
    57                 {
    56                     type: "Tagcloud"
    58                     type: "Tagcloud"
    57                 },
    59                 },
    58                 {
    60                 {
    59                     type: "AnnotationsList",
    61                     type: "AnnotationsList",
    75                     return _matches[0];
    77                     return _matches[0];
    76                 } else {
    78                 } else {
    77                     return _url;
    79                     return _url;
    78                 }
    80                 }
    79             },
    81             },
    80             autostart: true,
    82             //autostart: true,
    81             metadata: _metadata
    83             metadata: _metadata
    82         }
    84         }
    83     };
    85     };
    84     
    86     
    85     _myPlayer = new IriSP.Metadataplayer(_config);
    87     _myPlayer = new IriSP.Metadataplayer(_config);