Browse Source

Do not handle the actual error message yet

j8
yanas 9 years ago
parent
commit
07c2e91ae2
3 changed files with 6 additions and 7 deletions
  1. 1
    1
      conference.js
  2. 2
    2
      modules/UI/UI.js
  3. 3
    4
      modules/UI/recording/Recording.js

+ 1
- 1
conference.js View File

@@ -1151,7 +1151,7 @@ export default {
1151 1151
 
1152 1152
         room.on(ConferenceEvents.RECORDER_STATE_CHANGED, (status, error) => {
1153 1153
             console.log("Received recorder status change: ", status, error);
1154
-            APP.UI.updateRecordingState(status, error);
1154
+            APP.UI.updateRecordingState(status);
1155 1155
         });
1156 1156
 
1157 1157
         room.on(ConferenceEvents.USER_STATUS_CHANGED, function (id, status) {

+ 2
- 2
modules/UI/UI.js View File

@@ -1006,8 +1006,8 @@ UI.requestFeedback = function () {
1006 1006
     });
1007 1007
 };
1008 1008
 
1009
-UI.updateRecordingState = function (state, error) {
1010
-    Recording.updateRecordingState(state, error);
1009
+UI.updateRecordingState = function (state) {
1010
+    Recording.updateRecordingState(state);
1011 1011
 };
1012 1012
 
1013 1013
 UI.notifyTokenAuthFailed = function () {

+ 3
- 4
modules/UI/recording/Recording.js View File

@@ -348,7 +348,7 @@ var Recording = {
348 348
      * Updates the recording state UI.
349 349
      * @param recordingState gives us the current recording state
350 350
      */
351
-    updateRecordingState(recordingState, error) {
351
+    updateRecordingState(recordingState) {
352 352
         // I'm the recorder, so I don't want to see any UI related to states.
353 353
         if (config.iAmRecorder)
354 354
             return;
@@ -357,14 +357,14 @@ var Recording = {
357 357
         if (!recordingState || this.currentState === recordingState)
358 358
             return;
359 359
 
360
-        this.updateRecordingUI(recordingState, error);
360
+        this.updateRecordingUI(recordingState);
361 361
     },
362 362
 
363 363
     /**
364 364
      * Sets the state of the recording button.
365 365
      * @param recordingState gives us the current recording state
366 366
      */
367
-    updateRecordingUI (recordingState, error) {
367
+    updateRecordingUI (recordingState) {
368 368
         let buttonSelector = $('#toolbar_button_record');
369 369
 
370 370
         let oldState = this.currentState;
@@ -417,7 +417,6 @@ var Recording = {
417 417
             buttonSelector.addClass(this.baseClass);
418 418
 
419 419
             this._updateStatusLabel(this.recordingErrorKey, true);
420
-            console.log("Recording failed for the following reason: ", error);
421 420
         }
422 421
 
423 422
         let labelSelector = $('#recordingLabel');

Loading…
Cancel
Save