芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/www/cepali/media/player/swf/classes/plugin.php
. /** * Main class for plugin 'media_swf' * * @package media_swf * @copyright 2016 Marina Glancy * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); /** * Media player for Flash SWF files. * * This player contains additional security restriction: it will only be used * if you add option core_media_player_swf::ALLOW = true. * * Code should only set this option if it has verified that the data was * embedded by a trusted user (e.g. in trust text). * * @package media_swf * @copyright 2016 Marina Glancy * @author 2011 The Open University * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class media_swf_plugin extends core_media_player { public function embed($urls, $name, $width, $height, $options) { self::pick_video_size($width, $height); $firsturl = reset($urls); $url = $firsturl->out(true); $fallback = core_media_player::PLACEHOLDER; $output = <<
$fallback
OET; return $output; } public function get_supported_extensions() { return array('.swf'); } public function list_supported_urls(array $urls, array $options = array()) { // Not supported unless the creator is trusted. if (empty($options[core_media_manager::OPTION_TRUSTED])) { return array(); } return parent::list_supported_urls($urls, $options); } /** * Default rank * @return int */ public function get_rank() { return 30; } }