Recording related UI modifications.
This commit is contained in:
parent
76548f1cd0
commit
68994fbe74
|
@ -558,7 +558,7 @@ export default {
|
||||||
|
|
||||||
_getConferenceOptions() {
|
_getConferenceOptions() {
|
||||||
let options = config;
|
let options = config;
|
||||||
if(config.enableRecording) {
|
if(config.enableRecording && !config.recordingType) {
|
||||||
options.recordingType = (config.hosts &&
|
options.recordingType = (config.hosts &&
|
||||||
(typeof config.hosts.jirecon != "undefined"))?
|
(typeof config.hosts.jirecon != "undefined"))?
|
||||||
"jirecon" : "colibri";
|
"jirecon" : "colibri";
|
||||||
|
@ -839,7 +839,8 @@ export default {
|
||||||
APP.UI.changeDisplayName(id, displayName);
|
APP.UI.changeDisplayName(id, displayName);
|
||||||
});
|
});
|
||||||
|
|
||||||
room.on(ConferenceEvents.RECORDING_STATE_CHANGED, (status, error) => {
|
room.on(ConferenceEvents.RECORDER_STATE_CHANGED, (status, error) => {
|
||||||
|
console.log("Received recorder status change: ", status, error);
|
||||||
if(status == "error") {
|
if(status == "error") {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
return;
|
return;
|
||||||
|
@ -999,15 +1000,8 @@ export default {
|
||||||
|
|
||||||
|
|
||||||
// Starts or stops the recording for the conference.
|
// Starts or stops the recording for the conference.
|
||||||
APP.UI.addListener(UIEvents.RECORDING_TOGGLE, (predefinedToken) => {
|
APP.UI.addListener(UIEvents.RECORDING_TOGGLED, (options) => {
|
||||||
if (predefinedToken) {
|
room.toggleRecording(options);
|
||||||
room.toggleRecording({token: predefinedToken});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
APP.UI.requestRecordingToken().then((token) => {
|
|
||||||
room.toggleRecording({token: token});
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
APP.UI.addListener(UIEvents.SUBJECT_CHANGED, (topic) => {
|
APP.UI.addListener(UIEvents.SUBJECT_CHANGED, (topic) => {
|
||||||
|
|
17
css/main.css
17
css/main.css
|
@ -129,21 +129,6 @@ html, body{
|
||||||
-moz-transition: all .5s ease-in-out;
|
-moz-transition: all .5s ease-in-out;
|
||||||
transition: all .5s ease-in-out;
|
transition: all .5s ease-in-out;
|
||||||
}
|
}
|
||||||
/*#ffde00*/
|
|
||||||
#toolbar_button_record.active {
|
|
||||||
-webkit-text-shadow: -1px 0 10px #00ccff,
|
|
||||||
0 1px 10px #00ccff,
|
|
||||||
1px 0 10px #00ccff,
|
|
||||||
0 -1px 10px #00ccff;
|
|
||||||
-moz-text-shadow: 1px 0 10px #00ccff,
|
|
||||||
0 1px 10px #00ccff,
|
|
||||||
1px 0 10px #00ccff,
|
|
||||||
0 -1px 10px #00ccff;
|
|
||||||
text-shadow: -1px 0 10px #00ccff,
|
|
||||||
0 1px 10px #00ccff,
|
|
||||||
1px 0 10px #00ccff,
|
|
||||||
0 -1px 10px #00ccff;
|
|
||||||
}
|
|
||||||
|
|
||||||
a.button:hover,
|
a.button:hover,
|
||||||
a.bottomToolbarButton:hover {
|
a.bottomToolbarButton:hover {
|
||||||
|
@ -298,7 +283,7 @@ div.feedbackButton:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
color: #00ccff;
|
background-color: #00ccff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bottomToolbar_span>span {
|
.bottomToolbar_span>span {
|
||||||
|
|
|
@ -489,3 +489,33 @@
|
||||||
color: rgba(255,255,255,.5);
|
color: rgba(255,255,255,.5);
|
||||||
z-index: 10000;
|
z-index: 10000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.centeredVideoLabel {
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 45%;
|
||||||
|
top: auto;
|
||||||
|
right: auto;
|
||||||
|
left: auto;
|
||||||
|
line-height: 28px;
|
||||||
|
height: 28px;
|
||||||
|
width: auto;
|
||||||
|
padding: 5px;
|
||||||
|
margin-right: auto;
|
||||||
|
margin-left: auto;
|
||||||
|
background: rgba(0,0,0,.5);
|
||||||
|
color: #FFF;
|
||||||
|
z-index: 10000;
|
||||||
|
border-radius: 4px;
|
||||||
|
-webkit-transition: all 2s 2s linear;
|
||||||
|
transition: all 2s 2s linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
.moveToCorner {
|
||||||
|
top: 5px;
|
||||||
|
right: 5px;
|
||||||
|
margin-right: 0px;
|
||||||
|
margin-left: auto;
|
||||||
|
background: rgba(0,0,0,.3);
|
||||||
|
color: rgba(255,255,255,.5);
|
||||||
|
}
|
|
@ -116,7 +116,7 @@
|
||||||
</span>
|
</span>
|
||||||
<a class="button icon-microphone" id="toolbar_button_mute" data-container="body" data-toggle="popover" data-placement="bottom" shortcut="mutePopover" data-i18n="[content]toolbar.mute" content="Mute / Unmute"></a>
|
<a class="button icon-microphone" id="toolbar_button_mute" data-container="body" data-toggle="popover" data-placement="bottom" shortcut="mutePopover" data-i18n="[content]toolbar.mute" content="Mute / Unmute"></a>
|
||||||
<a class="button icon-camera" id="toolbar_button_camera" data-container="body" data-toggle="popover" data-placement="bottom" shortcut="toggleVideoPopover" data-i18n="[content]toolbar.videomute" content="Start / stop camera"></a>
|
<a class="button icon-camera" id="toolbar_button_camera" data-container="body" data-toggle="popover" data-placement="bottom" shortcut="toggleVideoPopover" data-i18n="[content]toolbar.videomute" content="Start / stop camera"></a>
|
||||||
<a class="button icon-recEnable" id="toolbar_button_record" data-container="body" data-toggle="popover" data-placement="bottom" data-i18n="[content]toolbar.record" content="Record" style="display: none"></a>
|
<a class="button" id="toolbar_button_record" data-container="body" data-toggle="popover" data-placement="bottom" data-i18n="[content]toolbar.record" content="Record" style="display: none"></a>
|
||||||
<a class="button icon-security" id="toolbar_button_security" data-container="body" data-toggle="popover" data-placement="bottom" data-i18n="[content]toolbar.lock" content="Lock / unlock room"></a>
|
<a class="button icon-security" id="toolbar_button_security" data-container="body" data-toggle="popover" data-placement="bottom" data-i18n="[content]toolbar.lock" content="Lock / unlock room"></a>
|
||||||
<a class="button icon-link" id="toolbar_button_link" data-container="body" data-toggle="popover" data-placement="bottom" data-i18n="[content]toolbar.invite" content="Invite others"></a>
|
<a class="button icon-link" id="toolbar_button_link" data-container="body" data-toggle="popover" data-placement="bottom" data-i18n="[content]toolbar.invite" content="Invite others"></a>
|
||||||
<a class="button icon-chat" id="toolbar_button_chat" data-container="body" data-toggle="popover" shortcut="toggleChatPopover" data-placement="bottom" data-i18n="[content]toolbar.chat" content="Open / close chat">
|
<a class="button icon-chat" id="toolbar_button_chat" data-container="body" data-toggle="popover" shortcut="toggleChatPopover" data-placement="bottom" data-i18n="[content]toolbar.chat" content="Open / close chat">
|
||||||
|
@ -154,6 +154,7 @@
|
||||||
</div>
|
</div>
|
||||||
<span id="videoConnectionMessage"></span>
|
<span id="videoConnectionMessage"></span>
|
||||||
<span id="videoResolutionLabel">HD</span>
|
<span id="videoResolutionLabel">HD</span>
|
||||||
|
<span id="recordingLabel" class="centeredVideoLabel"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="remoteVideos">
|
<div id="remoteVideos">
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
"mute": "Mute / Unmute",
|
"mute": "Mute / Unmute",
|
||||||
"videomute": "Start / stop camera",
|
"videomute": "Start / stop camera",
|
||||||
"authenticate": "Authenticate",
|
"authenticate": "Authenticate",
|
||||||
"record": "Record",
|
"record": "Toggle recording",
|
||||||
"lock": "Lock / unlock room",
|
"lock": "Lock / unlock room",
|
||||||
"invite": "Invite others",
|
"invite": "Invite others",
|
||||||
"chat": "Open / close chat",
|
"chat": "Open / close chat",
|
||||||
|
@ -178,6 +178,7 @@
|
||||||
"joinAgain": "Join again",
|
"joinAgain": "Join again",
|
||||||
"Share": "Share",
|
"Share": "Share",
|
||||||
"Save": "Save",
|
"Save": "Save",
|
||||||
|
"recording": "Recording",
|
||||||
"recordingToken": "Enter recording token",
|
"recordingToken": "Enter recording token",
|
||||||
"Dial": "Dial",
|
"Dial": "Dial",
|
||||||
"sipMsg": "Enter SIP number",
|
"sipMsg": "Enter SIP number",
|
||||||
|
@ -205,7 +206,14 @@
|
||||||
"firefoxExtensionPrompt": "You need to install a Firefox extension in order to use screen sharing. Please try again after you <a href='__url__'>get it from here</a>!",
|
"firefoxExtensionPrompt": "You need to install a Firefox extension in order to use screen sharing. Please try again after you <a href='__url__'>get it from here</a>!",
|
||||||
"feedbackQuestion": "How was your call?",
|
"feedbackQuestion": "How was your call?",
|
||||||
"thankYou": "Thank you for using __appName__!",
|
"thankYou": "Thank you for using __appName__!",
|
||||||
"sorryFeedback": "We're sorry to hear that. Would you like to tell us more?"
|
"sorryFeedback": "We're sorry to hear that. Would you like to tell us more?",
|
||||||
|
"liveStreaming": "Live Streaming",
|
||||||
|
"streamKey": "Stream name/key",
|
||||||
|
"startLiveStreaming": "Start live streaming",
|
||||||
|
"stopStreamingWarning": "Are you sure you would like to stop the live streaming?",
|
||||||
|
"stopRecordingWarning": "Are you sure you would like to stop the recording?",
|
||||||
|
"stopLiveStreaming": "Stop live streaming",
|
||||||
|
"stopRecording": "Stop recording"
|
||||||
},
|
},
|
||||||
"email":
|
"email":
|
||||||
{
|
{
|
||||||
|
@ -253,8 +261,17 @@
|
||||||
},
|
},
|
||||||
"recording":
|
"recording":
|
||||||
{
|
{
|
||||||
"toaster": "Currently recording!",
|
"pending": "Recording waiting for a participant to join...",
|
||||||
"pending": "Your recording will start as soon as another participant joins",
|
"on": "Recording",
|
||||||
"on": "Recording has been started"
|
"off": "Recording stopped",
|
||||||
|
"failedToStart": "Recording failed to start"
|
||||||
|
},
|
||||||
|
"liveStreaming":
|
||||||
|
{
|
||||||
|
"pending": "Starting Live Stream...",
|
||||||
|
"on": "Live Streaming",
|
||||||
|
"off": "Live Streaming Stopped",
|
||||||
|
"unavailable": "The live streaming service is currently unavailable. Please try again later.",
|
||||||
|
"failedToStart": "Live streaming failed to start"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@ import UIEvents from "../../service/UI/UIEvents";
|
||||||
import CQEvents from '../../service/connectionquality/CQEvents';
|
import CQEvents from '../../service/connectionquality/CQEvents';
|
||||||
import EtherpadManager from './etherpad/Etherpad';
|
import EtherpadManager from './etherpad/Etherpad';
|
||||||
import SharedVideoManager from './shared_video/SharedVideo';
|
import SharedVideoManager from './shared_video/SharedVideo';
|
||||||
|
import Recording from "./recording/Recording";
|
||||||
|
|
||||||
import VideoLayout from "./videolayout/VideoLayout";
|
import VideoLayout from "./videolayout/VideoLayout";
|
||||||
import FilmStrip from "./videolayout/FilmStrip";
|
import FilmStrip from "./videolayout/FilmStrip";
|
||||||
|
@ -359,12 +360,16 @@ UI.start = function () {
|
||||||
bindEvents();
|
bindEvents();
|
||||||
sharedVideoManager = new SharedVideoManager(eventEmitter);
|
sharedVideoManager = new SharedVideoManager(eventEmitter);
|
||||||
if (!interfaceConfig.filmStripOnly) {
|
if (!interfaceConfig.filmStripOnly) {
|
||||||
|
|
||||||
$("#videospace").mousemove(function () {
|
$("#videospace").mousemove(function () {
|
||||||
return ToolbarToggler.showToolbar();
|
return ToolbarToggler.showToolbar();
|
||||||
});
|
});
|
||||||
setupToolbars();
|
setupToolbars();
|
||||||
setupChat();
|
setupChat();
|
||||||
|
|
||||||
|
// Initialise the recording module.
|
||||||
|
if (config.enableRecording)
|
||||||
|
Recording.init(eventEmitter, config.recordingType);
|
||||||
|
|
||||||
// Display notice message at the top of the toolbar
|
// Display notice message at the top of the toolbar
|
||||||
if (config.noticeMessage) {
|
if (config.noticeMessage) {
|
||||||
$('#noticeText').text(config.noticeMessage);
|
$('#noticeText').text(config.noticeMessage);
|
||||||
|
@ -562,15 +567,14 @@ UI.updateLocalRole = function (isModerator) {
|
||||||
VideoLayout.showModeratorIndicator();
|
VideoLayout.showModeratorIndicator();
|
||||||
|
|
||||||
Toolbar.showSipCallButton(isModerator);
|
Toolbar.showSipCallButton(isModerator);
|
||||||
Toolbar.showRecordingButton(isModerator);
|
Recording.showRecordingButton(isModerator);
|
||||||
Toolbar.showSharedVideoButton(isModerator);
|
|
||||||
SettingsMenu.showStartMutedOptions(isModerator);
|
SettingsMenu.showStartMutedOptions(isModerator);
|
||||||
SettingsMenu.showFollowMeOptions(isModerator);
|
SettingsMenu.showFollowMeOptions(isModerator);
|
||||||
|
|
||||||
if (isModerator) {
|
if (isModerator) {
|
||||||
messageHandler.notify(null, "notify.me", 'connected', "notify.moderator");
|
messageHandler.notify(null, "notify.me", 'connected', "notify.moderator");
|
||||||
|
|
||||||
Toolbar.checkAutoRecord();
|
Recording.checkAutoRecord();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -973,37 +977,8 @@ UI.requestFeedback = function () {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Request recording token from the user.
|
|
||||||
* @returns {Promise}
|
|
||||||
*/
|
|
||||||
UI.requestRecordingToken = function () {
|
|
||||||
let msg = APP.translation.generateTranslationHTML("dialog.recordingToken");
|
|
||||||
let token = APP.translation.translateString("dialog.token");
|
|
||||||
return new Promise(function (resolve, reject) {
|
|
||||||
messageHandler.openTwoButtonDialog(
|
|
||||||
null, null, null,
|
|
||||||
`<h2>${msg}</h2>
|
|
||||||
<input name="recordingToken" type="text"
|
|
||||||
data-i18n="[placeholder]dialog.token"
|
|
||||||
placeholder="${token}" autofocus>`,
|
|
||||||
false, "dialog.Save",
|
|
||||||
function (e, v, m, f) {
|
|
||||||
if (v && f.recordingToken) {
|
|
||||||
resolve(UIUtil.escapeHtml(f.recordingToken));
|
|
||||||
} else {
|
|
||||||
reject();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
null,
|
|
||||||
function () { },
|
|
||||||
':input:first'
|
|
||||||
);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
UI.updateRecordingState = function (state) {
|
UI.updateRecordingState = function (state) {
|
||||||
Toolbar.updateRecordingState(state);
|
Recording.updateRecordingState(state);
|
||||||
};
|
};
|
||||||
|
|
||||||
UI.notifyTokenAuthFailed = function () {
|
UI.notifyTokenAuthFailed = function () {
|
||||||
|
|
|
@ -6,7 +6,6 @@ import AnalyticsAdapter from '../../statistics/AnalyticsAdapter';
|
||||||
import UIEvents from '../../../service/UI/UIEvents';
|
import UIEvents from '../../../service/UI/UIEvents';
|
||||||
|
|
||||||
let roomUrl = null;
|
let roomUrl = null;
|
||||||
let recordingToaster = null;
|
|
||||||
let emitter = null;
|
let emitter = null;
|
||||||
|
|
||||||
|
|
||||||
|
@ -43,51 +42,6 @@ function openLinkDialog () {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sets the state of the recording button
|
|
||||||
function setRecordingButtonState (recordingState) {
|
|
||||||
let selector = $('#toolbar_button_record');
|
|
||||||
|
|
||||||
if (recordingState === 'on') {
|
|
||||||
selector.removeClass("icon-recEnable");
|
|
||||||
selector.addClass("icon-recEnable active");
|
|
||||||
|
|
||||||
$("#largeVideo").toggleClass("videoMessageFilter", true);
|
|
||||||
let recordOnKey = "recording.on";
|
|
||||||
$('#videoConnectionMessage').attr("data-i18n", recordOnKey);
|
|
||||||
$('#videoConnectionMessage').text(APP.translation.translateString(recordOnKey));
|
|
||||||
|
|
||||||
setTimeout(function(){
|
|
||||||
$("#largeVideo").toggleClass("videoMessageFilter", false);
|
|
||||||
$('#videoConnectionMessage').css({display: "none"});
|
|
||||||
}, 1500);
|
|
||||||
|
|
||||||
recordingToaster = messageHandler.notify(
|
|
||||||
null, "recording.toaster", null,
|
|
||||||
null, null,
|
|
||||||
{timeOut: 0, closeButton: null, tapToDismiss: false}
|
|
||||||
);
|
|
||||||
} else if (recordingState === 'off') {
|
|
||||||
selector.removeClass("icon-recEnable active");
|
|
||||||
selector.addClass("icon-recEnable");
|
|
||||||
|
|
||||||
$("#largeVideo").toggleClass("videoMessageFilter", false);
|
|
||||||
$('#videoConnectionMessage').css({display: "none"});
|
|
||||||
|
|
||||||
if (recordingToaster) {
|
|
||||||
messageHandler.remove(recordingToaster);
|
|
||||||
}
|
|
||||||
} else if (recordingState === 'pending') {
|
|
||||||
selector.removeClass("icon-recEnable active");
|
|
||||||
selector.addClass("icon-recEnable");
|
|
||||||
|
|
||||||
$("#largeVideo").toggleClass("videoMessageFilter", true);
|
|
||||||
let recordPendingKey = "recording.pending";
|
|
||||||
$('#videoConnectionMessage').attr("data-i18n", recordPendingKey);
|
|
||||||
$('#videoConnectionMessage').text(APP.translation.translateString(recordPendingKey));
|
|
||||||
$('#videoConnectionMessage').css({display: "block"});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const buttonHandlers = {
|
const buttonHandlers = {
|
||||||
"toolbar_button_mute": function () {
|
"toolbar_button_mute": function () {
|
||||||
if (APP.conference.audioMuted) {
|
if (APP.conference.audioMuted) {
|
||||||
|
@ -107,10 +61,6 @@ const buttonHandlers = {
|
||||||
emitter.emit(UIEvents.VIDEO_MUTED, true);
|
emitter.emit(UIEvents.VIDEO_MUTED, true);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"toolbar_button_record": function () {
|
|
||||||
AnalyticsAdapter.sendEvent('toolbar.recording.toggled');
|
|
||||||
emitter.emit(UIEvents.RECORDING_TOGGLE);
|
|
||||||
},
|
|
||||||
"toolbar_button_security": function () {
|
"toolbar_button_security": function () {
|
||||||
emitter.emit(UIEvents.ROOM_LOCK_CLICKED);
|
emitter.emit(UIEvents.ROOM_LOCK_CLICKED);
|
||||||
},
|
},
|
||||||
|
@ -250,7 +200,8 @@ const Toolbar = {
|
||||||
*/
|
*/
|
||||||
unlockLockButton () {
|
unlockLockButton () {
|
||||||
if ($("#toolbar_button_security").hasClass("icon-security-locked"))
|
if ($("#toolbar_button_security").hasClass("icon-security-locked"))
|
||||||
UIUtil.buttonClick("#toolbar_button_security", "icon-security icon-security-locked");
|
UIUtil.buttonClick("#toolbar_button_security",
|
||||||
|
"icon-security icon-security-locked");
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -258,7 +209,8 @@ const Toolbar = {
|
||||||
*/
|
*/
|
||||||
lockLockButton () {
|
lockLockButton () {
|
||||||
if ($("#toolbar_button_security").hasClass("icon-security"))
|
if ($("#toolbar_button_security").hasClass("icon-security"))
|
||||||
UIUtil.buttonClick("#toolbar_button_security", "icon-security icon-security-locked");
|
UIUtil.buttonClick("#toolbar_button_security",
|
||||||
|
"icon-security icon-security-locked");
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -279,15 +231,6 @@ const Toolbar = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// Shows or hides the 'recording' button.
|
|
||||||
showRecordingButton (show) {
|
|
||||||
if (UIUtil.isButtonEnabled('recording') && show) {
|
|
||||||
$('#toolbar_button_record').css({display: "inline-block"});
|
|
||||||
} else {
|
|
||||||
$('#toolbar_button_record').css({display: "none"});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
// Shows or hides the 'shared video' button.
|
// Shows or hides the 'shared video' button.
|
||||||
showSharedVideoButton (show) {
|
showSharedVideoButton (show) {
|
||||||
if (UIUtil.isButtonEnabled('sharedvideo') && show) {
|
if (UIUtil.isButtonEnabled('sharedvideo') && show) {
|
||||||
|
@ -297,14 +240,6 @@ const Toolbar = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// checks whether recording is enabled and whether we have params
|
|
||||||
// to start automatically recording
|
|
||||||
checkAutoRecord () {
|
|
||||||
if (UIUtil.isButtonEnabled('recording') && config.autoRecord) {
|
|
||||||
emitter.emit(UIEvents.RECORDING_TOGGLE, UIUtil.escapeHtml(config.autoRecordToken));
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
// checks whether desktop sharing is enabled and whether
|
// checks whether desktop sharing is enabled and whether
|
||||||
// we have params to start automatically sharing
|
// we have params to start automatically sharing
|
||||||
checkAutoEnableDesktopSharing () {
|
checkAutoEnableDesktopSharing () {
|
||||||
|
@ -382,10 +317,6 @@ const Toolbar = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
updateRecordingState (state) {
|
|
||||||
setRecordingButtonState(state);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Marks video icon as muted or not.
|
* Marks video icon as muted or not.
|
||||||
* @param {boolean} muted if icon should look like muted or not
|
* @param {boolean} muted if icon should look like muted or not
|
||||||
|
|
|
@ -123,11 +123,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
isButtonEnabled: function (name) {
|
isButtonEnabled: function (name) {
|
||||||
var isEnabled = interfaceConfig.TOOLBAR_BUTTONS.indexOf(name) !== -1;
|
return interfaceConfig.TOOLBAR_BUTTONS.indexOf(name) !== -1;
|
||||||
if (name === 'recording') {
|
|
||||||
return isEnabled && config.enableRecording;
|
|
||||||
}
|
|
||||||
return isEnabled;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
hideDisabledButtons: function (mappings) {
|
hideDisabledButtons: function (mappings) {
|
||||||
|
|
|
@ -62,7 +62,7 @@ export default {
|
||||||
CONTACT_CLICKED: "UI.contact_clicked",
|
CONTACT_CLICKED: "UI.contact_clicked",
|
||||||
HANGUP: "UI.hangup",
|
HANGUP: "UI.hangup",
|
||||||
LOGOUT: "UI.logout",
|
LOGOUT: "UI.logout",
|
||||||
RECORDING_TOGGLE: "UI.recording_toggle",
|
RECORDING_TOGGLED: "UI.recording_toggled",
|
||||||
SIP_DIAL: "UI.sip_dial",
|
SIP_DIAL: "UI.sip_dial",
|
||||||
SUBJECT_CHANGED: "UI.subject_changed",
|
SUBJECT_CHANGED: "UI.subject_changed",
|
||||||
VIDEO_DEVICE_CHANGED: "UI.video_device_changed",
|
VIDEO_DEVICE_CHANGED: "UI.video_device_changed",
|
||||||
|
|
Loading…
Reference in New Issue