Bug 877025. Don't set 'firstShow' on the controls for a video that is already playing. r=dolske

This commit is contained in:
Robert O'Callahan 2013-05-29 16:13:34 +12:00
Родитель fbb58a2c0f
Коммит 1bfe22c85f
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1635,8 +1635,8 @@
// makes that happen. But because of bug 718107 this init() method
// may be called again when we switch in or out of fullscreen
// mode. So we only set firstShow if we're not autoplaying and
// if we are at the beginning of the video
if (!video.autoplay && this.Utils.dynamicControls &&
// if we are at the beginning of the video and not already playing
if (!video.autoplay && this.Utils.dynamicControls && video.paused &&
video.currentTime === 0)
this.firstShow = true;