Free streaming audio player with download option for full loseless .flac file.
I DO NOT want recommendations for audio hosting sites. I am done with that. Too much garbage and too many restrictions. That is why I got some webhosting and installed Concrete5 in the first place.
If there is no addon, block, plugin or whatever that does this, can it be coded in HTML5 and added to my site that way? If so, how do I do this?
Alternatively, if I upload the .flac files into the Incoming folder via FTP, can I access them in Concrete's File Manager and just slop a link down for them? Throw out the preview ability?
I appreciate your help, and I am enjoying my Concrete install so far! Thank you for this awesome CMS and all your hard work!
OK, so here's the deal. You will think Firefox will support .mp3. It does not. You have to have some sort of decoder for it. So the <audio> tag will work, as it accepts .mp3, but you won't be able to play it in Firefox. Your best course of action, if you want to do something like I want to do, seems to be this.
Add a new Block, select HTML, input this code:
<audio src="/relative_path_to_audio/audio_file_name.ogg" type="audio/ogg" controls="controls">
<p>Your browser does not support the audio element</p>
<a href="http://direct_path_to_audio/audio_file_name.flac download="audio_file_name.flac">Download audio_file_name</a>
You can use 128 or 192 for your .ogg, and keep the loseless file as it is for downloading. If you don't want downloading, don't add anything after </audio> Furthermore if you want users to be able to preview a low quality file, and then purchase the higher quality file, you can place the link to the purchase page after the </audio> tag.
You may also be able to use the advanced code in Add Block/Content, but be aware that you need to change your Settings/Rich Text Editor to Advanced or Office. I am using Office right now, it has an embed media control. You can edit the HTML code there, adding and updating as needed.
I'll add more later if I have anything to add.
EDIT: Your only concern for .ogg is to be compatible with Opera. .mp3 should work fine in IE Chrome and FF using the audio tag.
Also, you can definitely upload flac files and provide a download link using the core file block. You will probably have to add flac to the Allowed File Types list in settings at [your site]/index.php/dashboard/system/permissions/file_types/ in order to upload the file to the file manager.
I did try one of the free HTML5 players, but it never showed up in my Add Block when installed. So I gave up on it - sorry.
Still learning things, but my site is shaping up nicely. Thank you!