Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fixes setting local video, default videoType. Fixes showing local video when there is no video device shown.

damencho2c1a9d20fde4
diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js
index e5b4130b35..7f5d3c5da4 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;