Skip to content

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

ref(toolbar): remove remnant of custom tooltip display on demand

Leonard Kimabee3331aab5
diff --git a/conference.js b/conference.js
index b7786ea23d..a1a70ef61e 100644
--- a/conference.js
+++ b/conference.js
@@ -1376,37 +1376,6 @@ export default {
});
},
- /**
- * Triggers a tooltip to display when a feature was attempted to be used
- * while in audio only mode.
- *
- * @param {string} featureName - The name of the feature that attempted to
- * toggle.
- * @private
- * @returns {void}
- */
- _displayAudioOnlyTooltip(featureName) {
- let buttonName = null;
- let tooltipElementId = null;
-
- switch (featureName) {
- case 'screenShare':
- buttonName = 'desktop';
- tooltipElementId = 'screenshareWhileAudioOnly';
- break;
- case 'videoMute':
- buttonName = 'camera';
- tooltipElementId = 'unmuteWhileAudioOnly';
- break;
- }
-
- if (tooltipElementId) {
- APP.UI.showToolbar(6000);
- APP.UI.showCustomToolbarPopup(
- buttonName, tooltipElementId, true, 5000);
- }
- },
-
/**
* Returns whether or not the conference is currently in audio only mode.
*
@@ -1517,8 +1486,6 @@ export default {
}
if (this.isAudioOnly()) {
- this._displayAudioOnlyTooltip('screenShare');
-
return Promise.reject('No screensharing in audio only mode');
}
@@ -1860,9 +1827,6 @@ export default {
room.on(JitsiConferenceEvents.TALK_WHILE_MUTED, () => {
APP.UI.showToolbar(6000);
-
- APP.UI.showCustomToolbarPopup(
- 'microphone', 'talkWhileMutedPopup', true, 5000);
});
room.on(
@@ -1939,10 +1903,6 @@ export default {
reportError(e);
}
});
-
- APP.UI.addListener(
- UIEvents.VIDEO_UNMUTING_WHILE_AUDIO_ONLY,
- () => this._displayAudioOnlyTooltip('videoMute'));
}
room.on(JitsiConferenceEvents.CONNECTION_INTERRUPTED, () => {
@@ -2064,11 +2024,7 @@ export default {
this.muteAudio(muted);
});
APP.UI.addListener(UIEvents.VIDEO_MUTED, muted => {
- if (this.isAudioOnly() && !muted) {
- this._displayAudioOnlyTooltip('videoMute');
- } else {
- this.muteVideo(muted);
- }
+ this.muteVideo(muted);
});
room.addCommandListener(this.commands.defaults.ETHERPAD,
diff --git a/modules/UI/UI.js b/modules/UI/UI.js
index d796b4e6b3..f44b31c8e1 100644
--- a/modules/UI/UI.js
+++ b/modules/UI/UI.js
@@ -640,22 +640,6 @@ UI.inputDisplayNameHandler = function(newDisplayName) {
eventEmitter.emit(UIEvents.NICKNAME_CHANGED, newDisplayName);
};
-/**
- * Show custom popup/tooltip for a specified button.
- *
- * @param {string} buttonName - The name of the button as specified in the
- * button configurations for the toolbar.
- * @param {string} popupSelectorID - The id of the popup to show as specified in
- * the button configurations for the toolbar.
- * @param {boolean} show - True or false/show or hide the popup
- * @param {number} timeout - The time to show the popup
- * @returns {void}
- */
-// eslint-disable-next-line max-params, no-unused-vars
-UI.showCustomToolbarPopup = function(buttonName, popupID, show, timeout) {
- // TODO: this is no longer implemented as of Toolbox v2. Remove?
-};
-
/**
* Return the type of the remote video.
* @param jid the jid for the remote video
diff --git a/modules/UI/shared_video/SharedVideo.js b/modules/UI/shared_video/SharedVideo.js
index 609a04ef9b..34c4f797ea 100644
--- a/modules/UI/shared_video/SharedVideo.js
+++ b/modules/UI/shared_video/SharedVideo.js
@@ -364,7 +364,6 @@ export default class SharedVideoManager {
player.setVolume(attributes.volume);
logger.info(`Player change of volume:${attributes.volume}`);
- this.showSharedVideoMutedPopup(false);
}
if (isPlayerPaused) {
@@ -564,8 +563,6 @@ export default class SharedVideoManager {
this.smartAudioMute();
}
}
-
- this.showSharedVideoMutedPopup(mute);
}
/**
@@ -580,7 +577,6 @@ export default class SharedVideoManager {
sendAnalytics(createEvent('audio.unmuted'));
logger.log('Shared video: audio unmuted');
this.emitter.emit(UIEvents.AUDIO_MUTED, false, false);
- this.showMicMutedPopup(false);
}
}
@@ -594,38 +590,8 @@ export default class SharedVideoManager {
sendAnalytics(createEvent('audio.muted'));
logger.log('Shared video: audio muted');
this.emitter.emit(UIEvents.AUDIO_MUTED, true, false);
- this.showMicMutedPopup(true);
}
}
-
- /**
- * Shows a popup under the microphone toolbar icon that notifies the user
- * of automatic mute after a shared video has started.
- * @param show boolean, show or hide the notification
- */
- showMicMutedPopup(show) {
- if (show) {
- this.showSharedVideoMutedPopup(false);
- }
-
- APP.UI.showCustomToolbarPopup(
- 'microphone', 'micMutedPopup', show, 5000);
- }
-
- /**
- * Shows a popup under the shared video toolbar icon that notifies the user
- * of automatic mute of the shared video after the user has unmuted their
- * mic.
- * @param show boolean, show or hide the notification
- */
- showSharedVideoMutedPopup(show) {
- if (show) {
- this.showMicMutedPopup(false);
- }
-
- APP.UI.showCustomToolbarPopup(
- 'sharedvideo', 'sharedVideoMutedPopup', show, 5000);
- }
}
/**
diff --git a/react/features/toolbox/constants.js b/react/features/toolbox/constants.js
deleted file mode 100644
index 8141b4731c..0000000000
--- a/react/features/toolbox/constants.js
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Mapping of tooltip positions to equivalent {@code AKInlineDialog} positions.
- *
- * @private
- */
-export const TOOLTIP_TO_POPUP_POSITION = {
- bottom: 'bottom center',
- left: 'left middle',
- top: 'top center',
- right: 'right middle'
-};
diff --git a/react/features/toolbox/index.js b/react/features/toolbox/index.js
index 0a8f4ad7bb..44000a1a7b 100644
--- a/react/features/toolbox/index.js
+++ b/react/features/toolbox/index.js
@@ -1,7 +1,6 @@
export * from './actions';
export * from './actionTypes';
export * from './components';
-export * from './constants';
export * from './functions';
import './middleware';
diff --git a/service/UI/UIEvents.js b/service/UI/UIEvents.js
index 82dc7c3bf0..d2052242ad 100644
--- a/service/UI/UIEvents.js
+++ b/service/UI/UIEvents.js
@@ -18,7 +18,6 @@ export default {
*/
AUDIO_MUTED: 'UI.audio_muted',
VIDEO_MUTED: 'UI.video_muted',
- VIDEO_UNMUTING_WHILE_AUDIO_ONLY: 'UI.video_unmuting_while_audio_only',
ETHERPAD_CLICKED: 'UI.etherpad_clicked',
SHARED_VIDEO_CLICKED: 'UI.start_shared_video',