debugging...
This commit is contained in:
parent
842ad71cb9
commit
6d47477890
1 changed files with 3 additions and 3 deletions
|
@ -133,14 +133,14 @@ Ox.VideoPlayer = function(options, self) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (Ox.isString(self.options.video)) {
|
if (Ox.isObject(self.options.video)) {
|
||||||
self.video = self.options.video;
|
|
||||||
} else {
|
|
||||||
self.resolutions = Ox.sort(Object.keys(self.options.video));
|
self.resolutions = Ox.sort(Object.keys(self.options.video));
|
||||||
if (!(self.options.resolution in self.options.video)) {
|
if (!(self.options.resolution in self.options.video)) {
|
||||||
self.options.resolution = self.resolutions[0];
|
self.options.resolution = self.resolutions[0];
|
||||||
}
|
}
|
||||||
self.video = self.options.video[self.options.resolution];
|
self.video = self.options.video[self.options.resolution];
|
||||||
|
} else {
|
||||||
|
self.video = self.options.video;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self.options.playInToOut) {
|
if (self.options.playInToOut) {
|
||||||
|
|
Loading…
Reference in a new issue