From 6d47477890ce8ddab8e8a1b048a746f53429e32c Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Fri, 19 Aug 2011 17:02:38 +0000 Subject: [PATCH] debugging... --- source/Ox.UI/js/Video/Ox.VideoPlayer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Ox.UI/js/Video/Ox.VideoPlayer.js b/source/Ox.UI/js/Video/Ox.VideoPlayer.js index a0efff3c..ff967af4 100644 --- a/source/Ox.UI/js/Video/Ox.VideoPlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoPlayer.js @@ -133,14 +133,14 @@ Ox.VideoPlayer = function(options, self) { } }); - if (Ox.isString(self.options.video)) { - self.video = self.options.video; - } else { + if (Ox.isObject(self.options.video)) { self.resolutions = Ox.sort(Object.keys(self.options.video)); if (!(self.options.resolution in self.options.video)) { self.options.resolution = self.resolutions[0]; } self.video = self.options.video[self.options.resolution]; + } else { + self.video = self.options.video; } if (self.options.playInToOut) {