Procházet zdrojové kódy

Adds jsdoc to previous commit

j8
yanas před 9 roky
rodič
revize
9a5d2012d3
2 změnil soubory, kde provedl 12 přidání a 3 odebrání
  1. 5
    1
      interface_config.js
  2. 7
    2
      modules/UI/videolayout/LargeVideo.js

+ 5
- 1
interface_config.js Zobrazit soubor

@@ -20,7 +20,11 @@ var interfaceConfig = {
20 20
         'recording', 'security', 'invite', 'chat', 'prezi', 'etherpad',
21 21
         'fullscreen', 'sip', 'dialpad', 'settings', 'hangup', 'filmstrip',
22 22
         'contacts'],
23
-    VIDEO_LAYOUT_FIT: 'both', // height, width, both
23
+    // Determines how the video would fit the screen. 'both' would fit the whole
24
+    // screen, 'height' would fit the original video height to the height of the
25
+    // screen, 'width' would fit the original video width to the width of the
26
+    // screen respecting ratio.
27
+    VIDEO_LAYOUT_FIT: 'both',
24 28
     /**
25 29
      * Whether to only show the filmstrip (and hide the toolbar).
26 30
      */

+ 7
- 2
modules/UI/videolayout/LargeVideo.js Zobrazit soubor

@@ -180,9 +180,14 @@ function getDesktopVideoPosition(videoWidth,
180 180
 
181 181
 
182 182
 /**
183
- * Returns an array of the video dimensions, so that it covers the screen.
184
- * It leaves no empty areas, but some parts of the video might not be visible.
183
+ * Returns an array of the video dimensions. It respects the
184
+ * VIDEO_LAYOUT_FIT config, to fit the video to the screen, by hiding some parts
185
+ * of it, or to fit it to the height or width.
185 186
  *
187
+ * @param videoWidth the original video width
188
+ * @param videoHeight the original video height
189
+ * @param videoSpaceWidth the width of the video space
190
+ * @param videoSpaceHeight the height of the video space
186 191
  * @return an array with 2 elements, the video width and the video height
187 192
  */
188 193
 function getCameraVideoSize(videoWidth,

Načítá se…
Zrušit
Uložit