From 47c21835031b690277d4b329b13cdb7793074e15 Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 15 May 2012 03:50:20 +0530 Subject: [PATCH] videoRAND fix --- itf/static/js/jquery.pandoravideo.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/itf/static/js/jquery.pandoravideo.js b/itf/static/js/jquery.pandoravideo.js index ce6682c..9ccc297 100644 --- a/itf/static/js/jquery.pandoravideo.js +++ b/itf/static/js/jquery.pandoravideo.js @@ -27,7 +27,7 @@ 'api': "//pad.ma/api/", //pandora instance api end-point - see http://pad.ma/api 'in': 0, //in point (float, in seconds) of clip 'out': 0, //out point of clip - 'pandora_base': '//pad.ma/', //pandora instance from where to fetch video and image data + 'pandora_base': 'pad.ma/', //pandora instance from where to fetch video and image data 'resolution': '480p', //resolution of video (96p, 240p, or 480p) 'width': '640', //display (css) width 'interval': 300, //interval (in ms) to run updatePlayer polling loop @@ -69,7 +69,8 @@ this.o = opts; this.annotPoint = -1; this.getVideoURL = function() { - return opts.pandora_base + id + "/" + opts.resolution + ".webm"; + var rand = parseInt(Math.random() * 10000); + return "//video" + rand + "." + opts.pandora_base + id + "/" + opts.resolution + ".webm"; }; //empties element, appends video widget