Bläddra i källkod

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

j8
yanas 9 år sedan
förälder
incheckning
7f7d9d5594
1 ändrade filer med 8 tillägg och 3 borttagningar
  1. 8
    3
      modules/UI/recording/Recording.js

+ 8
- 3
modules/UI/recording/Recording.js Visa fil

18
 import UIUtil from '../util/UIUtil';
18
 import UIUtil from '../util/UIUtil';
19
 
19
 
20
 /**
20
 /**
21
- * Recording.
21
+ * Indicates if the recording button should be enabled.
22
+ *
23
+ * @returns {boolean} {true} if the
24
+ * @private
22
  */
25
  */
23
-let recordingToaster = null;
24
-
25
 function _isRecordingButtonEnabled() {
26
 function _isRecordingButtonEnabled() {
26
     return interfaceConfig.TOOLBAR_BUTTONS.indexOf("recording") !== -1
27
     return interfaceConfig.TOOLBAR_BUTTONS.indexOf("recording") !== -1
27
             && config.enableRecording;
28
             && config.enableRecording;
270
     },
271
     },
271
 
272
 
272
     updateRecordingState(recordingState) {
273
     updateRecordingState(recordingState) {
274
+        // I'm the recorder, so I don't want to see any UI related to states.
275
+        if (config.iAmRecorder)
276
+            return;
277
+
273
         // If there's no state change, we ignore the update.
278
         // If there's no state change, we ignore the update.
274
         if (this.currentState === recordingState)
279
         if (this.currentState === recordingState)
275
             return;
280
             return;

Laddar…
Avbryt
Spara