Pārlūkot izejas kodu

fix: desktop streming screen size

j8
yanas 8 gadus atpakaļ
vecāks
revīzija
5545c0d905

+ 1
- 1
modules/UI/videolayout/FilmStrip.js Parādīt failu

@@ -157,7 +157,7 @@ const FilmStrip = {
157 157
      */
158 158
     getFilmStripHeight() {
159 159
         if (this.isFilmStripVisible()) {
160
-            return this.filmStrip.outerHeight();
160
+            return $(`.${this.filmStripContainerClassName}`).outerHeight();
161 161
         } else {
162 162
             return 0;
163 163
         }

+ 1
- 1
modules/UI/videolayout/LargeVideoManager.js Parādīt failu

@@ -24,7 +24,7 @@ export default class LargeVideoManager {
24 24
             () => this.resizeContainer(VIDEO_CONTAINER_TYPE), emitter);
25 25
         this.addContainer(VIDEO_CONTAINER_TYPE, this.videoContainer);
26 26
 
27
-        // use the same video container to handle and desktop tracks
27
+        // use the same video container to handle desktop tracks
28 28
         this.addContainer("desktop", this.videoContainer);
29 29
 
30 30
         this.width = 0;

+ 4
- 0
modules/UI/videolayout/VideoContainer.js Parādīt failu

@@ -32,6 +32,10 @@ function getStreamOwnerId(stream) {
32 32
  * ratio and fits available area with it's larger dimension. This method
33 33
  * ensures that whole video will be visible and can leave empty areas.
34 34
  *
35
+ * @param videoWidth the width of the video to position
36
+ * @param videoHeight the height of the video to position
37
+ * @param videoSpaceWidth the width of the available space
38
+ * @param videoSpaceHeight the height of the available space
35 39
  * @return an array with 2 elements, the video width and the video height
36 40
  */
37 41
 function getDesktopVideoSize(videoWidth,

Notiek ielāde…
Atcelt
Saglabāt