Adds config option for auto enable desktop sharing when opening an url.

This commit is contained in:
damencho 2015-11-13 16:18:22 -06:00
parent 26e2fd6ef0
commit 74c420a609
2 changed files with 13 additions and 1 deletions

View File

@ -528,6 +528,8 @@ function onMucJoined(jid, info) {
VideoLayout.mucJoined();
Toolbar.checkAutoEnableDesktopSharing();
}
function initEtherpad(name) {

View File

@ -632,13 +632,23 @@ var Toolbar = (function (my) {
}
};
// checks whether recording is enabled and whether we have params to start automatically recording
// checks whether recording is enabled and whether we have params
// to start automatically recording
my.checkAutoRecord = function () {
if (UIUtil.isButtonEnabled('recording') && config.autoRecord) {
toggleRecording(config.autoRecordToken);
}
};
// checks whether desktop sharing is enabled and whether
// we have params to start automatically sharing
my.checkAutoEnableDesktopSharing = function () {
if (UIUtil.isButtonEnabled('desktop')
&& config.autoEnableDesktopSharing) {
APP.desktopsharing.toggleScreenSharing();
}
};
// Shows or hides SIP calls button
my.showSipCallButton = function (show) {
if (APP.xmpp.isSipGatewayEnabled() && UIUtil.isButtonEnabled('sip') && show) {