From ad51f08450314bfc767c6eebdbbf361dd6077086 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 24 May 2012 16:53:31 +0200 Subject: [PATCH] Fixing jplayer in order to listen mp3 files see #4491 --- main/document/document.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main/document/document.php b/main/document/document.php index c217247643..fee203a216 100644 --- a/main/document/document.php +++ b/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++;