Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Merge pull request #876 from jitsi/ui-ringoverlay-stop

yanasf37fd15fcab4
diff --cc modules/UI/ring_overlay/RingOverlay.js
index b44ef66279,141148ef61..806a278f7e
--- a/modules/UI/ring_overlay/RingOverlay.js
+++ b/modules/UI/ring_overlay/RingOverlay.js
@@@ -33,23 -17,12 +33,27 @@@ class RingOverlay
this.audio = document.getElementById(this._audioContainerId);
this.audio.play();
this._setAudioTimeout();
+ this._timeout = setTimeout(() => {
+ this.destroy();
+ this.render();
+ }, 30000);
}
+ /**
+ * Chagnes the background of the ring overlay.
+ * @param {boolean} solid - if true the new background will be the solid
+ * one, otherwise the background will be default one.
+ * NOTE: The method just toggles solidBG css class.
+ */
+ _changeBackground(solid) {
+ const container = $("#" + this._containerId);
+ if(solid) {
+ container.addClass("solidBG");
+ } else {
+ container.removeClass("solidBG");
+ }
+ }
+
/**
* Builds and appends the ring overlay to the html document
*/