Skip to content

Commit b2dd27d

Browse files
added showbutton to deskshare module
1 parent 4a67a67 commit b2dd27d

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

bigbluebutton-client/resources/config.xml.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
<module name="DeskShareModule"
4747
url="http://HOST/client/DeskShareModule.swf?v=4105"
4848
uri="rtmp://HOST/deskShare"
49+
showButton="true"
4950
autoStart="false"
5051
baseTabIndex="101"
5152
/>

bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/managers/DeskshareManager.as

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,15 @@ package org.bigbluebutton.modules.deskshare.managers
6767

6868
public function handleMadePresenterEvent(e:MadePresenterEvent):void {
6969
LogUtil.debug("Got MadePresenterEvent ");
70-
toolbarButtonManager.addToolbarButton();
7170
sharing = false;
7271
var option:DeskshareOptions = new DeskshareOptions();
7372
option.parseOptions();
7473
if (option.autoStart) {
7574
handleStartSharingEvent(true);
7675
}
76+
if(option.showButton){
77+
toolbarButtonManager.addToolbarButton();
78+
}
7779
}
7880

7981
public function handleMadeViewerEvent(e:MadePresenterEvent):void{

bigbluebutton-client/src/org/bigbluebutton/modules/deskshare/model/DeskshareOptions.as

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ package org.bigbluebutton.modules.deskshare.model
2222

2323
public class DeskshareOptions
2424
{
25+
[Bindable] public var showButton:Boolean = true;
2526
[Bindable] public var autoStart:Boolean = false;
2627
[Bindable] public var baseTabIndex:int;
2728

@@ -37,6 +38,9 @@ package org.bigbluebutton.modules.deskshare.model
3738
else{
3839
baseTabIndex = 101;
3940
}
41+
if (vxml.@showButton != undefined){
42+
showButton = (vxml.@showButton.toString().toUpperCase() == "TRUE") ? true : false;
43+
}
4044
}
4145
}
4246
}

0 commit comments

Comments
 (0)