diff --git a/plugins/audioplayer/audioplayer.js b/plugins/audioplayer/audioplayer.js
index 2cf4133d818f89558e495e8955e9ada998499678..07e9f5e23ee22999bd5fdc1255c322fab3a72319 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);