Fixing jplayer in order to listen mp3 files see #4491

skala
Julio Montoya 13 years ago
parent d2e79e04d6
commit ad51f08450
  1. 9
      main/document/document.php

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

Loading…
Cancel
Save