From 09cbe1301ebaca8ea82c2dad93d98faf568a01bb Mon Sep 17 00:00:00 2001 From: Artur Duque de Souza Date: Tue, 22 Feb 2011 11:15:58 -0300 Subject: [PATCH] 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 --- plugins/audioplayer/audioplayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); -- 2.39.5