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
parent 2f96cb2b54
commit b922cc0075

View File

@ -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":