debugging

This commit is contained in:
rolux 2011-08-19 16:49:09 +00:00
parent db91272f23
commit 0562b8c643

View file

@ -144,6 +144,21 @@ pandora.getListData = function() {
return data;
};
pandora.getVideoPartAndPosition = function(durations, position) {
var duration = 0, ret;
Ox.forEach(durations, function(d, i) {
if (duration + d > position) {
ret = {
part: i,
position: position - duration
}
return false;
}
duration += d;
});
return ret;
};
pandora.reloadList = function() {
Ox.print('reloadList')
var listData = pandora.getListData();