浏览代码

Adds jsdoc to previous commit

master
yanas 10 年前
父节点
当前提交
9a5d2012d3
共有 2 个文件被更改,包括 12 次插入3 次删除
  1. 5
    1
      interface_config.js
  2. 7
    2
      modules/UI/videolayout/LargeVideo.js

+ 5
- 1
interface_config.js 查看文件

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 查看文件

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,

正在加载...
取消
保存