зеркало из https://github.com/mozilla/gecko-dev.git
Bug 996122 - Play button superimposed on videos that are requested to start playing and then resize before any frames are presented. r=jaws
--HG-- extra : rebase_source : d47c0d8675e0cee794ca2f51084043cab2cd6bf7
This commit is contained in:
Родитель
fdf0aeadb4
Коммит
6c8cc83e94
|
@ -1411,10 +1411,16 @@
|
|||
}
|
||||
}
|
||||
|
||||
if ((this._overlayPlayButtonHeight + this._controlBarHeight) > videoHeight || this._overlayPlayButtonWidth > videoWidth)
|
||||
if ((this._overlayPlayButtonHeight + this._controlBarHeight) > videoHeight ||
|
||||
this._overlayPlayButtonWidth > videoWidth) {
|
||||
this.clickToPlay.hidden = true;
|
||||
else if (this.clickToPlay.hidden && !this.video.played.length)
|
||||
} else if (this.clickToPlay.hidden &&
|
||||
!this.video.played.length &&
|
||||
this.video.paused) {
|
||||
// Check this.video.paused to handle when a video is
|
||||
// playing but hasn't processed any frames yet
|
||||
this.clickToPlay.hidden = false;
|
||||
}
|
||||
|
||||
let size = "normal";
|
||||
if (videoHeight < minHeightForControlBar)
|
||||
|
|
Загрузка…
Ссылка в новой задаче