Bug 1350852 P2 - use mozvideoonlyseekcompleted to cancel throbber while resuming video decoder; r=jaws,jwwang

MozReview-Commit-ID: CV3LsfA6s1O

--HG--
extra : rebase_source : 8337aac3a3395b65a8ffca975c51b40666c12023
This commit is contained in:
Kaku Kuo 2017-03-27 18:22:55 +08:00
Родитель d1654b9821
Коммит 86a20bfd54
1 изменённых файлов: 5 добавлений и 2 удалений

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

@ -222,7 +222,7 @@
"playing", "waiting", "canplay", "canplaythrough",
"seeking", "seeked", "emptied", "loadedmetadata",
"error", "suspend", "stalled",
"mozexitvideosuspend"],
"mozexitvideosuspend", "mozvideoonlyseekcompleted"],
showHours: false,
firstFrameShown: false,
@ -674,7 +674,6 @@
case "seeked":
case "playing":
case "canplay":
this._cancelShowThrobberWhileResumingVideoDecoder();
case "canplaythrough":
this.setupStatusFader();
break;
@ -704,6 +703,10 @@
case "mozexitvideosuspend":
this._delayShowThrobberWhileResumingVideoDecoder();
break;
case "mozvideoonlyseekcompleted":
this._cancelShowThrobberWhileResumingVideoDecoder();
this.setupStatusFader();
break;
default:
this.log("!!! event " + aEvent.type + " not handled!");
}