Merge pull request #880 from jitsi/ring-overlay-style
style(LargeVideo): Rename LARGE_VIDEO_AVATAR_DISPLAYED event
This commit is contained in:
commit
8ca0943881
|
@ -9,11 +9,11 @@ import UIEvents from "../../../service/UI/UIEvents";
|
||||||
let overlay = null;
|
let overlay = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handler for UIEvents.LARGE_VIDEO_AVATAR_DISPLAYED event.
|
* Handler for UIEvents.LARGE_VIDEO_AVATAR_VISIBLE event.
|
||||||
* @param {boolean} shown indicates whether the avatar on the large video is
|
* @param {boolean} shown indicates whether the avatar on the large video is
|
||||||
* currently displayed or not.
|
* currently displayed or not.
|
||||||
*/
|
*/
|
||||||
function onAvatarDisplayed(shown) {
|
function onAvatarVisible(shown) {
|
||||||
overlay._changeBackground(shown);
|
overlay._changeBackground(shown);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -112,6 +112,9 @@ class RingOverlay {
|
||||||
$(`#${this._containerId}`).remove();
|
$(`#${this._containerId}`).remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Stops the ringing and clears related timers.
|
||||||
|
*/
|
||||||
_stopAudio() {
|
_stopAudio() {
|
||||||
if (this.interval) {
|
if (this.interval) {
|
||||||
clearInterval(this.interval);
|
clearInterval(this.interval);
|
||||||
|
@ -144,8 +147,8 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
overlay = new RingOverlay(callee, disableRingingSound);
|
overlay = new RingOverlay(callee, disableRingingSound);
|
||||||
APP.UI.addListener(UIEvents.LARGE_VIDEO_AVATAR_DISPLAYED,
|
APP.UI.addListener(UIEvents.LARGE_VIDEO_AVATAR_VISIBLE,
|
||||||
onAvatarDisplayed);
|
onAvatarVisible);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -158,8 +161,8 @@ export default {
|
||||||
}
|
}
|
||||||
overlay.destroy();
|
overlay.destroy();
|
||||||
overlay = null;
|
overlay = null;
|
||||||
APP.UI.removeListener(UIEvents.LARGE_VIDEO_AVATAR_DISPLAYED,
|
APP.UI.removeListener(UIEvents.LARGE_VIDEO_AVATAR_VISIBLE,
|
||||||
onAvatarDisplayed);
|
onAvatarVisible);
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -397,7 +397,7 @@ export class VideoContainer extends LargeContainer {
|
||||||
this.$avatar.css("visibility", show ? "visible" : "hidden");
|
this.$avatar.css("visibility", show ? "visible" : "hidden");
|
||||||
this.avatarDisplayed = show;
|
this.avatarDisplayed = show;
|
||||||
|
|
||||||
this.emitter.emit(UIEvents.LARGE_VIDEO_AVATAR_DISPLAYED, show);
|
this.emitter.emit(UIEvents.LARGE_VIDEO_AVATAR_VISIBLE, show);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -118,7 +118,7 @@ export default {
|
||||||
/**
|
/**
|
||||||
* Notifies that the avatar is displayed or not on the largeVideo.
|
* Notifies that the avatar is displayed or not on the largeVideo.
|
||||||
*/
|
*/
|
||||||
LARGE_VIDEO_AVATAR_DISPLAYED: "UI.large_video_avatar_displayed",
|
LARGE_VIDEO_AVATAR_VISIBLE: "UI.large_video_avatar_visible",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Toggling room lock
|
* Toggling room lock
|
||||||
|
|
Loading…
Reference in New Issue