Parcourir la source

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

j8
damencho il y a 9 ans
Parent
révision
2c1a9d20fd
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5
    0
      modules/UI/videolayout/VideoLayout.js

+ 5
- 0
modules/UI/videolayout/VideoLayout.js Voir le fichier

@@ -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;

Chargement…
Annuler
Enregistrer