|All requests||>||Laravel stream mp3 audio||>||Request new recommendation||>||Featured requests||>||No recommendations|
by Hezekiah Kigathi - 28 days ago (2021-08-25)
I have an audio streaming website where users upload their music for sale. The problem is the music can be downloaded without purchasing when it plays on the frontend. I need the music to playable but not easily downloadable. I am using Laravel.
As far as I know, all audio players require exposing the audio streams that can play on the Web.
If you want to sell complete music songs, there is an alternative solution.
You can create samples that play only part of a song, for instance, 20 seconds.
Then you can add an audio sample at the end of that short sample with a voice saying something like: if you would like to listen to the complete song, you can purchase it for $X by clicking the Buy button.
For the actual player, you can use an HTML 5 based audio player like the one used in the Lately in PHP podcast to play the short song sample to all visitors of the song page.
Can you reply here to let me know if this solves your problem?