This commit is contained in:
Sanj 2011-02-21 22:06:27 +01:00
parent c1987a2cd6
commit b6fccae84a
2 changed files with 12 additions and 5 deletions

View File

@ -1,8 +1,8 @@
var padmaConfig = { var padmaConfig = {
'background': 'rgba(0,0,0,0.85)', 'background': 'rgba(0,0,0,0.85)',
'color': '#fff', 'color': '#fff',
'links_url': 'http://padma.okno.be/', 'links_url': 'pad.ma/',
'data_url': 'http://padma.okno.be/', 'data_url': 'http://pad.ma/',
// 'links_url': 'http://pad.ma/', // 'links_url': 'http://pad.ma/',
// 'data_url': 'http://pad.ma/', // 'data_url': 'http://pad.ma/',
'default_layers': ['transcript', 'description'], 'default_layers': ['transcript', 'description'],
@ -60,9 +60,15 @@ padmaVideo.prototype.getVideo = function(tc, size) {
return this.video.urls[size] + "?t=npt:" + tc; return this.video.urls[size] + "?t=npt:" + tc;
} }
/*
padmaVideo.prototype.getLayerVideo = function(tcIn, tcOut) { padmaVideo.prototype.getLayerVideo = function(tcIn, tcOut) {
return BASE_URL + this.id + "/download/" + tcIn + "-" + tcOut + ".ogv"; return BASE_URL + this.id + "/download/" + tcIn + "-" + tcOut + ".ogv";
} }
*/
padmaVideo.prototype.getLayerVideo = function(tcIn, tcOut) {
return this.video.urls['320'] + "?t=" + tcIn + "/" + tcOut;
}
padmaVideo.prototype.noop = function() { padmaVideo.prototype.noop = function() {
// console.log("I'm done:)"); // console.log("I'm done:)");

View File

@ -92,9 +92,10 @@ Gives a bunch of data parsed from a pad.ma url
*/ */
function parsePadmaUrl(link, padma_url) { function parsePadmaUrl(link, padma_url) {
// console.log(padma_url); console.log(padma_url);
var linkStr = link.replace(padma_url, ""); var regex = new RegExp("http://.*" + padma_url);
// console.log(linkStr); var linkStr = link.replace(regex, "");
console.log(linkStr);
// console.log(linkStr); // console.log(linkStr);
var r = { }; var r = { };
r.url = link; r.url = link;