forked from 0x2620/oxjs
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(
|
.css(getVideoCSS(
|
||||||
self.$poster[0].width,
|
self.$poster[0].width,
|
||||||
self.$poster[0].height
|
self.$poster[0].height
|
||||||
))
|
));
|
||||||
.show();
|
if (Ox.isUndefined(self.posterIsVisible) && self.options.paused) {
|
||||||
self.posterIsVisible = true;
|
self.$poster.show()
|
||||||
|
self.posterIsVisible = true;
|
||||||
|
} else {
|
||||||
|
hidePoster()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.appendTo(self.$videoContainer);
|
.appendTo(self.$videoContainer);
|
||||||
|
|
@ -2772,6 +2776,7 @@ Ox.VideoPlayer = function(options, self) {
|
||||||
if (!self.options.paused) {
|
if (!self.options.paused) {
|
||||||
self.playOnLoad = true;
|
self.playOnLoad = true;
|
||||||
togglePaused('button');
|
togglePaused('button');
|
||||||
|
hidePoster();
|
||||||
}
|
}
|
||||||
self.loadedMetadata = false;
|
self.loadedMetadata = false;
|
||||||
showLoadingIcon();
|
showLoadingIcon();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue