Laravel stream mp3 audio: I need to play an mp3 on html without it being downloadable.

Recommend this page to a friend!
  All requests RSS feed  >  Laravel stream mp3 audio  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Laravel stream mp3 audio

Edit

Picture of Hezekiah Kigathi by Hezekiah Kigathi - 17 days ago (2021-08-25)

I need to play an mp3 on html without it being downloadable.

This request is clear and relevant.
This request is not clear or is not relevant.

+1

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.

Ask clarification

1 Recommendation

WavEdit: Manipulate audio files in the WAV format

This recommendation solves the problem.
This recommendation does not solve the problem.

0

Picture of Manuel Lemos by Manuel Lemos Reputation 21335 - 17 days ago (2021-08-25) Comment

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.

https://www.phpclasses.org/blog/post/1063-lately-in-php-podcast-episode-88-part-6.html

Can you reply here to let me know if this solves your problem?


Recommend package
: 
: 
For more information send a message to info at phpclasses dot org.