|
@@ -489,23 +489,24 @@ foreach ($docs_and_folders as $file) {
|
|
|
|
|
|
if ($extension == 'ogg') {
|
|
if ($extension == 'ogg') {
|
|
$extension = 'oga';
|
|
$extension = 'oga';
|
|
- }
|
|
|
|
|
|
+ }
|
|
//$("#jplayer_inspector_'.$count.'").jPlayerInspector({jPlayer:$("#jquery_jplayer_'.$count.'")});
|
|
//$("#jplayer_inspector_'.$count.'").jPlayerInspector({jPlayer:$("#jquery_jplayer_'.$count.'")});
|
|
$jquery .= ' $("#jquery_jplayer_'.$count.'").jPlayer({
|
|
$jquery .= ' $("#jquery_jplayer_'.$count.'").jPlayer({
|
|
ready: function() {
|
|
ready: function() {
|
|
$(this).jPlayer("setMedia", {
|
|
$(this).jPlayer("setMedia", {
|
|
'.$extension.' : "'.$document_data['direct_url'].'"
|
|
'.$extension.' : "'.$document_data['direct_url'].'"
|
|
});
|
|
});
|
|
- },
|
|
|
|
|
|
+ },
|
|
play: function() { // To avoid both jPlayers playing together.
|
|
play: function() { // To avoid both jPlayers playing together.
|
|
$(this).jPlayer("pauseOthers");
|
|
$(this).jPlayer("pauseOthers");
|
|
},
|
|
},
|
|
//errorAlerts: true,
|
|
//errorAlerts: true,
|
|
//warningAlerts: true,
|
|
//warningAlerts: true,
|
|
swfPath: "'.$js_path.'jquery-jplayer",
|
|
swfPath: "'.$js_path.'jquery-jplayer",
|
|
- supplied: "m4a, oga, mp3, ogg, wav",
|
|
|
|
|
|
+ //supplied: "m4a, oga, mp3, ogg, wav",
|
|
|
|
+ supplied: "'.$extension.'",
|
|
wmode: "window",
|
|
wmode: "window",
|
|
- //solution: "flash, html", // Do not change this setting otherwise
|
|
|
|
|
|
+ solution: "flash, html", // Do not change this setting
|
|
cssSelectorAncestor: "#jp_container_'.$count.'",
|
|
cssSelectorAncestor: "#jp_container_'.$count.'",
|
|
}); '."\n\n";
|
|
}); '."\n\n";
|
|
$count++;
|
|
$count++;
|