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:
Danny Chen 2014-04-18 15:28:58 -04:00
Родитель fdf0aeadb4
Коммит 6c8cc83e94
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -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)