浏览代码

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

master
damencho 9 年前
父节点
当前提交
2c1a9d20fd
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      modules/UI/videolayout/VideoLayout.js

+ 5
- 0
modules/UI/videolayout/VideoLayout.js 查看文件

@@ -93,6 +93,11 @@ var VideoLayout = {
93 93
     init (emitter) {
94 94
         eventEmitter = emitter;
95 95
         localVideoThumbnail = new LocalVideo(VideoLayout, emitter);
96
+        // sets default video type of local video
97
+        localVideoThumbnail.setVideoType(VIDEO_CONTAINER_TYPE);
98
+        // if we do not resize the thumbs here, if there is no video device
99
+        // the local video thumb maybe one pixel
100
+        this.resizeThumbnails(false, true, false);
96 101
 
97 102
         emitter.addListener(UIEvents.CONTACT_CLICKED, onContactClicked);
98 103
         this.lastNCount = config.channelLastN;

正在加载...
取消
保存