From 36e3dcd264c07bc22c4efb9a5827625e69aa5a14 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 1 Mar 2013 17:01:21 +0530 Subject: [PATCH] in video player, make sure poster is below loading icon --- source/Ox.UI/js/Video/VideoPlayer.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/source/Ox.UI/js/Video/VideoPlayer.js b/source/Ox.UI/js/Video/VideoPlayer.js index 27e83fe5..71b19991 100644 --- a/source/Ox.UI/js/Video/VideoPlayer.js +++ b/source/Ox.UI/js/Video/VideoPlayer.js @@ -467,15 +467,19 @@ Ox.VideoPlayer = function(options, self) { .attr({ src: self.options.poster }) + .hide() .one({ load: function() { - self.$poster.css(getVideoCSS( - self.$poster[0].width, - self.$poster[0].height - )).appendTo(self.$videoContainer); + self.$poster + .css(getVideoCSS( + self.$poster[0].width, + self.$poster[0].height + )) + .show(); self.posterIsVisible = true; } - }); + }) + .appendTo(self.$videoContainer); } /*