Convert mp3 to 128 kbps for onsite player but allow original 256 kbps for download and sale

MySong
MySong
@mysong
10 years ago
155 posts
Goal is to upload a 256 kbps MP3 version of the songs. It would then be converted an 128 kbps MP3 version to be streamed on the onsite player (either full song for non paid, or sample for paid), this way it would save upload time and bandwidth for onsite streams. Yet if a person wanted to download it (a non-paid song via download button, or a paid song via the foxycart checkout) he would be able to retrieve the original uploaded 256 kbps MP3 version so he can have a better quality track.

In Audio Support > Global Settings > Conversion format MP3 is selected
In Audio Support > Quota Settings > Convert To MP3 is selected at 128.

I believe that if the original upload is an MP4, WAV, WMA etc. then you get original file during download. However if original file was a 256 MP3 then by download you get the converted 128 version.

When it comes to paid songs I have not been able to test since foxycart is still in sandbox for us. Although it does say the full, correct file size on the pages purchase tag; (Purchase: Mp3, 1.2MB, 00:00:38).

Thanks for the help.
updated by @mysong: 07/11/14 09:38:52AM
brian
@brian
10 years ago
10,148 posts
A user always gets the original file when they pay for it (i.e. the 256kbps MP3).

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
MySong
MySong
@mysong
10 years ago
155 posts
Should the same apply to downloads, when enabled. That user should get original file as opposed to converted version?

Thanks,
brian
@brian
10 years ago
10,148 posts
nanach:
Should the same apply to downloads, when enabled. That user should get original file as opposed to converted version?

Thanks,

Yes - if the item is not for sale, the direct download link will download the original.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net