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();
|
||||
|
||||
Toolbar.checkAutoEnableDesktopSharing();
|
||||
}
|
||||
|
||||
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 () {
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue