in video player, make sure poster is below loading icon
This commit is contained in:
parent
ceac7fa942
commit
36e3dcd264
1 changed files with 9 additions and 5 deletions
|
@ -467,15 +467,19 @@ Ox.VideoPlayer = function(options, self) {
|
||||||
.attr({
|
.attr({
|
||||||
src: self.options.poster
|
src: self.options.poster
|
||||||
})
|
})
|
||||||
|
.hide()
|
||||||
.one({
|
.one({
|
||||||
load: function() {
|
load: function() {
|
||||||
self.$poster.css(getVideoCSS(
|
self.$poster
|
||||||
self.$poster[0].width,
|
.css(getVideoCSS(
|
||||||
self.$poster[0].height
|
self.$poster[0].width,
|
||||||
)).appendTo(self.$videoContainer);
|
self.$poster[0].height
|
||||||
|
))
|
||||||
|
.show();
|
||||||
self.posterIsVisible = true;
|
self.posterIsVisible = true;
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
|
.appendTo(self.$videoContainer);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue