mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL32423 import latest flowplayer
This commit is contained in:
parent
668a499d89
commit
afd1c47c10
@ -614,7 +614,7 @@ OET;
|
||||
// note: no need to print "this is flv link" because it is printed automatically if JS or Flash not available
|
||||
|
||||
$output = html_writer::tag('span', $printlink, array('id'=>$id, 'class'=>'mediaplugin mediaplugin_flv'));
|
||||
$output .= html_writer::script(js_writer::function_call('M.util.add_video_player', array($id, rawurlencode($flashurl), $width, $height, $autosize))); // we can not use standard JS init because this may be cached
|
||||
$output .= html_writer::script(js_writer::function_call('M.util.add_video_player', array($id, addslashes_js($flashurl), $width, $height, $autosize))); // we can not use standard JS init because this may be cached
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
@ -1,9 +1,80 @@
|
||||
Version history:
|
||||
|
||||
3.2.9
|
||||
-----
|
||||
- Fixed #490, controlbar background, buffer bar and progress bar colors were all reset to white
|
||||
|
||||
3.2.8
|
||||
-----
|
||||
- Added new property clip.backBufferLength, to be used with FMS 3.5
|
||||
- Adds support for StageVideo. To enable it set clip.accelerated to true.
|
||||
- Tries to reload two times if the stream is not initially found. Also does 3 connection attempts if the connection fails with RTMP.
|
||||
- Support for FMS slow motion
|
||||
- Support for thumbnails in RSS files
|
||||
- Added onPlayStatus clip event handler on NetStreamClient.
|
||||
- Added new clip events for stream switching onSwitchFailed and onSwitchComplete
|
||||
- made it possible to replay a clip using play(<current_clip's_index>)
|
||||
|
||||
Fixes:
|
||||
- fixed to dispatch onStart also when replaying the previous clip, now the JS controlbar again works when replaying
|
||||
- cuepoints were fired multiple times when there is a playlist with several clips. Issue #150.
|
||||
- fixed XML parsing error when metadata's keys contains dashes
|
||||
- backgroundImage css property can now be set to "none" to be removed
|
||||
- fixed the facts that clips in a playlist were cut off by a fraction in the end
|
||||
- fullScreenOnly now works in conjunction with displayTime
|
||||
- JS plugins now handles grouped syntax like flowplayer("a.player" /*...*/ )
|
||||
- JS function setClip can now be used to add listeners on the new Clip
|
||||
- different players with the same configuration stored in a variable can now use JS plugins
|
||||
- using linkUrl now works when calling JS function setClip
|
||||
- zIndex for plugins works fine now, issue #302
|
||||
- onLastSecond was fired twice, issue #300
|
||||
- fixed license key verification on subdomains, issue #318
|
||||
- fixed XSS vulnerability with linkUrls. Thank you Szymon Gruszecki for discovering and reporting this to us. Issue #329.
|
||||
- fixed switch stream api support in paused state. #279.
|
||||
- added switching state properties. #339
|
||||
- fixed the stopBuffering() API method to close the NetConnection and to clear the screen
|
||||
- Issue #355 setup targeting for Flash 10.0 and 10.1 to provide support for Flash 10.0 without Stagevideo requirements.
|
||||
- fixed #364, NetConnection unnecessary closed/reconnected when the netConnection does not change from clip to clip
|
||||
- xss fix for flashembed #357
|
||||
- Issue #384 added links support in context menus with configuration { url: "domain.com", target: "_blank"} which will work in embedded players.
|
||||
- #378, javascript method loadPluginWithConfig is unavailable and non existant. Documentation updated required to remove this and updates for loadPlugin like so
|
||||
this.loadPlugin("content","../flowplayer.content.swf", { html: "test", top: 30 }); or
|
||||
this.loadPlugin("content","../flowplayer.content.swf", { html: "test" }, function() {
|
||||
this.css({ top: 30 });
|
||||
});
|
||||
- #191 send the resume event, and no stop event first before reconnecting due to a connection timeout so the player comes out of a paused state correctly.
|
||||
- #363 pause stream after metadata not beforehand or else no metadata is sent for rtmp clips .
|
||||
- #363 silent seek and force to seek to a keyframe or else video frame will not display initially when paused.
|
||||
- #375 clearing the event listeners when adding new video displays prevents new events being added when the playlist is replaced.
|
||||
- #391 add message argument to connection failure callback required by some connection providers.
|
||||
- #363 add overridable pause to frame for different seek functionality between http and rtmp.
|
||||
- #392 possible fix for extensions with no filetypes like rtmp flv clips, require positive index check.
|
||||
- #395 apply buffer animation status to VOD streams only.
|
||||
- #375 possible fix when replacing the playlist in onBeforeFinish, move replay button to onFinish.
|
||||
- #390 correct seek back to a valid time on invalid seeking while seeking in the buffer.
|
||||
- #404 implement netstreamplayoptions for http streams, resets the stream or start loading a new stream.
|
||||
- fixed an issue in parsing JSON config that contains several comments separated by whitespace
|
||||
- new clip property 'stopLiveOnPause'
|
||||
- #415 regression issue with #395, stop the buffering animation correctly.
|
||||
- #414 problem appears again for very short clips with invalid seek times, make it step back 1 second from the invalid seek time to seek the buffer correctly.
|
||||
- #416 enable seekableOnBegin to enable the scrubbar correctly when autobuffering.
|
||||
- #423 add the . to clip type extension checks or else files with known extension postfixes within them will be chosen instead.
|
||||
- #426 when a plugin width is set to a percentage, x/y is required to be floored or else it will affect the animation engine. specifically for the autohide function.
|
||||
- #430 adding event listeners for netconnection to obtain certain events.
|
||||
- #430 clear buffering status on connection failure.
|
||||
- #430 clear buffering status on stream failure.
|
||||
- #412 check for empty baseurl or else player url is appended and affects the url parsing.
|
||||
- #439 check for all rtmp streaming protocols when checking for rtmp urls.
|
||||
- #442 fix for code error in the javascript api.
|
||||
- #461 when we have a clip base url set, we need the complete clip url sent to play2 for http streams.
|
||||
- #470 check for a playlist when replacing the playlist with an rss feed.
|
||||
- #494 regression issued caused by #412, enable base url correctly.
|
||||
|
||||
3.2.7
|
||||
-----
|
||||
|
||||
- Loads the new controlbar plugin version 3.2.5. No other functional changes.
|
||||
- Loads the new controlbar plugin version 3.2.5.
|
||||
Fixes:
|
||||
- Fixed 'orig' scaling in fullscreen: http://flowplayer.org/forum/2/10274#post-52646
|
||||
|
||||
3.2.6
|
||||
-----
|
||||
|
75
lib/flowplayer/README_audio.txt
Normal file
75
lib/flowplayer/README_audio.txt
Normal file
@ -0,0 +1,75 @@
|
||||
Version history:
|
||||
|
||||
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
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
1003
lib/flowplayer/flowplayer-3.2.8.js
Normal file
1003
lib/flowplayer/flowplayer-3.2.8.js
Normal file
File diff suppressed because it is too large
Load Diff
26
lib/flowplayer/flowplayer-3.2.8.min.js
vendored
Normal file
26
lib/flowplayer/flowplayer-3.2.8.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
lib/flowplayer/flowplayer-3.2.9.swf
Normal file
BIN
lib/flowplayer/flowplayer-3.2.9.swf
Normal file
Binary file not shown.
Binary file not shown.
BIN
lib/flowplayer/flowplayer.audio-3.2.8.swf
Normal file
BIN
lib/flowplayer/flowplayer.audio-3.2.8.swf
Normal file
Binary file not shown.
Binary file not shown.
BIN
lib/flowplayer/flowplayer.controls-3.2.9.swf
Normal file
BIN
lib/flowplayer/flowplayer.controls-3.2.9.swf
Normal file
Binary file not shown.
@ -6,6 +6,6 @@ Our changes:
|
||||
* no splashscreens
|
||||
|
||||
TODO:
|
||||
* switch to git repo once flowplayer decides to use real vesion control system
|
||||
* switch to git repo once flowplayer decides to use better version control system
|
||||
|
||||
skodak
|
@ -1650,9 +1650,9 @@ M.util.load_flowplayer = function() {
|
||||
for(var i=0; i<M.util.video_players.length; i++) {
|
||||
var video = M.util.video_players[i];
|
||||
if (video.width > 0 && video.height > 0) {
|
||||
var src = {src: M.cfg.wwwroot + '/lib/flowplayer/flowplayer-3.2.7.swf', width: video.width, height: video.height};
|
||||
var src = {src: M.cfg.wwwroot + '/lib/flowplayer/flowplayer-3.2.9.swf', width: video.width, height: video.height};
|
||||
} else {
|
||||
var src = M.cfg.wwwroot + '/lib/flowplayer/flowplayer-3.2.7.swf';
|
||||
var src = M.cfg.wwwroot + '/lib/flowplayer/flowplayer-3.2.9.swf';
|
||||
}
|
||||
flowplayer(video.id, src, {
|
||||
plugins: {controls: controls},
|
||||
@ -1739,17 +1739,17 @@ M.util.load_flowplayer = function() {
|
||||
controls.height = 25;
|
||||
controls.time = true;
|
||||
}
|
||||
flowplayer(audio.id, M.cfg.wwwroot + '/lib/flowplayer/flowplayer-3.2.7.swf', {
|
||||
plugins: {controls: controls, audio: {url: M.cfg.wwwroot + '/lib/flowplayer/flowplayer.audio-3.2.2.swf'}},
|
||||
flowplayer(audio.id, M.cfg.wwwroot + '/lib/flowplayer/flowplayer-3.2.9.swf', {
|
||||
plugins: {controls: controls, audio: {url: M.cfg.wwwroot + '/lib/flowplayer/flowplayer.audio-3.2.8.swf'}},
|
||||
clip: {url: audio.fileurl, provider: "audio", autoPlay: false}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (M.cfg.jsrev == -10) {
|
||||
var jsurl = M.cfg.wwwroot + '/lib/flowplayer/flowplayer-3.2.6.js';
|
||||
var jsurl = M.cfg.wwwroot + '/lib/flowplayer/flowplayer-3.2.8.min.js';
|
||||
} else {
|
||||
var jsurl = M.cfg.wwwroot + '/lib/javascript.php?file=/lib/flowplayer/flowplayer-3.2.6.js&rev=' + M.cfg.jsrev;
|
||||
var jsurl = M.cfg.wwwroot + '/lib/javascript.php?file=/lib/flowplayer/flowplayer-3.2.8.min.js&rev=' + M.cfg.jsrev;
|
||||
}
|
||||
var fileref = document.createElement('script');
|
||||
fileref.setAttribute('type','text/javascript');
|
||||
|
@ -280,7 +280,7 @@ function resourcelib_embed_flashvideo($fullurl, $title, $clicktoopen) {
|
||||
}
|
||||
$output = '<div class="resourcecontent resourceflv">';
|
||||
$output .= html_writer::tag('span', $clicktoopen, array('id'=>$id, 'class'=>'resourcemediaplugin resourcemediaplugin_flv', 'title'=>$title));
|
||||
$output .= html_writer::script(js_writer::function_call('M.util.add_video_player', array($id, rawurlencode($fullurl), $width, $height, $autosize)));
|
||||
$output .= html_writer::script(js_writer::function_call('M.util.add_video_player', array($id, addslashes_js($fullurl), $width, $height, $autosize)));
|
||||
$output .= '</div>';
|
||||
|
||||
return $output;
|
||||
|
@ -88,7 +88,7 @@
|
||||
<location>flowplayer</location>
|
||||
<name>Flowplayer</name>
|
||||
<license>GPL</license>
|
||||
<version>3.2.7</version>
|
||||
<version>3.2.9</version>
|
||||
<licenseversion>3</licenseversion>
|
||||
</library>
|
||||
<library>
|
||||
|
Loading…
x
Reference in New Issue
Block a user