Adds config option for auto enable desktop sharing when opening an url.
This commit is contained in:
parent
26e2fd6ef0
commit
74c420a609
@ -528,6 +528,8 @@ function onMucJoined(jid, info) {
|
|||||||
|
|
||||||
|
|
||||||
VideoLayout.mucJoined();
|
VideoLayout.mucJoined();
|
||||||
|
|
||||||
|
Toolbar.checkAutoEnableDesktopSharing();
|
||||||
}
|
}
|
||||||
|
|
||||||
function initEtherpad(name) {
|
function initEtherpad(name) {
|
||||||
|
|||||||
@ -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 () {
|
my.checkAutoRecord = function () {
|
||||||
if (UIUtil.isButtonEnabled('recording') && config.autoRecord) {
|
if (UIUtil.isButtonEnabled('recording') && config.autoRecord) {
|
||||||
toggleRecording(config.autoRecordToken);
|
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
|
// Shows or hides SIP calls button
|
||||||
my.showSipCallButton = function (show) {
|
my.showSipCallButton = function (show) {
|
||||||
if (APP.xmpp.isSipGatewayEnabled() && UIUtil.isButtonEnabled('sip') && show) {
|
if (APP.xmpp.isSipGatewayEnabled() && UIUtil.isButtonEnabled('sip') && show) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user