videoRAND fix

This commit is contained in:
Sanj 2012-05-15 03:50:20 +05:30
parent bffdcfca9b
commit 47c2183503

View File

@ -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