Parcourir la source

Adds jsdoc to previous commit

master
yanas il y a 9 ans
Parent
révision
9a5d2012d3
2 fichiers modifiés avec 12 ajouts et 3 suppressions
  1. 5
    1
      interface_config.js
  2. 7
    2
      modules/UI/videolayout/LargeVideo.js

+ 5
- 1
interface_config.js Voir le fichier

20
         'recording', 'security', 'invite', 'chat', 'prezi', 'etherpad',
20
         'recording', 'security', 'invite', 'chat', 'prezi', 'etherpad',
21
         'fullscreen', 'sip', 'dialpad', 'settings', 'hangup', 'filmstrip',
21
         'fullscreen', 'sip', 'dialpad', 'settings', 'hangup', 'filmstrip',
22
         'contacts'],
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
      * Whether to only show the filmstrip (and hide the toolbar).
29
      * Whether to only show the filmstrip (and hide the toolbar).
26
      */
30
      */

+ 7
- 2
modules/UI/videolayout/LargeVideo.js Voir le fichier

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
  * @return an array with 2 elements, the video width and the video height
191
  * @return an array with 2 elements, the video width and the video height
187
  */
192
  */
188
 function getCameraVideoSize(videoWidth,
193
 function getCameraVideoSize(videoWidth,

Chargement…
Annuler
Enregistrer