Browse Source

Fixes moderator icon on remote videos.

master
damencho 9 years ago
parent
commit
cb40ab5420
3 changed files with 9 additions and 0 deletions
  1. 3
    0
      conference.js
  2. 5
    0
      modules/UI/UI.js
  3. 1
    0
      modules/UI/videolayout/VideoLayout.js

+ 3
- 0
conference.js View File

296
             console.log('USER %s connnected', id, user);
296
             console.log('USER %s connnected', id, user);
297
             // FIXME email???
297
             // FIXME email???
298
             APP.UI.addUser(id, user.getDisplayName());
298
             APP.UI.addUser(id, user.getDisplayName());
299
+
300
+            // chek the roles for the new user and reflect them
301
+            APP.UI.updateUserRole(user);
299
         });
302
         });
300
         room.on(ConferenceEvents.USER_LEFT, (id, user) => {
303
         room.on(ConferenceEvents.USER_LEFT, (id, user) => {
301
             console.log('USER %s LEFT', id, user);
304
             console.log('USER %s LEFT', id, user);

+ 5
- 0
modules/UI/UI.js View File

426
     }
426
     }
427
 };
427
 };
428
 
428
 
429
+/**
430
+ * Check the role for the user and reflect it in the UI, moderator ui indication
431
+ * and notifies user who is the moderator
432
+ * @param user to check for moderator
433
+ */
429
 UI.updateUserRole = function (user) {
434
 UI.updateUserRole = function (user) {
430
     VideoLayout.showModeratorIndicator();
435
     VideoLayout.showModeratorIndicator();
431
 
436
 

+ 1
- 0
modules/UI/videolayout/VideoLayout.js View File

384
 
384
 
385
     /**
385
     /**
386
      * Shows a visual indicator for the moderator of the conference.
386
      * Shows a visual indicator for the moderator of the conference.
387
+     * On local or remote participants.
387
      */
388
      */
388
     showModeratorIndicator () {
389
     showModeratorIndicator () {
389
         let isModerator = APP.conference.isModerator;
390
         let isModerator = APP.conference.isModerator;

Loading…
Cancel
Save