Fixes parameters for VideoLayout.resizeThumbnails.

This commit is contained in:
damencho 2016-09-14 10:48:38 -05:00
parent 891c108191
commit a5bc9625ef
1 changed files with 2 additions and 3 deletions

View File

@ -105,8 +105,7 @@ var VideoLayout = {
localVideoThumbnail.setVideoType(VIDEO_CONTAINER_TYPE); localVideoThumbnail.setVideoType(VIDEO_CONTAINER_TYPE);
// if we do not resize the thumbs here, if there is no video device // if we do not resize the thumbs here, if there is no video device
// the local video thumb maybe one pixel // the local video thumb maybe one pixel
let {thumbWidth, thumbHeight} let {thumbWidth, thumbHeight} = this.resizeThumbnails(false, true);
= this.resizeThumbnails(false, true, false);
AudioLevels.updateAudioLevelCanvas(null, thumbWidth, thumbHeight); AudioLevels.updateAudioLevelCanvas(null, thumbWidth, thumbHeight);
emitter.addListener(UIEvents.CONTACT_CLICKED, onContactClicked); emitter.addListener(UIEvents.CONTACT_CLICKED, onContactClicked);
@ -414,7 +413,7 @@ var VideoLayout = {
console.info(resourceJid + " video is now active", videoelem); console.info(resourceJid + " video is now active", videoelem);
VideoLayout.resizeThumbnails( VideoLayout.resizeThumbnails(
false, false, false, function() {$(videoelem).show();}); false, false, function() {$(videoelem).show();});
// Update the large video to the last added video only if there's no // Update the large video to the last added video only if there's no
// current dominant, focused speaker or update it to // current dominant, focused speaker or update it to