fix: desktop streming screen size

This commit is contained in:
yanas 2016-11-11 11:55:18 -06:00
parent 611edf7e34
commit 5545c0d905
3 changed files with 6 additions and 2 deletions

View File

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

View File

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

View File

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