- add option to position webcam viewer window

This commit is contained in:
Richard Alam 2011-07-27 20:36:04 +00:00
parent d438b06c72
commit 310b51184c
5 changed files with 23 additions and 5 deletions

View File

@ -73,6 +73,8 @@
autoStart="false"
showButton="true"
publishWindowVisible="true"
viewerWindowMaxed="true"
viewerWindowLocation="middle"
/>
<module name="WhiteboardModule" url="WhiteboardModule.swf?v=VERSION"

View File

@ -59,6 +59,8 @@ package org.bigbluebutton.modules.videoconf.business
videoOptions.showButton = (vxml.@showButton.toString().toUpperCase() == "TRUE") ? true : false;
videoOptions.autoStart = (vxml.@autoStart.toString().toUpperCase() == "TRUE") ? true : false;
videoOptions.publishWindowVisible = (vxml.@publishWindowVisible.toString().toUpperCase() == "TRUE") ? true : false;
videoOptions.viewerWindowMaxed = (vxml.@viewerWindowMaxed.toString().toUpperCase() == "TRUE") ? true : false;
videoOptions.viewerWindowLocation = vxml.@viewerWindowLocation.toString().toUpperCase();
}
nc = new NetConnection();

View File

@ -56,6 +56,8 @@
if (userid == module.userid) return;
var window:VideoWindow = new VideoWindow();
window.videoOptions = proxy.videoOptions;
window.resolutions = module.resolutions.split(",");
if (mock) {

View File

@ -11,9 +11,11 @@ package org.bigbluebutton.modules.videoconf.model
[Bindable]
public var publishWindowVisible:Boolean = true;
public function VideoConfOptions()
{
}
[Bindable]
public var viewerWindowMaxed:Boolean = false;
[Bindable]
public var viewerWindowLocation:String = "middle";
}
}

View File

@ -34,11 +34,13 @@
import flexlib.mdi.events.MDIWindowEvent;
import mx.controls.Alert;
import mx.core.UIComponent;
import mx.core.UIComponent;
import org.bigbluebutton.common.LogUtil;
import org.bigbluebutton.main.events.BBBEvent;
import org.bigbluebutton.main.views.MainCanvas;
import org.bigbluebutton.modules.videoconf.events.CloseAllWindowsEvent;
import org.bigbluebutton.modules.videoconf.model.VideoConfOptions;
public var resolutions:Array = new Array("320x240", "640x480");
@ -64,6 +66,9 @@
private var _yPosition:int;
private var globalDispatcher:Dispatcher;
[Bindable]
public var videoOptions:VideoConfOptions;
private function init():void{
videoHolder = new UIComponent();
@ -82,6 +87,8 @@
this.minHeight = _minHeight;
maximizeRestoreBtn.visible = true;
this.resizable = true;
if (videoOptions.viewerWindowMaxed)
this.maximize();
}
private function onCloseEvent(event:MDIWindowEvent = null):void {
@ -137,7 +144,10 @@
adjustWindowSize();
}
public function getPrefferedPosition():String{
public function getPrefferedPosition():String {
if (videoOptions.viewerWindowLocation == "MIDDLE") {
return MainCanvas.MIDDLE;
}
return MainCanvas.POPUP;
}