From: Artur Duque de Souza Date: Tue, 22 Feb 2011 14:15:58 +0000 (-0300) Subject: Fix the audio player X-Git-Tag: v3.0~267^2~564^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=09cbe1301ebaca8ea82c2dad93d98faf568a01bb;p=nextcloud-server.git Fix the audio player If we don't use the ".php" extension the audio won't play because it cant find the file. Signed-off-by: Artur Duque de Souza --- diff --git a/plugins/audioplayer/audioplayer.js b/plugins/audioplayer/audioplayer.js index 07e9f5e23ee..817cc7d374c 100644 --- a/plugins/audioplayer/audioplayer.js +++ b/plugins/audioplayer/audioplayer.js @@ -1,7 +1,7 @@ OC_AudioPlayer = new Object(); OC_AudioPlayer.playAudio = function(dir, file, type) { - var path = WEBROOT + '/files/api?action=get&dir='+encodeURIComponent(dir)+'&file='+encodeURIComponent(file); + var path = WEBROOT + '/files/api.php?action=get&dir='+encodeURIComponent(dir)+'&file='+encodeURIComponent(file); OC_AudioPlayer.audioFrame = document.createElement('div'); OC_AudioPlayer.audioFrame.setAttribute('id', 'audioframe');