fix setting clip.out if not given
This commit is contained in:
parent
ab17fc8496
commit
a5ed8ed8ed
1 changed files with 2 additions and 2 deletions
|
@ -201,7 +201,7 @@ Ox.VideoElement = function(options, self) {
|
||||||
}
|
}
|
||||||
if (item.duration) {
|
if (item.duration) {
|
||||||
if (!item.out) {
|
if (!item.out) {
|
||||||
item.out = item.duration - item['in'];
|
item.out = item.duration;
|
||||||
}
|
}
|
||||||
currentTime += item.duration;
|
currentTime += item.duration;
|
||||||
item.id = getId(item);
|
item.id = getId(item);
|
||||||
|
@ -210,7 +210,7 @@ Ox.VideoElement = function(options, self) {
|
||||||
Ox.getVideoInfo(item.src, function(info) {
|
Ox.getVideoInfo(item.src, function(info) {
|
||||||
item.duration = info.duration;
|
item.duration = info.duration;
|
||||||
if (!item.out) {
|
if (!item.out) {
|
||||||
item.out = item['in'] + item.duration;
|
item.out = item.duration;
|
||||||
}
|
}
|
||||||
currentTime += item.duration;
|
currentTime += item.duration;
|
||||||
item.id = getId(item);
|
item.id = getId(item);
|
||||||
|
|
Loading…
Reference in a new issue