mirror of
https://github.com/moodle/moodle.git
synced 2025-01-30 03:58:34 +01:00
MDL-70905 admin: Change default player dimensions to 360p.
This commit is contained in:
parent
e29b256438
commit
af560d454f
@ -254,10 +254,10 @@ if ($hassiteconfig) {
|
||||
$temp->add(new admin_setting_heading('managemediaplayerscommonheading', new lang_string('commonsettings', 'admin'), ''));
|
||||
$temp->add(new admin_setting_configtext('media_default_width',
|
||||
new lang_string('defaultwidth', 'core_media'), new lang_string('defaultwidthdesc', 'core_media'),
|
||||
400, PARAM_INT, 10));
|
||||
640, PARAM_INT, 10));
|
||||
$temp->add(new admin_setting_configtext('media_default_height',
|
||||
new lang_string('defaultheight', 'core_media'), new lang_string('defaultheightdesc', 'core_media'),
|
||||
300, PARAM_INT, 10));
|
||||
360, PARAM_INT, 10));
|
||||
$ADMIN->add('mediaplayers', $temp);
|
||||
|
||||
// Convert plugins.
|
||||
|
@ -93,7 +93,7 @@ class filter_mediaplugin_testcase extends advanced_testcase {
|
||||
'<a href="https://www.youtube.com/watch?v=uUhWl9Lm3OM">Valid link</a></pre><pre style="color: rgb(0, 0, 0); line-height: normal;">';
|
||||
$paddedurl = str_pad($originalurl, 6000, 'z');
|
||||
$validpaddedurl = '<p>Some text.</p><pre style="color: rgb(0, 0, 0); line-height: normal;"><span class="mediaplugin mediaplugin_youtube">
|
||||
<iframe title="Valid link" width="400" height="300"
|
||||
<iframe title="Valid link" width="640" height="360"
|
||||
src="https://www.youtube.com/embed/uUhWl9Lm3OM?rel=0&wmode=transparent" frameborder="0" allowfullscreen="1"></iframe>
|
||||
</span></pre><pre style="color: rgb(0, 0, 0); line-height: normal;">';
|
||||
$validpaddedurl = str_pad($validpaddedurl, 6000 + (strlen($validpaddedurl) - strlen($originalurl)), 'z');
|
||||
|
Loading…
x
Reference in New Issue
Block a user