Streaming MP3s using PHP

Posted on 2006-03-21
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

    Why do you need to do this in php?

    php is a serverside application, not clientside.

    LVL 10

    Expert Comment

    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

    See this:  (Demo) (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

    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

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    As this topic comes over and over again in different forms, I've finally decided to write a short (yea, right...) article / tutorial about pagination with PHP with MySQL database. There are dozens of these kind of tutorials, I know - I wanted to mak…
    The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now