Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401]

   1  <?php
   2  // This file is part of Moodle - http://moodle.org/
   3  //
   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.
   8  //
   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.
  13  //
  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/>.
  16  
  17  /**
  18   * Settings file for plugin 'media_videojs'
  19   *
  20   * @package   media_videojs
  21   * @copyright 2016 Marina Glancy
  22   * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  23   */
  24  
  25  defined('MOODLE_INTERNAL') || die();
  26  
  27  if ($ADMIN->fulltree) {
  28  
  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,media_source,.f4v,.flv',
  33          array('onlytypes' => array('video', 'web_video', 'html_video', 'media_source'))));
  34  
  35      $settings->add(new admin_setting_filetypes('media_videojs/audioextensions',
  36          new lang_string('audioextensions', 'media_videojs'),
  37          new lang_string('configaudioextensions', 'media_videojs'),
  38          'html_audio',
  39          array('onlytypes' => array('audio', 'web_audio', 'html_audio'))));
  40  
  41      $settings->add(new admin_setting_configcheckbox('media_videojs/youtube',
  42          new lang_string('youtube', 'media_videojs'),
  43          new lang_string('configyoutube', 'media_videojs'), 1));
  44  
  45      $settings->add(new admin_setting_configtext('media_videojs/videocssclass',
  46          new lang_string('videocssclass', 'media_videojs'),
  47          new lang_string('configvideocssclass', 'media_videojs'), 'video-js'));
  48  
  49      $settings->add(new admin_setting_configtext('media_videojs/audiocssclass',
  50          new lang_string('audiocssclass', 'media_videojs'),
  51          new lang_string('configaudiocssclass', 'media_videojs'), 'video-js'));
  52  
  53      $settings->add(new admin_setting_configcheckbox('media_videojs/limitsize',
  54          new lang_string('limitsize', 'media_videojs'),
  55          new lang_string('configlimitsize', 'media_videojs'), 1));
  56  }