test/jwplayer.htm
changeset 1009 ddbe31de8ad1
parent 1005 768bd0691ed1
child 1013 392ddcd212d7
equal deleted inserted replaced
1008:81243f1c7cff 1009:ddbe31de8ad1
    17         <script type="text/javascript">
    17         <script type="text/javascript">
    18     IriSP.libFiles.defaultDir = "libs/";
    18     IriSP.libFiles.defaultDir = "libs/";
    19     IriSP.language = 'fr';
    19     IriSP.language = 'fr';
    20     IriSP.widgetsDir = "metadataplayer";
    20     IriSP.widgetsDir = "metadataplayer";
    21     var _metadata = {
    21     var _metadata = {
    22         url: 'json/ldt-jwplayer.json',
    22 //        url: 'json/ldt-jwplayer.json',
    23 //          url: 'http://capsicum/pf/ldtplatform/ldt/cljson/id/33e49eac-b3b0-11e1-b44d-00145ea4a2be?callback=?',
    23           url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/e2f36e5c-8b26-11e2-a28d-00145ea4a2be',
    24 //        url: 'http://capsicum/pf/ldtplatform/ldt/cljson/id/f1a17368-2bc8-11e1-b21a-00145ea49a02',
    24 //        url: 'http://capsicum/pf/ldtplatform/ldt/cljson/id/f1a17368-2bc8-11e1-b21a-00145ea49a02',
    25 //        url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/fc0a654e-49ea-11e2-b4ad-00145ea4a2be',
    25 //        url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/fc0a654e-49ea-11e2-b4ad-00145ea4a2be',
    26         format: 'ldt'
    26         format: 'ldt'
    27     };
    27     };
    28     var _config = {
    28     var _config = {
    33         },
    33         },
    34         css : 'metadataplayer/LdtPlayer-core.css',
    34         css : 'metadataplayer/LdtPlayer-core.css',
    35         widgets: [
    35         widgets: [
    36             {
    36             {
    37                 type: "JwpPlayer",
    37                 type: "JwpPlayer",
    38                 autostart: true
    38                 autostart: true,
       
    39                 url_transform: function(url) {
       
    40                     return url.replace('/ddc_player/video/','/ddc_player/mp4:video/');
       
    41                 }
    39             },
    42             },
    40             { type: "Slider" },
    43             { type: "Slider" },
    41             { type: "Controller" },
    44             { type: "Controller" },
    42             {
    45             {
    43                 type: "Polemic",
    46                 type: "Polemic",