MP3 preview in PHP without showing url of mp3

This will load a mp3 file server side, and stream a portion of it to the browser.  It is useful for giving a sound preview of limited duration, without showing the original url of the mp3 file.  See comments in mp3_preview.php for where to adjust the preview playing time, and how where to start the preview in relation to the beginning of the file.

Works OK in all my browsers except IE.... now there's a surprise.

 

To test, just unzip and upload everything to a test directory on your server, and load mp3_preview.php in your browser. This zip file includes the entire get ID3 library for your amusement purposes, but the entire library is not required for the purposes of this demo.

MP3-Preview.zip · 8.6M · 387 downloads
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 22 Jul 2012

Hahaha. thanks man. This is very helpful xD

Quote · 22 Jul 2012

is that for the sounds module or store?

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 23 Jul 2012

It is merely to show how to stream a snippet of an mp3 file to the client browser without giving the client a way to download the original mp3.  This extracts and streams the snippet on-the-fly and does not require a secondary preview file.

Yes, the intent of this would be for a way to preview a portion of a music file that was for sale without showing the original sound file to snooper, or ripper programs. 

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 23 Jul 2012

Someone thinks my idea was awesome Laughing jejeje xD Gosh i can't wait to finish Bacholors in Informational Technology so I can do all this magical stuff.. >.< i got soo many ideas.. But thanks   .. 

This will come in handy.. :D

Quote · 23 Jul 2012

Which idea was that?

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 23 Jul 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.