added showbutton to deskshare module

This commit is contained in:
Markos Calderon 2013-03-05 10:01:42 -05:00
parent 4a67a67826
commit b2dd27d56f
3 changed files with 8 additions and 1 deletions

View File

@ -46,6 +46,7 @@
<module name="DeskShareModule"
url="http://HOST/client/DeskShareModule.swf?v=4105"
uri="rtmp://HOST/deskShare"
showButton="true"
autoStart="false"
baseTabIndex="101"
/>

View File

@ -67,13 +67,15 @@ package org.bigbluebutton.modules.deskshare.managers
public function handleMadePresenterEvent(e:MadePresenterEvent):void {
LogUtil.debug("Got MadePresenterEvent ");
toolbarButtonManager.addToolbarButton();
sharing = false;
var option:DeskshareOptions = new DeskshareOptions();
option.parseOptions();
if (option.autoStart) {
handleStartSharingEvent(true);
}
if(option.showButton){
toolbarButtonManager.addToolbarButton();
}
}
public function handleMadeViewerEvent(e:MadePresenterEvent):void{

View File

@ -22,6 +22,7 @@ package org.bigbluebutton.modules.deskshare.model
public class DeskshareOptions
{
[Bindable] public var showButton:Boolean = true;
[Bindable] public var autoStart:Boolean = false;
[Bindable] public var baseTabIndex:int;
@ -37,6 +38,9 @@ package org.bigbluebutton.modules.deskshare.model
else{
baseTabIndex = 101;
}
if (vxml.@showButton != undefined){
showButton = (vxml.@showButton.toString().toUpperCase() == "TRUE") ? true : false;
}
}
}
}