integration/js/mashupcore.js
changeset 63 6cc538642b55
parent 50 89e152523cb6
child 69 e56b4456668f
--- a/integration/js/mashupcore.js	Tue Nov 27 13:56:35 2012 +0100
+++ b/integration/js/mashupcore.js	Tue Nov 27 15:03:20 2012 +0100
@@ -303,12 +303,16 @@
             return;
         }
         media.has_player = true;
+        var videourl = media.video;
+        if (typeof IriSP.video_url_transform === "function") {
+            videourl = IriSP.video_url_transform(media.video);
+        }
         var videoid = "video_" + media.id,
             videoEl = $('<video>'),
             width = $(".video").width(),
             height = $(".video").height(),
-            mp4_file = media.video.replace(/\.webm$/i,'.mp4'),
-            webm_file = media.video.replace(/\.mp4$/i,'.webm'),
+            mp4_file = videourl.replace(/\.webm$/i,'.mp4'),
+            webm_file = videourl.replace(/\.mp4$/i,'.webm'),
             mp4_src = $('<source>'),
             webm_src = $('<source>');
         mp4_src.attr({