瀏覽代碼

Creates first the container before setting avatar, cause the avatar set will check the large video container type and type may be missing. Fixes error 'container of type undefined doesn't exist':

>    at LargeVideoManager.getContainer
>    at LargeVideoManager.get
>    at Object.isCurrentlyOnLarge
>    at Object.changeUserAvatar
>    at Object.UI.setUserAvatar
>    at Object.UI.addUser
j8
damencho 9 年之前
父節點
當前提交
d82d4cbed9
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      modules/UI/UI.js

+ 3
- 3
modules/UI/UI.js 查看文件

490
         config.startAudioMuted > APP.conference.membersCount)
490
         config.startAudioMuted > APP.conference.membersCount)
491
         UIUtil.playSoundNotification('userJoined');
491
         UIUtil.playSoundNotification('userJoined');
492
 
492
 
493
-    // Configure avatar
494
-    UI.setUserAvatar(id);
495
-
496
     // Add Peer's container
493
     // Add Peer's container
497
     VideoLayout.addParticipantContainer(id);
494
     VideoLayout.addParticipantContainer(id);
495
+
496
+    // Configure avatar
497
+    UI.setUserAvatar(id);
498
 };
498
 };
499
 
499
 
500
 /**
500
 /**

Loading…
取消
儲存