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>
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');