mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 05:25:08 +02:00
MDL-29624 Media embedding system : phpdoc tweaks.
This commit is contained in:
parent
e1e3fa217f
commit
83c9d449e0
@ -35,26 +35,18 @@
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
if (!defined('CORE_MEDIA_VIDEO_WIDTH')) {
|
||||
/**
|
||||
* Default video width if no width is specified; some players may do something
|
||||
* more intelligent such as use real video width.
|
||||
*
|
||||
* May be defined in config.php if required.
|
||||
*/
|
||||
// Default video width if no width is specified; some players may do something
|
||||
// more intelligent such as use real video width.
|
||||
// May be defined in config.php if required.
|
||||
define('CORE_MEDIA_VIDEO_WIDTH', 400);
|
||||
}
|
||||
if (!defined('CORE_MEDIA_VIDEO_HEIGHT')) {
|
||||
/**
|
||||
* Default video height. May be defined in config.php if required.
|
||||
*/
|
||||
// Default video height. May be defined in config.php if required.
|
||||
define('CORE_MEDIA_VIDEO_HEIGHT', 300);
|
||||
}
|
||||
if (!defined('CORE_MEDIA_AUDIO_WIDTH')) {
|
||||
/**
|
||||
* Default audio width if no width is specified.
|
||||
*
|
||||
* May be defined in config.php if required.
|
||||
*/
|
||||
// Default audio width if no width is specified.
|
||||
// May be defined in config.php if required.
|
||||
define('CORE_MEDIA_AUDIO_WIDTH', 300);
|
||||
}
|
||||
|
||||
|
@ -2942,7 +2942,7 @@ class core_media_renderer extends plugin_renderer_base {
|
||||
protected function get_players() {
|
||||
global $CFG;
|
||||
|
||||
// Save time by only building the list once
|
||||
// Save time by only building the list once.
|
||||
if (!$this->players) {
|
||||
// Get raw list of players.
|
||||
$players = $this->get_players_raw();
|
||||
|
@ -42,7 +42,7 @@ class medialib_testcase extends advanced_testcase {
|
||||
global $CFG;
|
||||
parent::setUp();
|
||||
|
||||
// Reset CFG
|
||||
// Reset CFG.
|
||||
$this->resetAfterTest(true);
|
||||
|
||||
// Consistent initial setup: all players disabled.
|
||||
|
Loading…
x
Reference in New Issue
Block a user