Merge branch 'master' of https://github.com/bigbluebutton/bigbluebutton
This commit is contained in:
commit
00bcf1b232
@ -228,8 +228,9 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
|||||||
setResolution(_camera.width, _camera.height);
|
setResolution(_camera.width, _camera.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
_video = new Video;
|
_video = new Video();
|
||||||
_video.attachCamera(_camera);
|
_video.attachCamera(_camera);
|
||||||
|
_video.smoothing = true;
|
||||||
|
|
||||||
if (aspectRatio > _videoHolder.width / _videoHolder.height) {
|
if (aspectRatio > _videoHolder.width / _videoHolder.height) {
|
||||||
_video.width = _videoHolder.width;
|
_video.width = _videoHolder.width;
|
||||||
@ -317,7 +318,6 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
|||||||
createButtons();
|
createButtons();
|
||||||
addControlButtons();
|
addControlButtons();
|
||||||
|
|
||||||
// onResize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private var _isClosing:Boolean = false;
|
private var _isClosing:Boolean = false;
|
||||||
@ -354,12 +354,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
|||||||
super.onResize();
|
super.onResize();
|
||||||
|
|
||||||
if (_videoHolder != null) {
|
if (_videoHolder != null) {
|
||||||
if (videoIsSmallerThanWindow()) {
|
|
||||||
_video.width = camWidth;
|
|
||||||
_video.height = camHeight;
|
|
||||||
} else {
|
|
||||||
fitVideoToWindow();
|
fitVideoToWindow();
|
||||||
}
|
|
||||||
|
|
||||||
_video.x = (this.width - PADDING_HORIZONTAL - _video.width) / 2;
|
_video.x = (this.width - PADDING_HORIZONTAL - _video.width) / 2;
|
||||||
_video.y = (this.height - PADDING_VERTICAL - _video.height) / 2;
|
_video.y = (this.height - PADDING_VERTICAL - _video.height) / 2;
|
||||||
|
@ -169,6 +169,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
|||||||
_video = new Video(Number(res[0]), Number(res[1]));
|
_video = new Video(Number(res[0]), Number(res[1]));
|
||||||
_video.width = Number(res[0]);
|
_video.width = Number(res[0]);
|
||||||
_video.height = Number(res[1]);
|
_video.height = Number(res[1]);
|
||||||
|
_video.smoothing = true;
|
||||||
setAspectRatio(Number(res[0]), Number(res[1]));
|
setAspectRatio(Number(res[0]), Number(res[1]));
|
||||||
_video.attachNetStream(ns);
|
_video.attachNetStream(ns);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user