From 336f21f0aa5d62ece5610528dc52e84f4f46f5f4 Mon Sep 17 00:00:00 2001 From: ente Date: Sun, 5 Dec 2010 18:30:13 +0100 Subject: [PATCH] Use correct attribute values for audio tag. --- plugins/audioplayer/audioplayer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/audioplayer/audioplayer.js b/plugins/audioplayer/audioplayer.js index 2cf4133d81..07e9f5e23e 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/open_file.php?dir='+encodeURIComponent(dir)+'&file='+encodeURIComponent(file); + var path = WEBROOT + '/files/api?action=get&dir='+encodeURIComponent(dir)+'&file='+encodeURIComponent(file); OC_AudioPlayer.audioFrame = document.createElement('div'); OC_AudioPlayer.audioFrame.setAttribute('id', 'audioframe'); @@ -17,10 +17,10 @@ OC_AudioPlayer.playAudio = function(dir, file, type) { // alert("Native playing of '"+type+"' format is not supported by your browser."); // return; // } - audio.setAttribute('controls', 'true'); + audio.setAttribute('controls', 'controls'); audio.setAttribute('preload', 'auto'); - audio.setAttribute('autoplay', 'true'); - audio.setAttribute('autobuffer', 'true'); + audio.setAttribute('autoplay', 'autoplay'); + audio.setAttribute('autobuffer', 'autobuffer'); source.setAttribute('src', path); source.setAttribute('type', type);