Block mp3 downloads

alt=
DannyA
@dannya
10 years ago
584 posts
I assume this still allows you to play (stream)the file in the player. What protocol is used to stream? I assume its not progressive and not stored on the user's drive.

Does this still allow the user to download files after purchase?

Is that download link hashed?

How long is the key valid?

Does the same restriction apply if you are selling other media types (wav, aiff, mov, flac, avi, etc...)
updated by @dannya: 05/22/14 01:55:17AM
brian
@brian
10 years ago
10,148 posts
andersda:
I assume this still allows you to play (stream)the file in the player. What protocol is used to stream? I assume its not progressive and not stored on the user's drive.

Yes - it prevents MP3's from being downloaded via the "download" view - it only allows streaming vie the "stream" view, which is a normal file stream on port 80. If the user has a tool to store it on their drive, they can (since it has to be sent to them to be played). Just like always, there is no 100% secure way to prevent someone from downloading and saving a file. This is why in JR, when a file is for sale, only the sample is streamed - not the whole song.

Quote:
Does this still allow the user to download files after purchase?

Yes - that happens through vault_download, which is a separate function that is part of FoxyCart.

Quote:
Is that download link hashed?

How long is the key valid?

no it's not hashed.

Quote:
Does the same restriction apply if you are selling other media types (wav, aiff, mov, flac, avi, etc...)

it works the same for everything that is sold.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
10 years ago
584 posts
brian:
andersda:
I assume this still allows you to play (stream)the file in the player. What protocol is used to stream? I assume its not progressive and not stored on the user's drive.

Yes - it prevents MP3's from being downloaded via the "download" view - it only allows streaming vie the "stream" view, which is a normal file stream on port 80. If the user has a tool to store it on their drive, they can (since it has to be sent to them to be played). Just like always, there is no 100% secure way to prevent someone from downloading and saving a file. This is why in JR, when a file is for sale, only the sample is streamed - not the whole song.


How do do you specify a different version for the sample? Are artist supposed to upload a separate sample? or is there a way to create a sample automatically?(either by cropping, reducting quality, or inserting audible tones/watermarks)
brian
@brian
10 years ago
10,148 posts
The sample is automatically created when a price is added to the audio item (look in your audio module -> global config to set the sample length).

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
10 years ago
584 posts
I don't have that setting in 'audio support-->global config'. it only shows 'block mp3 downloads' and 'max conversion workers'.

Additionally, my audio files are in 3 different modules (based off audio). We don't use the price field. The price is stored in a different module/table. How can I trigger that the creation of the sample.
brian
@brian
10 years ago
10,148 posts
Since everything you are doing is custom, make sure going forward you post in the "Jamroom Developers" if you can - that will help us out.

The function you want is jrAudio_create_sample() in the jrAudio/include.php file - have a dev check that out and they will see how it works.

Thanks!


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

updated by @brian: 04/17/14 01:24:47PM
alt=
DannyA
@dannya
10 years ago
584 posts
perfect thanks

Tags