From 2c1a9d20fde41fb97c9500b3eac5a7ef90dc96ba Mon Sep 17 00:00:00 2001 From: damencho Date: Tue, 22 Mar 2016 13:27:11 -0500 Subject: [PATCH] Fixes setting local video, default videoType. Fixes showing local video when there is no video device shown. --- modules/UI/videolayout/VideoLayout.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js index e5b4130b3..7f5d3c5da 100644 --- a/modules/UI/videolayout/VideoLayout.js +++ b/modules/UI/videolayout/VideoLayout.js @@ -93,6 +93,11 @@ var VideoLayout = { init (emitter) { eventEmitter = emitter; localVideoThumbnail = new LocalVideo(VideoLayout, emitter); + // sets default video type of local video + localVideoThumbnail.setVideoType(VIDEO_CONTAINER_TYPE); + // if we do not resize the thumbs here, if there is no video device + // the local video thumb maybe one pixel + this.resizeThumbnails(false, true, false); emitter.addListener(UIEvents.CONTACT_CLICKED, onContactClicked); this.lastNCount = config.channelLastN;