Browse Source

Fixing jplayer in order to listen mp3 files see #4491

Julio Montoya 12 năm trước cách đây
mục cha
commit
ad51f08450
1 tập tin đã thay đổi với 5 bổ sung4 xóa
  1. 5 4
      main/document/document.php

+ 5 - 4
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++;