Skip to content

Commit

Permalink
MDL-26697 multiple media filtering fixes and improvements
Browse files Browse the repository at this point in the history
Bug fixes:
    * fixed broken flash resizing via URL
    * upgraded Flowplayer
    * fixed invalid context in format_text()
    * all media related CSS moved from themes to filter and resources
    * fixed automatic pdf resizing in resources

Changes:
    * reworked filter_mediaplugin system settings - grouped by player type instead of individual extensions, added more information
    * improved regex url matching
    * removed old unused players, Eolas fix and UFO embedding
    * image embedding moved to filter_urltolink
    * new Flowplayer embedding API
    * accessibility and compatibility tweaks in Flowplayer
    * SWF embedding now works only in trusted texts, it is now enabled by default (works everywhere if "Allow EMBED and OBJECT tags" enabled)
    * new default video width and height

New features:
    * automatic Flash video resizing using information from video metadata
    * Flash HD video support (*.f4v)
    * Flash video embedding with HTML5 fallback - compatible with iOS and other mobile devices
    * Vimeo embedding
    * no-cookie YouTube site supported
    * HTML 5 audio and video with multiple source URLs and QuickTime fallback
    * more video and audio extensions in filelib.php
    * MP3 player colours customisable via CSS in themes
    * nomediaplugin class in a tag prevents media embedding
  • Loading branch information
skodak committed Mar 12, 2011
1 parent c096042 commit fcd2cba
Show file tree
Hide file tree
Showing 58 changed files with 3,147 additions and 1,255 deletions.
47 changes: 47 additions & 0 deletions filter/mediaplugin/db/upgrade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?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/>.

/**
* Manual authentication plugin upgrade code
*
* @package filter
* @subpackage mediaplugin
* @copyright 2011 Petr Skoda (http://skodak.org)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

/**
* @param int $oldversion the version we are upgrading from
* @return bool result
*/
function xmldb_filter_mediaplugin_upgrade($oldversion) {
global $CFG, $DB, $OUTPUT;

if ($oldversion < 2011030900) {
unset_config('filter_mediaplugin_enable_img'); // migrated to filter_urltolink
unset_config('filter_mediaplugin_enable_ram'); // --> rm
unset_config('filter_mediaplugin_enable_rpm'); // --> rm
unset_config('filter_mediaplugin_enable_ogg'); // --> html5audio
unset_config('filter_mediaplugin_enable_ogv'); // --> html5video
unset_config('filter_mediaplugin_enable_avi'); // --> wmp
unset_config('filter_mediaplugin_enable_wmv'); // --> wmp
unset_config('filter_mediaplugin_enable_mov'); // --> qt
unset_config('filter_mediaplugin_enable_mpg'); // --> qt
upgrade_plugin_savepoint(true, 2011030900, 'filter', 'mediaplugin');
}

return true;
}
80 changes: 0 additions & 80 deletions filter/mediaplugin/eolas_fix.js

This file was deleted.

Loading

0 comments on commit fcd2cba

Please sign in to comment.