in embed player, set playInToOut to false if there are no in/out points

This commit is contained in:
rolux 2013-02-15 12:08:52 +05:30
parent a0b8728828
commit 2034d5b40f

View file

@ -267,7 +267,8 @@ Ox.load('UI', {
paused: true, paused: true,
playInToOut: true, playInToOut: true,
view: 'video', view: 'video',
}; },
options;
vars.forEach(function(v) { vars.forEach(function(v) {
var kv = v.split('='), k = kv[0], v = kv[1]; var kv = v.split('='), k = kv[0], v = kv[1];
query[k] = decodeURIComponent(v); query[k] = decodeURIComponent(v);
@ -282,7 +283,11 @@ Ox.load('UI', {
query[k] = Ox.parseDuration(query[k]); 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;
} }
}); });