Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opencast Recording Feature, refs #284 #339

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ script:
- moodle-plugin-ci validate
- moodle-plugin-ci savepoints
- moodle-plugin-ci phpdoc
- moodle-plugin-ci behat --profile chrome
# - moodle-plugin-ci behat --profile chrome
# - |
# # Grunt fails since version 3.8
# # https://moodle.org/mod/forum/discuss.php?d=389744
Expand Down
35 changes: 35 additions & 0 deletions amd/src/mod_lti_form_handler.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* LTI form submit
ferishili marked this conversation as resolved.
Show resolved Hide resolved
*
* @module mod/bigbluebuttonbn
* @package mod_bigbluebuttonbn
* @copyright 2021 Farbod Zamani ([email protected])
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define(['jquery'], function($) {

/*
* Submits lti form
*/
var init = function() {
$('#ltiLaunchForm').submit();
};
return {
init: init
};
});
2 changes: 2 additions & 0 deletions classes/locallib/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public static function defaultvalues() {
'recordings_preview_editable' => false,
'recordings_validate_url' => true,
'recording_default' => true,
'oc_recording' => false,
'recording_editable' => true,
'recording_icons_enabled' => true,
'recording_all_from_start_default' => false,
Expand Down Expand Up @@ -212,6 +213,7 @@ public static function get_options() {
'recordings_preview_editable' => self::get('recordings_preview_editable'),
'recordings_validate_url' => self::get('recordings_validate_url'),
'recording_default' => self::get('recording_default'),
'oc_recording' => self::get('oc_recording'),
'recording_editable' => self::get('recording_editable'),
'recording_icons_enabled' => self::get('recording_icons_enabled'),
'recording_all_from_start_default' => self::get('recording_all_from_start_default'),
Expand Down
12 changes: 12 additions & 0 deletions lang/en/bigbluebuttonbn.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@
$string['config_recording'] = 'Configuration for "Record meeting" feature';
$string['config_recording_description'] = 'These settings are feature specific';
$string['config_recording_default'] = 'Recording feature enabled by default';
$string['config_opencast'] = 'Configuration for "Opencast integration" feature';
$string['config_opencast_description'] = 'These settings control the integration of BBB meeting recordings and Opencast';
$string['config_oc_recording'] = 'Opencast can be used for Recording';
$string['config_oc_recording_description'] = 'When enabled, the Opencast series ID of the Moodle Course is sent to BBB as metadata, in order for BBB to integrate with Opencast Server.';
$string['config_oc_show_recording'] = 'Show Opencast recordings';
$string['config_oc_show_recording_description'] = 'If enabled the recording table will also include the Opencast recordings.';
$string['config_recording_default_description'] = 'If enabled the sessions created in BigBlueButton will have recording capabilities.';
$string['config_recording_editable'] = 'Recording feature can be edited';
$string['config_recording_editable_description'] = 'If checked the interface includes an option for enable and disable the recording feature.';
Expand Down Expand Up @@ -366,6 +372,7 @@
$string['mod_form_field_lockonjoin'] = 'Ignore lock settings';
$string['mod_form_field_lockonjoinconfigurable'] = 'Allow ignore locking settings';
$string['mod_form_locksettings'] = 'Lock settings';
$string['mod_form_field_opencast_record'] = 'Session can be recorded in Opencast';


$string['starts_at'] = 'Starts';
Expand Down Expand Up @@ -417,6 +424,7 @@
$string['view_recording_list_description'] = 'Description';
$string['view_recording_list_duration'] = 'Duration';
$string['view_recording_list_recording'] = 'Recording';
$string['view_recording_list_opencast'] = 'Opencast Video';
$string['view_recording_button_import'] = 'Import recording links';
$string['view_recording_button_return'] = 'Go back';
$string['view_recording_format_notes'] = 'Notes';
Expand All @@ -426,9 +434,13 @@
$string['view_recording_format_statistics'] = 'Statistics';
$string['view_recording_format_video'] = 'Video';
$string['view_recording_format_errror_unreachable'] = 'The URL for this recording format is unreachable.';
$string['view_recording_format_error_opencast_unreachable'] = 'The Opencast recording cannot be dispalyed.';
$string['view_section_title_presentation'] = 'Presentation file';
$string['view_section_title_recordings'] = 'Recordings';
$string['view_section_title_opencast_recordings'] = 'Opencast Recordings';
$string['view_message_norecordings'] = 'There are no recording to show.';
$string['view_message_opencast_norecordings'] = 'There are no Opencast recording to show.';
$string['view_message_oc_recordings'] = 'List of Recordings on Opencast';
ferishili marked this conversation as resolved.
Show resolved Hide resolved
$string['view_message_finished'] = 'This activity is over.';
$string['view_message_notavailableyet'] = 'This session is not yet available.';

Expand Down
Loading