Adds an I am a recorder parameter that allows for the UI to be cleaner and simpler for the recorders.

This commit is contained in:
yanas 2016-03-29 17:26:39 -05:00
parent 76820bed8d
commit 7f7d9d5594
1 changed files with 8 additions and 3 deletions

View File

@ -18,10 +18,11 @@ import UIEvents from "../../../service/UI/UIEvents";
import UIUtil from '../util/UIUtil';
/**
* Recording.
* Indicates if the recording button should be enabled.
*
* @returns {boolean} {true} if the
* @private
*/
let recordingToaster = null;
function _isRecordingButtonEnabled() {
return interfaceConfig.TOOLBAR_BUTTONS.indexOf("recording") !== -1
&& config.enableRecording;
@ -270,6 +271,10 @@ var Recording = {
},
updateRecordingState(recordingState) {
// I'm the recorder, so I don't want to see any UI related to states.
if (config.iAmRecorder)
return;
// If there's no state change, we ignore the update.
if (this.currentState === recordingState)
return;