debugging

This commit is contained in:
rlx 2011-08-19 16:49:09 +00:00
parent c1b46421a8
commit 910b1102d2

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();