Pārlūkot izejas kodu

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

j8
damencho 9 gadus atpakaļ
vecāks
revīzija
2c1a9d20fd
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5
    0
      modules/UI/videolayout/VideoLayout.js

+ 5
- 0
modules/UI/videolayout/VideoLayout.js Parādīt failu

93
     init (emitter) {
93
     init (emitter) {
94
         eventEmitter = emitter;
94
         eventEmitter = emitter;
95
         localVideoThumbnail = new LocalVideo(VideoLayout, emitter);
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
         emitter.addListener(UIEvents.CONTACT_CLICKED, onContactClicked);
102
         emitter.addListener(UIEvents.CONTACT_CLICKED, onContactClicked);
98
         this.lastNCount = config.channelLastN;
103
         this.lastNCount = config.channelLastN;

Notiek ielāde…
Atcelt
Saglabāt