]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix the audio player
authorArtur Duque de Souza <asouza@kde.org>
Tue, 22 Feb 2011 14:15:58 +0000 (11:15 -0300)
committerArtur Duque de Souza <asouza@kde.org>
Tue, 22 Feb 2011 14:15:58 +0000 (11:15 -0300)
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 <asouza@kde.org>
plugins/audioplayer/audioplayer.js

index 07e9f5e23ee22999bd5fdc1255c322fab3a72319..817cc7d374c6e5a7c7bb6b3877bbad8d543d371e 100644 (file)
@@ -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');