Bug 460771 - Play/pause control confused after video ends. r=gavin

This commit is contained in:
Justin Dolske 2008-11-03 19:22:30 -08:00
Родитель 1f6778cb27
Коммит 12ce7d97a1
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -93,6 +93,7 @@
this.playButton.setAttribute("paused", false);
break;
case "pause":
case "ended":
this.playButton.setAttribute("paused", true);
break;
case "volumechange":
@ -174,6 +175,7 @@
// Use Utils.handleEvent() callback for all media events.
video.addEventListener("play", this.Utils, false);
video.addEventListener("pause", this.Utils, false);
video.addEventListener("ended", this.Utils, false);
video.addEventListener("volumechange", this.Utils, false);
this.Utils.log("--- videocontrols initialized ---");