Files
moodle-media_moeplayer/settings.php
T
王阳 ce4b31470c 初始提交:MoePlayer Moodle media 插件
- media_moeplayer_plugin 接管 mp4/m4v/mov/webm/ogv/m3u8/flv/ts,rank=100
- 播放器资源内打包(moeplayer/ 目录),每页一次加载,多视频多实例
- 管理设置:皮肤(默认/红色/西瓜)、默认宽高
- 中英语言包,兼容 Moodle 3.9+(3.x/4.x)
2026-07-21 16:51:21 +08:00

56 lines
1.8 KiB
PHP

<?php
// 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/>.
/**
* 管理设置
*
* @package media_moeplayer
* @copyright MoePlayer 项目(fork 自 ckplayer, www.ckplayer.com)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
if ($ADMIN->fulltree) {
$settings->add(new admin_setting_configselect(
'media_moeplayer/skin',
get_string('skin', 'media_moeplayer'),
get_string('skin_desc', 'media_moeplayer'),
'moeplayer.css',
[
'moeplayer.css' => get_string('skin_default', 'media_moeplayer'),
'moeplayer.red.css' => get_string('skin_red', 'media_moeplayer'),
'moeplayer.ixigua.css' => get_string('skin_ixigua', 'media_moeplayer'),
]
));
$settings->add(new admin_setting_configtext(
'media_moeplayer/width',
get_string('width', 'media_moeplayer'),
get_string('width_desc', 'media_moeplayer'),
'100%',
PARAM_TEXT
));
$settings->add(new admin_setting_configtext(
'media_moeplayer/height',
get_string('height', 'media_moeplayer'),
get_string('height_desc', 'media_moeplayer'),
'480',
PARAM_INT
));
}