diff -r 839efd6eddf1 -r 679809037606 integration/edition.html --- a/integration/edition.html Wed Dec 05 15:39:12 2012 +0100 +++ b/integration/edition.html Thu Dec 06 12:38:34 2012 +0100 @@ -353,12 +353,21 @@ IriSP.endpoints = { content: "/pf/ldtplatform/api/ldt/1.0/contents/", + //content: "data/bpidata2.json", project: "/pf/ldtplatform/api/ldt/1.0/projects/", segment: "/pf/ldtplatform/api/ldt/1.0/segments/", ldt: "http://capsicum//pf/ldtplatform/ldt/cljson/id/__PROJECT_ID__", hashcut_page: "hashcut.html?project=__PROJECT_ID__" }; + IriSP.video_url_transform = function(oldurl) { + var newurl = oldurl.replace(/mp4:/i,''); + newurl = newurl.replace(/ddc_player\//i,''); + newurl = newurl.replace(/rtmp/i,'http'); + newurl = newurl.replace('media.iri.centrepompidou.fr','ftv.iri-research.org') + return newurl; + }; + $(function() { var hashcut = IriSP.editor({ csrf_token: "{{csrf_token}}",