I'm trying to stream music to play it afterwards.
This is not a download but a direct stream of mp3 files from the source file to an <audio>
tag on another page.
The code I've used in the .htaccess file is
AddType audio/mpeg3 .mp3
AddType audio/mp3 .mp3
AddType audio/x-mpeg3 .mp3
I have 2 ways to solve my problem, so I have 2 questions
1. How can I tell my server to stream an MP3-File as audio/mpeg3 and not as text/html (in case 1) ?
2. How can I buffer the audio stream (in case 2 or 3) so the visitor hasn't to wait 30+ seconds for it?
okay, sorry. way 1 DO work. At least if you don't use the FileMatch rules in the .htaccess file to lock every file or directory besides images or pages and forget to include audio files to the allow rule.
one facepalm is not enough