Skip to content
Permalink
Browse files

Add new setting in BBB plugin "disable_download_conference_link"

See BT#14976
  • Loading branch information...
jmontoyaa committed Nov 2, 2018
1 parent 782eed3 commit 0d5172265a2ad9a15f05860ee17be8d5633cf00f
Showing with 25 additions and 16 deletions.
  1. +2 −0 plugin/bbb/lang/english.php
  2. +20 −16 plugin/bbb/lib/bbb.lib.php
  3. +3 −0 plugin/bbb/lib/bbb_plugin.class.php
@@ -45,6 +45,8 @@
$strings['enable_conference_in_course_groups'] = 'Enable conference in course groups';
$strings['enable_global_conference_link'] = 'Enable the link to the global conference in the homepage';
$strings['disable_download_conference_link'] = 'Disable download conference';
$strings['big_blue_button_record_and_store'] = 'Record and store sessions';
$strings['bbb_enable_conference_in_groups'] = 'Allow conference in groups';
$strings['plugin_tool_bbb'] = 'Video';
@@ -1544,22 +1544,26 @@ private function getActionLinks(
);
}
if ($meetingInfo['has_video_m4v']) {
$links[] = Display::url(
Display::return_icon('save.png', get_lang('DownloadFile')),
$recordInfo['playbackFormatUrl'].'/capture.m4v',
['target' => '_blank']
);
} else {
$links[] = Display::url(
Display::return_icon('save.png', get_lang('DownloadFile')),
'#',
[
'id' => "btn-check-meeting-video-{$meetingInfo['id']}",
'class' => 'check-meeting-video',
'data-id' => $meetingInfo['id']
]
);
$hide = $this->plugin->get('disable_download_conference_link') === 'true' ? true : false;
if ($hide == false) {
if ($meetingInfo['has_video_m4v']) {
$links[] = Display::url(
Display::return_icon('save.png', get_lang('DownloadFile')),
$recordInfo['playbackFormatUrl'].'/capture.m4v',
['target' => '_blank']
);
} else {
$links[] = Display::url(
Display::return_icon('save.png', get_lang('DownloadFile')),
'#',
[
'id' => "btn-check-meeting-video-{$meetingInfo['id']}",
'class' => 'check-meeting-video',
'data-id' => $meetingInfo['id']
]
);
}
}
if (!$isAdminReport) {
@@ -52,6 +52,7 @@ protected function __construct()
'enable_global_conference_per_user' => 'boolean',
'enable_conference_in_course_groups' => 'boolean',
'enable_global_conference_link' => 'boolean',
'disable_download_conference_link' => 'boolean',
'max_users_limit' => 'text',
'global_conference_allow_roles' => [
'type' => 'select',
@@ -209,7 +210,9 @@ public function uninstall()
'bbb_host',
'bbb_tool_enable',
'enable_global_conference',
'enable_global_conference_per_user',
'enable_global_conference_link',
'disable_download_conference_link',
'enable_conference_in_course_groups',
'bbb_plugin',
'bbb_plugin_host',

0 comments on commit 0d51722

Please sign in to comment.
You can’t perform that action at this time.