Bug 481106 - Scrubber may not be positioned at end of buffer bar when playback ends. r=gavin, a192=beltzner

This commit is contained in:
Justin Dolske 2009-05-20 22:27:01 -07:00
Родитель 8396793ea5
Коммит a6971b13b7
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -419,8 +419,15 @@
this.setupStatusFader();
break;
case "pause":
this.setPlayButtonState(true);
this.setupStatusFader();
break;
case "ended":
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();
break;
case "volumechange":