integration/content.html
changeset 58 00632d0dee47
parent 57 b7017da5a7b5
child 64 458cc4576415
equal deleted inserted replaced
57:b7017da5a7b5 58:00632d0dee47
    30                 var res = window.localStorage.getItem("resolution") || "SD";
    30                 var res = window.localStorage.getItem("resolution") || "SD";
    31             } else {
    31             } else {
    32                 var res = "SD";
    32                 var res = "SD";
    33             }
    33             }
    34             IriSP.video_url_transform = function(url) {
    34             IriSP.video_url_transform = function(url) {
    35                 return url.replace(/([SH]D)\.[a-z0-9]+$/,res);
    35                 return url.replace(/[SH]D(\.[a-z0-9]+)$/,res + "$1");
    36             }
    36             }
    37             $(function() {
    37             $(function() {
    38                 IriSP.contentplayer({
    38                 IriSP.contentplayer({
    39                     project_url: "http://theend-integ.ftinfo.fr/theend/ldt/cljson/id/" + project
    39                     project_url: "http://theend-integ.ftinfo.fr/theend/ldt/cljson/id/" + project
    40                 });
    40                 });