don't show poster if player already started
This commit is contained in:
parent
1540854fae
commit
bc5b1b961c
1 changed files with 8 additions and 3 deletions
|
|
@ -519,9 +519,13 @@ Ox.VideoPlayer = function(options, self) {
|
|||
.css(getVideoCSS(
|
||||
self.$poster[0].width,
|
||||
self.$poster[0].height
|
||||
))
|
||||
.show();
|
||||
));
|
||||
if (Ox.isUndefined(self.posterIsVisible) && self.options.paused) {
|
||||
self.$poster.show()
|
||||
self.posterIsVisible = true;
|
||||
} else {
|
||||
hidePoster()
|
||||
}
|
||||
}
|
||||
})
|
||||
.appendTo(self.$videoContainer);
|
||||
|
|
@ -2772,6 +2776,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
if (!self.options.paused) {
|
||||
self.playOnLoad = true;
|
||||
togglePaused('button');
|
||||
hidePoster();
|
||||
}
|
||||
self.loadedMetadata = false;
|
||||
showLoadingIcon();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue