2 // This file is part of Moodle - http://moodle.org/
4 // Moodle is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
9 // Moodle is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // You should have received a copy of the GNU General Public License
15 // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
18 * Settings file for plugin 'media_videojs'
20 * @package media_videojs
21 * @copyright 2016 Marina Glancy
22 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25 defined('MOODLE_INTERNAL') ||
die();
27 if ($ADMIN->fulltree
) {
29 $settings->add(new admin_setting_filetypes('media_videojs/videoextensions',
30 new lang_string('videoextensions', 'media_videojs'),
31 new lang_string('configvideoextensions', 'media_videojs'),
32 'html_video,.f4v,.flv'));
34 $settings->add(new admin_setting_filetypes('media_videojs/audioextensions',
35 new lang_string('audioextensions', 'media_videojs'),
36 new lang_string('configaudioextensions', 'media_videojs'),
39 $settings->add(new admin_setting_configcheckbox('media_videojs/useflash',
40 new lang_string('useflash', 'media_videojs'),
41 new lang_string('configuseflash', 'media_videojs'), 0));
43 $settings->add(new admin_setting_configcheckbox('media_videojs/youtube',
44 new lang_string('youtube', 'media_videojs'),
45 new lang_string('configyoutube', 'media_videojs'), 1));
47 $settings->add(new admin_setting_configtext('media_videojs/videocssclass',
48 new lang_string('videocssclass', 'media_videojs'),
49 new lang_string('configvideocssclass', 'media_videojs'), 'video-js'));
51 $settings->add(new admin_setting_configtext('media_videojs/audiocssclass',
52 new lang_string('audiocssclass', 'media_videojs'),
53 new lang_string('configaudiocssclass', 'media_videojs'), 'video-js'));
55 $settings->add(new admin_setting_configcheckbox('media_videojs/limitsize',
56 new lang_string('limitsize', 'media_videojs'),
57 new lang_string('configlimitsize', 'media_videojs'), 1));