only load one video element for videos with one part
This commit is contained in:
parent
e2be60c762
commit
db321b583b
1 changed files with 3 additions and 0 deletions
|
@ -211,6 +211,9 @@ Ox.VideoElement = function(options, self) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadNextVideo() {
|
function loadNextVideo() {
|
||||||
|
if (self.numberOfItems <= 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var item = self.items[self.currentItem],
|
var item = self.items[self.currentItem],
|
||||||
nextItem = Ox.mod(self.currentItem + 1, self.numberOfItems),
|
nextItem = Ox.mod(self.currentItem + 1, self.numberOfItems),
|
||||||
next = self.items[nextItem],
|
next = self.items[nextItem],
|
||||||
|
|
Loading…
Reference in a new issue