in embed player, set playInToOut to false if there are no in/out points
This commit is contained in:
parent
a0b8728828
commit
2034d5b40f
1 changed files with 7 additions and 2 deletions
|
@ -267,7 +267,8 @@ Ox.load('UI', {
|
|||
paused: true,
|
||||
playInToOut: true,
|
||||
view: 'video',
|
||||
};
|
||||
},
|
||||
options;
|
||||
vars.forEach(function(v) {
|
||||
var kv = v.split('='), k = kv[0], v = kv[1];
|
||||
query[k] = decodeURIComponent(v);
|
||||
|
@ -282,7 +283,11 @@ Ox.load('UI', {
|
|||
query[k] = Ox.parseDuration(query[k]);
|
||||
}
|
||||
});
|
||||
return Ox.extend({}, defaults, query);
|
||||
options = Ox.extend({}, defaults, query);
|
||||
if (!options['in'] && !options.out) {
|
||||
options.playInToOut = false;
|
||||
}
|
||||
return options;
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue