From 790e0c4500eaa84766c4b18394f56cd0c5c8da42 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 12 Oct 2012 13:00:22 +0200 Subject: [PATCH] dont add ?rand to empty string in Ox.VideoElement --- source/Ox.UI/js/Video/VideoElement.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/source/Ox.UI/js/Video/VideoElement.js b/source/Ox.UI/js/Video/VideoElement.js index 5894bc67..d7ba68f4 100644 --- a/source/Ox.UI/js/Video/VideoElement.js +++ b/source/Ox.UI/js/Video/VideoElement.js @@ -91,9 +91,10 @@ Ox.VideoElement = function(options, self) { item.points = points; } item.$videos = src.map(function(src, i) { - // in all browsers except firefox, + //fixme: get rid of this to make use of browser caching + // but in all browsers except firefox, // loadedmetadata fires only once per src - if (Ox.startsWith(Ox.parseURL(src).protocol, 'http')) { + if (src.length > 0 && Ox.startsWith(Ox.parseURL(src).protocol, 'http')) { src += '?' + Ox.uid(); } return $('