Conditionally Turn On Off Chat module

106 views
Skip to first unread message

Jakir

unread,
Jun 4, 2013, 10:50:46 AM6/4/13
to bigblueb...@googlegroups.com
HI,

I am using BBB 0.81 currently.I need to turn on off chat module at the run-time. How it will be possible.Should there will be any parameter in config file to turn on off this module so something pass from flash var.


Regards,
Jakir

Chad Pilkey

unread,
Jun 4, 2013, 10:58:09 AM6/4/13
to bigblueb...@googlegroups.com
You could create a dynamic config.xml and remove the chat module node from the file. Removing the chat module from config.xml will stop the module from starting when the client is loaded. I don't think there are any hidden dependencies on the chat module, but I would suggest thoroughly testing the client to make sure everything still functions.

Jakir

unread,
Jun 6, 2013, 9:28:26 AM6/6/13
to bigblueb...@googlegroups.com
Hi,

Should anyone knows from which file call for config.xml get called i have to make some conditionally load different config files from there.

Fred Dixon

unread,
Jun 6, 2013, 3:10:02 PM6/6/13
to BigBlueButton-dev
Hi Jakir,

See the following API example


for an how to turn off features by dynamically modifying the config.xml.  See also this overview video



Regards,... Fred
-- 
BigBlueButton Developer
BigBlueButton on twitter: @bigbluebutton


--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To post to this group, send email to bigblueb...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 




HostBBB.com

unread,
Jun 6, 2013, 4:38:43 PM6/6/13
to BigBlueButton-dev
Jakir, look close at the layout.xml file in conf directory. you can
create a custom layout that hides chat, and then set it as default.
Then the moderator can toggle anytime and change layout when chat is
to be made available manually or you can use the javascript api
examples to do it programmatically.

regards,
Stephen
hostbbb.com

Jakir

unread,
Jun 17, 2013, 10:46:13 AM6/17/13
to bigblueb...@googlegroups.com
Hi All,


Unable to load unload Chat module at run time.

My scenario is like in my config.xml i pass chat module but at the time of load module by use of some condition i load or unload chat module in Config.as in

public function isModulePresent(name:String):Boolean {
var mn:XMLList = config.modules..@name;
var found:Boolean = false;
for each (var n:XML in mn) {
if (n.toString().toUpperCase() == name.toUpperCase()) {
if(n.toString() == "ChatModule" && (BBB.initUserConfigManager().enabledChat() == "false")){
found = false;
}else{
found = true;
}
break;
}
}
return found;
}


like that but it always load chat module how i can load and unload chat module at run time.

Fred Dixon

unread,
Jun 17, 2013, 11:05:25 AM6/17/13
to BigBlueButton-dev
Hi Jakir,

We would recommend you try a different approach to hiding the chat module.  Use the new layout manager in 0.81-beta.  You can control which layout a user gets on startup (using dynamic config.xml), a moderator can lock all users so they can't change their layout, and you can dynamically change the layout -- such as switching to a layout that does not show the chat module -- using the JavaScript API.  

See this overview video for how you can do the above.


In short, you should be able to accomplish what you want with hiding/unhiding the chat module with the new API in 0.81-beta. 

Give the above a try and let us know if you run into problems.


Regards,... Fred
-- 
BigBlueButton Developer
BigBlueButton on twitter: @bigbluebutton


--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To post to this group, send email to bigblueb...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages