From bc1ddaceff90e2e61d7e9dc5d7c6c6f8de4f841d Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 14 Mar 2011 08:07:46 +0530 Subject: [PATCH] getDownloadLink as separate method --- padma.layers.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/padma.layers.js b/padma.layers.js index ffb6e42..79f6db4 100644 --- a/padma.layers.js +++ b/padma.layers.js @@ -60,11 +60,11 @@ padmaVideo.prototype.getVideo = function(tc, size) { return this.video.urls[size] + "?t=npt:" + tc; } -/* -padmaVideo.prototype.getLayerVideo = function(tcIn, tcOut) { + +padmaVideo.prototype.getDownloadLink = function(tcIn, tcOut) { return BASE_URL + this.id + "/download/" + tcIn + "-" + tcOut + ".ogv"; } -*/ + padmaVideo.prototype.getLayerVideo = function(tcIn, tcOut) { return this.video.urls['320'] + "?t=" + tcIn + "/" + tcOut;