This commit is contained in:
Markos Calderon 2013-05-09 17:30:25 -05:00
commit 00bcf1b232
2 changed files with 7 additions and 10 deletions

View File

@ -228,8 +228,9 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
setResolution(_camera.width, _camera.height);
}
_video = new Video;
_video = new Video();
_video.attachCamera(_camera);
_video.smoothing = true;
if (aspectRatio > _videoHolder.width / _videoHolder.height) {
_video.width = _videoHolder.width;
@ -317,7 +318,6 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
createButtons();
addControlButtons();
// onResize();
}
private var _isClosing:Boolean = false;
@ -354,12 +354,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
super.onResize();
if (_videoHolder != null) {
if (videoIsSmallerThanWindow()) {
_video.width = camWidth;
_video.height = camHeight;
} else {
fitVideoToWindow();
}
_video.x = (this.width - PADDING_HORIZONTAL - _video.width) / 2;
_video.y = (this.height - PADDING_VERTICAL - _video.height) / 2;

View File

@ -169,6 +169,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
_video = new Video(Number(res[0]), Number(res[1]));
_video.width = Number(res[0]);
_video.height = Number(res[1]);
_video.smoothing = true;
setAspectRatio(Number(res[0]), Number(res[1]));
_video.attachNetStream(ns);