浏览代码

Fixes moderator icon on remote videos.

j8
damencho 9 年前
父节点
当前提交
cb40ab5420
共有 3 个文件被更改,包括 9 次插入0 次删除
  1. 3
    0
      conference.js
  2. 5
    0
      modules/UI/UI.js
  3. 1
    0
      modules/UI/videolayout/VideoLayout.js

+ 3
- 0
conference.js 查看文件

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 查看文件

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 查看文件

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;

正在加载...
取消
保存