Streaming MP3s using PHP

Posted on 2006-03-21
Medium Priority
Last Modified: 2008-03-04
Hi there,

I wonder if anyone could point me to an article which shows anyone how to make a streaming mp3 player using php. I'd like an interface that shows what song is playing an the ability to stop/play the stream. The mp3s should play in random order as well.

Question by:rhinez0rz
LVL 49

Expert Comment

ID: 16247705
Why do you need to do this in php?

php is a serverside application, not clientside.

LVL 10

Expert Comment

ID: 16247747
You will need a client side ActiveX to accomplish this. It's quite complicated to do and will only work in IE.
LVL 15

Accepted Solution

Tomeeboy earned 1000 total points
ID: 16248235
See this:
http://www.gieson.com/Library/projects/mp3/  (Demo)
http://www.wimpyplayer.com/ (Script Homepage)

While that's not an article on how to make your own, perhaps that mp3 player will work for what you're wanting to do.  It has a PHP version with MySQL support :)
LVL 16

Expert Comment

ID: 16248407
kPlaylist is a multi-lingual Web-based music streaming system. It can be used as a private or public jukebox. It reads files as MP3, Ogg, WMA, and others and includes a user signup tool, search engine, user editor, personal options, personal and shared playlists, listings of new and popular music, a randomizing feature, and a quick way of browsing albums. Upgrading and installation is automatic.

The MP3 Streaming DownSampler for PHP is written with cable modem/DSL users with low upstream caps in mind. Using LAME, it dynamically downsamples a requested MP3 to a bitrate which can be streamed. It doesn't use temporary files, so you don't have to take the time to do any batching, and you just give it a directory with symlinks to your music in a place the Web server can reach. The interface is simplistic and fast, meant for immediate plug and play access.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question