|
@@ -9,7 +9,7 @@ import UIEvents from "../../../service/UI/UIEvents";
|
9
|
9
|
let overlay = null;
|
10
|
10
|
|
11
|
11
|
/**
|
12
|
|
- * Handler for UIEvents.LARGE_VIDEO_AVATAR_DISPLAYED event.
|
|
12
|
+ * Handler for UIEvents.LARGE_VIDEO_AVATAR_VISIBLE event.
|
13
|
13
|
* @param {boolean} shown indicates whether the avatar on the large video is
|
14
|
14
|
* currently displayed or not.
|
15
|
15
|
*/
|
|
@@ -112,6 +112,9 @@ class RingOverlay {
|
112
|
112
|
$(`#${this._containerId}`).remove();
|
113
|
113
|
}
|
114
|
114
|
|
|
115
|
+ /**
|
|
116
|
+ * Stops the ringing and clears related timers.
|
|
117
|
+ */
|
115
|
118
|
_stopAudio() {
|
116
|
119
|
if (this.interval) {
|
117
|
120
|
clearInterval(this.interval);
|
|
@@ -144,7 +147,7 @@ export default {
|
144
|
147
|
}
|
145
|
148
|
|
146
|
149
|
overlay = new RingOverlay(callee, disableRingingSound);
|
147
|
|
- APP.UI.addListener(UIEvents.LARGE_VIDEO_AVATAR_DISPLAYED,
|
|
150
|
+ APP.UI.addListener(UIEvents.LARGE_VIDEO_AVATAR_VISIBLE,
|
148
|
151
|
onAvatarDisplayed);
|
149
|
152
|
},
|
150
|
153
|
|
|
@@ -158,7 +161,7 @@ export default {
|
158
|
161
|
}
|
159
|
162
|
overlay.destroy();
|
160
|
163
|
overlay = null;
|
161
|
|
- APP.UI.removeListener(UIEvents.LARGE_VIDEO_AVATAR_DISPLAYED,
|
|
164
|
+ APP.UI.removeListener(UIEvents.LARGE_VIDEO_AVATAR_VISIBLE,
|
162
|
165
|
onAvatarDisplayed);
|
163
|
166
|
return true;
|
164
|
167
|
},
|