Merge branch 'master' into webpack
This commit is contained in:
commit
c8f18040f6
|
@ -17,6 +17,7 @@ import mediaDeviceHelper from './modules/devices/mediaDeviceHelper';
|
|||
import {reportError} from './modules/util/helpers';
|
||||
|
||||
import UIErrors from './modules/UI/UIErrors';
|
||||
import UIUtil from './modules/UI/util/UIUtil';
|
||||
|
||||
const ConnectionEvents = JitsiMeetJS.events.connection;
|
||||
const ConnectionErrors = JitsiMeetJS.errors.connection;
|
||||
|
@ -1278,6 +1279,11 @@ export default {
|
|||
APP.UI.setAudioLevel(id, lvl);
|
||||
});
|
||||
|
||||
room.on(ConferenceEvents.TALK_WHILE_MUTED, () => {
|
||||
APP.UI.showToolbar(6000);
|
||||
UIUtil.animateShowElement($("#talkWhileMutedPopup"), true, 5000);
|
||||
});
|
||||
|
||||
room.on(ConferenceEvents.IN_LAST_N_CHANGED, (inLastN) => {
|
||||
//FIXME
|
||||
if (config.muteLocalVideoIfNotInLastN) {
|
||||
|
|
|
@ -90,6 +90,7 @@
|
|||
"dialpad": "Show dialpad",
|
||||
"sharedVideoMutedPopup": "Your shared video has been muted so<br/>that you can talk to the other participants.",
|
||||
"micMutedPopup": "Your microphone has been muted so that you<br/>would fully enjoy your shared video.",
|
||||
"talkWhileMutedPopup": "Trying to speak? You are muted.",
|
||||
"unableToUnmutePopup": "You cannot un-mute while the shared video is on.",
|
||||
"cameraDisabled": "Camera is not available",
|
||||
"micDisabled": "Microphone is not available",
|
||||
|
|
|
@ -884,8 +884,8 @@ UI.clickOnVideo = function (videoNumber) {
|
|||
};
|
||||
|
||||
//Used by torture
|
||||
UI.showToolbar = function () {
|
||||
return ToolbarToggler.showToolbar();
|
||||
UI.showToolbar = function (timeout) {
|
||||
return ToolbarToggler.showToolbar(timeout);
|
||||
};
|
||||
|
||||
//Used by torture
|
||||
|
|
|
@ -209,6 +209,11 @@ const defaultToolbarButtons = {
|
|||
id: "unableToUnmutePopup",
|
||||
className: "loginmenu",
|
||||
dataAttr: "[html]toolbar.unableToUnmutePopup"
|
||||
},
|
||||
{
|
||||
id: "talkWhileMutedPopup",
|
||||
className: "loginmenu",
|
||||
dataAttr: "[html]toolbar.talkWhileMutedPopup"
|
||||
}
|
||||
],
|
||||
content: "Mute / Unmute",
|
||||
|
|
|
@ -89,8 +89,9 @@ const ToolbarToggler = {
|
|||
|
||||
/**
|
||||
* Shows the main toolbar.
|
||||
* @param timeout (optional) to specify custom timeout value
|
||||
*/
|
||||
showToolbar () {
|
||||
showToolbar (timeout) {
|
||||
if (interfaceConfig.filmStripOnly) {
|
||||
return;
|
||||
}
|
||||
|
@ -107,7 +108,8 @@ const ToolbarToggler = {
|
|||
clearTimeout(toolbarTimeoutObject);
|
||||
toolbarTimeoutObject = null;
|
||||
}
|
||||
toolbarTimeoutObject = setTimeout(hideToolbar, toolbarTimeout);
|
||||
toolbarTimeoutObject
|
||||
= setTimeout(hideToolbar, timeout || toolbarTimeout);
|
||||
toolbarTimeout = interfaceConfig.TOOLBAR_TIMEOUT;
|
||||
}
|
||||
|
||||
|
|
|
@ -143,11 +143,9 @@ const TOOLTIP_POSITIONS = {
|
|||
* @param element the element to remove the tooltip from
|
||||
*/
|
||||
removeTooltip: function (element) {
|
||||
AJS.$(element).tooltip('destroy');
|
||||
element.setAttribute('data-tooltip', '');
|
||||
element.setAttribute('data-i18n','');
|
||||
element.setAttribute('content','');
|
||||
element.setAttribute('shortcut','');
|
||||
element.removeAttribute('data-tooltip', '');
|
||||
element.removeAttribute('data-i18n','');
|
||||
element.removeAttribute('content','');
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue