From 461cd3d68665efe53d5dd7ac50d52eeb2b2de0cd Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 19 Apr 2012 13:26:46 +0200 Subject: [PATCH] only add uid to http urls, this breaks for file:// or blob urls --- source/Ox.UI/js/Video/Ox.VideoElement.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/source/Ox.UI/js/Video/Ox.VideoElement.js b/source/Ox.UI/js/Video/Ox.VideoElement.js index c7d878eb..ce9e40cc 100644 --- a/source/Ox.UI/js/Video/Ox.VideoElement.js +++ b/source/Ox.UI/js/Video/Ox.VideoElement.js @@ -91,7 +91,9 @@ Ox.VideoElement = function(options, self) { item.$videos = src.map(function(src, i) { // in all browsers except firefox, // loadedmetadata fires only once per src - src += '?' + Ox.uid(); + if(Ox.parseURL(src).protocol.substr(0, 4) == 'http') { + src += '?' + Ox.uid(); + } return $('