diff options
author | ente <ente@baer.rwth-aachen.de> | 2010-12-05 18:30:13 +0100 |
---|---|---|
committer | ente <ente@baer.rwth-aachen.de> | 2010-12-05 18:30:13 +0100 |
commit | 336f21f0aa5d62ece5610528dc52e84f4f46f5f4 (patch) | |
tree | ee365bd5ea03a3b3522bb4077a081089c81a2c3c /plugins | |
parent | 7e83db10d55334da9981d2fa2958d03902bf0b47 (diff) | |
download | nextcloud-server-336f21f0aa5d62ece5610528dc52e84f4f46f5f4.tar.gz nextcloud-server-336f21f0aa5d62ece5610528dc52e84f4f46f5f4.zip |
Use correct attribute values for audio tag.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/audioplayer/audioplayer.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/audioplayer/audioplayer.js b/plugins/audioplayer/audioplayer.js index 2cf4133d818..07e9f5e23ee 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); |