debugging
This commit is contained in:
parent
db91272f23
commit
0562b8c643
1 changed files with 15 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue