use [].slice, not Ox.sub
This commit is contained in:
parent
915e98f829
commit
f990f3b857
7 changed files with 10 additions and 10 deletions
|
|
@ -116,7 +116,7 @@ Ox.VideoElement = function(options, self) {
|
|||
if (Ox.every(item.durations)) {
|
||||
item.duration = Ox.sum(item.durations);
|
||||
item.offsets = Ox.range(item.parts).map(function(i) {
|
||||
return Ox.sum(Ox.sub(item.durations, 0, i));
|
||||
return Ox.sum(item.durations.slice(0, i));
|
||||
});
|
||||
//Ox.Log('Video', 'METADATA OF', src, 'LOADED', item)
|
||||
if (self.isPlaylist) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue