зеркало из https://github.com/mozilla/gecko-dev.git
Bug 460771 - Play/pause control confused after video ends. r=gavin
This commit is contained in:
Родитель
1f6778cb27
Коммит
12ce7d97a1
|
@ -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 ---");
|
||||
|
|
Загрузка…
Ссылка в новой задаче