Commit a7de9233 authored by Son Nguyen's avatar Son Nguyen Committed by Aaron Wells

Remove mahara flashplayer. Bug #1397131

behatnotneeded

Change-Id: Ia4f0652fbfb96f6154e7f29747f181f682523688
parent 892df189
The MIT License
Copyright (c) 2008, 2009 Flowplayer Oy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Flowplayer in Mahara
=====================
Website: http://flowplayer.org/plugins/streaming/audio.html
Version: 3.2.11
This flash mp3 player is used by the internal media blocktype.
Changes:
* None
Version history:
3.2.10
------
- #575 send the start event after begin
- #569 if the playlist has been reset but the audio has been already buffered, set the duration and start event.
- #582 fixes for metadata events dispatching in playlists and when replaying same audio item, cleanup duration updating once download has completed,
fixes for clearing the previous cover image display.
- #611 close the channel and sound on stream not found errors.
- #614 fixes for auto buffering issues where a sound channel may not be active yet.
3.2.9
-----
- #501 fixes to dispatch start state correctly.
- #501 use the sound channel to listen for a complete event to finish correctly.
3.2.8
-----
Fixes:
- fixed to dispatch onStart only once
- the duration is now available in the clip when onStart is dispatched
- audio duration was estimated to be too long, issue #323
- duration not available in the onMetaData event, issue #278
- now dispatches error 200 when the mp3 URL does not respond, issue #334
- #428 regression issue calculating the initial duration, was returning too small for the duration tracker.
- #428 when fully downloaded ID3 is resent and update the duration.
- #475 if we have a clip duration set, dispatch start or else wait until the duration is estimated. Start required for beginning duration tracker.
3.2.3
-----
Fixes:
- Fixed to dispatch onStart when the mp3 file does not contain a id3 tag
- Now uses baseUrl if that is given
3.2.2
-----
Fixes:
- Now can download cover images from different domains without cross-domain security errors
3.2.1
-----
Changes:
- Supports cover images via a 'coverImage' configuration option
- now works with securestreaming plugin
Fixes:
- fix to work properly if accessing the ID3 tag fails because Flash security prevents it
- works better if the file does not have the ID3 tag
3.2.0
-----
- added a new plugin event "onDuration" that is dispatched whenever a new duration value is estimated and the
clip.duration value was changed. The new duration value is passed as event argument.
3.1.3
-----
- added timeProvider setter as required by the changed StreamProvider interface
- now checks the crossdomain.xml file to allow reading of the ID3 tag when this file is present in the domain
hosting the audio file
3.1.2
-----
- compatible with the new ConnectionProvider and URLResolver API
3.1.1
-----
Fixes:
- calling closeBuffering() after the audio had finished caused an exception
3.1.0
-----
- compatibility with core 3.1 StreamProvider interface
3.0.4
-----
- fixed to stop audio when stop() is called
3.0.3
-----
- changed to recalculate the duration until the end of the file has been reached,
this is needed to correctly estimate the duration of variable bitrate MP3's
3.0.2
-----
- dispatches the LOAD event when initialized (needed for flowplayer 3.0.2 compatibility)
- fixed crashes of Mac Safari when navigating out of a page that had a playing audio
3.0.1
-----
- First public beta release
......@@ -305,70 +305,6 @@ class PluginBlocktypeInternalmedia extends MaharaCoreBlocktype {
}
public static function flow_player($artefact, $block, $width, $height) {
static $count = 0;
$count++;
$extn = $artefact->get('oldextension');
$id = 'blocktype_internalmedia_flow_' . time() . $count;
$url = self::get_download_link($artefact, $block);
$url = parse_url($url, PHP_URL_PATH) . '?' . parse_url($url, PHP_URL_QUERY);
$escapedurl = str_replace('&', '%26', $url); // Flash needs these escaped
$baseurlpath = parse_url(get_config('wwwroot'), PHP_URL_PATH);
$baseurl = $baseurlpath . 'artefact/file/blocktype/internalmedia/';
$playerurl = $baseurl . 'mahara-flashplayer/mahara-flashplayer.swf';
$filesize = round($artefact->get('size') / 1000000, 2) . 'MB';
$autohide = 'true';
$type = '';
$audio = '';
$buffering = 'true';
if ($extn == 'mp3') {
$height = 25; // only show the controls
$autohide = 'false';
$type = 'type: "audio",'; // force the player to use the audio plugin
$buffering = 'false'; // without this autoPlay will also be set to true
$audio = ', audio: {
url: "' . $baseurl . 'flowplayer.audio/flowplayer.audio-3.2.11.swf"
}';
}
$html = '<span class="blocktype_internalmedia_mp3" id="' . $id . '" style="display:block;width:'.$width.'px;height:'.$height.'px;"></span>';
$html .= '<span id="' . $id . '_h">' . get_string('flashanimation', 'blocktype.file/internalmedia') . '</span>';
$html .= '<div class="media-download content-text"><span class="icon icon-download left" role="presentation" aria-hidden="true"></span><span class="sr-only">'.get_string('Download', 'artefact.internal').'</span><a class="media-link text-small" href="' . $url . '">' . hsc($artefact->get('title')) . '</a>';
$html .= '<span class="text-midtone text-small"> ['.$filesize.'] </span></div>';
$html .= '<script type="application/javascript">
flowplayer("'.$id.'", "'.$playerurl.'", {
clip: {
url: "'.$escapedurl.'",
'.$type.'
autoPlay: false,
autoBuffering: '.$buffering.',
scaling: "fit",
},
plugins: {
controls: {
url: "mahara-flashplayer.controls.swf",
play:true,
volume:true,
mute:true,
time:false,
stop:false,
playlist:false,
fullscreen:true,
scrubber: true,
autoHide: '.$autohide.'
}'.$audio.'
}
}).load();
addElementClass("' . $id . '_h", "hidden");
</script>
';
return $html;
}
public static function real_player($artefact, $block, $width, $height) {
$url = self::get_download_link($artefact, $block);
......@@ -556,14 +492,10 @@ class PluginBlocktypeInternalmedia extends MaharaCoreBlocktype {
}
define('BLOCKTYPE_INTERNALMEDIA_JS_INCLUDED', true);
if ($asarray) {
return array(get_config('wwwroot').'artefact/file/blocktype/internalmedia/mahara-flashplayer/mahara-flashplayer.js',
get_config('wwwroot') . 'artefact/file/blocktype/internalmedia/swfobject.js',
get_config('wwwroot') . 'artefact/file/blocktype/internalmedia/videojs/video.min.js',
return array(get_config('wwwroot') . 'artefact/file/blocktype/internalmedia/videojs/video.min.js',
);
}
return '<script src="'.get_config('wwwroot').'artefact/file/blocktype/internalmedia/mahara-flashplayer/mahara-flashplayer.js"></script>
<script src="'.get_config('wwwroot') . 'artefact/file/blocktype/internalmedia/videojs/video.min.js'.'"></script>
<script src="' . get_config('wwwroot') . 'artefact/file/blocktype/internalmedia/swfobject.js" type="application/javascript"></script>';
return '<script src="'.get_config('wwwroot') . 'artefact/file/blocktype/internalmedia/videojs/video.min.js'.'"></script>';
}
public static function default_copy_type() {
......
mahara-flashplayer
=====================
This is a modified version of FlowPlayer. In accordance with the FlowPlayer
GPL license, it has been renamed to "mahara-flashplayer" for distribution.
Website: https://git.mahara.org/groups/mahara-flashplayer
Version: 3.2.18
This flash video player is used by the Mahara internal media blocktype. The
primary modification made from the original project is that it has been
modified to disallow absolute URLs in configuration parameters, because it is
intended only to display internally hosted media.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment