зеркало из https://github.com/mozilla/gecko-dev.git
Bug 481106 - Scrubber may not be positioned at end of buffer bar when playback ends. r=gavin, a192=beltzner
This commit is contained in:
Родитель
8396793ea5
Коммит
a6971b13b7
|
@ -419,8 +419,15 @@
|
||||||
this.setupStatusFader();
|
this.setupStatusFader();
|
||||||
break;
|
break;
|
||||||
case "pause":
|
case "pause":
|
||||||
|
this.setPlayButtonState(true);
|
||||||
|
this.setupStatusFader();
|
||||||
|
break;
|
||||||
case "ended":
|
case "ended":
|
||||||
this.setPlayButtonState(true);
|
this.setPlayButtonState(true);
|
||||||
|
// We throttle timechange events, so the thumb might not be
|
||||||
|
// exactly at the end when the video finishes.
|
||||||
|
this.showPosition(Math.round(this.video.currentTime * 1000),
|
||||||
|
Math.round(this.video.duration * 1000));
|
||||||
this.setupStatusFader();
|
this.setupStatusFader();
|
||||||
break;
|
break;
|
||||||
case "volumechange":
|
case "volumechange":
|
||||||
|
|
Загрузка…
Ссылка в новой задаче