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
This commit is contained in:
damencho 2016-03-18 17:44:32 -05:00
parent 9e7275acfb
commit d82d4cbed9
1 changed files with 3 additions and 3 deletions

View File

@ -490,11 +490,11 @@ UI.addUser = function (id, displayName) {
config.startAudioMuted > APP.conference.membersCount)
UIUtil.playSoundNotification('userJoined');
// Configure avatar
UI.setUserAvatar(id);
// Add Peer's container
VideoLayout.addParticipantContainer(id);
// Configure avatar
UI.setUserAvatar(id);
};
/**