Bug 1443157 - Disregard aData for event recording-device-events. r?johannh
MozReview-Commit-ID: 8Lo8PWmOAPQ
--- a/mobile/android/modules/WebrtcUI.jsm
+++ b/mobile/android/modules/WebrtcUI.jsm
@@ -61,22 +61,17 @@ var WebrtcUI = {
WebrtcUI.handleGumRequest(aSubject, aTopic, aData);
} else {
Services.obs.notifyObservers(null, "getUserMedia:response:deny", aSubject.callID);
}
});
} else if (aTopic === "PeerConnection:request") {
this.handlePCRequest(aSubject, aTopic, aData);
} else if (aTopic === "recording-device-events") {
- switch (aData) {
- case "shutdown":
- case "starting":
- this.notify();
- break;
- }
+ this.notify();
} else if (aTopic === "VideoCapture:Paused") {
if (this._notificationId) {
Notifications.cancel(this._notificationId);
this._notificationId = null;
}
} else if (aTopic === "VideoCapture:Resumed") {
this.notify();
}