Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Turn off the autoloading of sound files

  • Loading branch information...
commit 565bcdfbda74373543ab85d3833f783881191508 1 parent 92ac9fe
moodler authored
View
6 filter/mediaplugin/filter.php
@@ -27,13 +27,11 @@ function mediaplugin_filter($courseid, $text) {
$replace .= " <param name=\"movie\" value=\"$CFG->wwwroot/filter/mediaplugin/mp3player.swf?src=\\2.mp3\" />";
$replace .= ' <param name="quality" value="high" />';
$replace .= ' <param name="bgcolor" value="#333333" />';
- $replace .= ' <param name="flashvars" value="bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&i
- conColour=000000&iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&" />';
+ $replace .= ' <param name="flashvars" value="bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&waitForPlay=yes" />';
$replace .= " <embed src=\"$CFG->wwwroot/filter/mediaplugin/mp3player.swf?src=\\2.mp3\" ";
$replace .= " quality=\"high\" bgcolor=\"#333333\" width=\"90\" height=\"15\" name=\"mp3player\" ";
$replace .= ' type="application/x-shockwave-flash" ';
- $replace .= ' flashvars="bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&ic
- onOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&" ';
+ $replace .= ' flashvars="bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&waitForPlay=yes" ';
$replace .= ' pluginspage="http://www.macromedia.com/go/getflashplayer">';
$replace .= '</embed>';
$replace .= '</object>&nbsp;';
View
BIN  filter/mediaplugin/mp3player.fla.zip
Binary file not shown
View
BIN  filter/mediaplugin/mp3player.swf
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.