SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
Thread: PHP Music Playlist System
-
Apr 22, 2007, 10:21 #1
- Join Date
- Jul 2006
- Location
- New Zealand
- Posts
- 1,300
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
PHP Music Playlist System
Hi all i am wondering how can i go about creating a php playlist that display alll the mp3's in a certain folder and if the user has it coming from a website url like
somedomain.com/music/thesong.mp3
it will display it in the song information once on the script from the folder if its there and from the website which is stored in the database?
How can this be done can anyone give me an examples i can work with?
Thanks,
William
-
Apr 28, 2007, 03:27 #2
Hi William,
maybe this is not the appropriate forum for your problem.
Anyway, I would use a flash player to play the songs. You could save information about the songs - i.e. meta information - in so called ID3 tags. Check http://getid3.sourceforge.net. There are many players that accept GET params to play a certain file. The playlist could be generated with PHP - it´s just a list of links.
-
Apr 28, 2007, 03:48 #3
- Join Date
- Jul 2006
- Location
- New Zealand
- Posts
- 1,300
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Nice the Link of each song will be good but what happens if the user goes to the next page will it repeat the song as in start from the begining and also when the song that is playing finished the next one automatically starts with a button for the person to turn music off and start from begining?
Thanks
-
Apr 28, 2007, 04:01 #4
When the user goes to another page the player will start from the beginning of a song ... or maybe it will play nothing at all if the param is missing. But you could use JavaScript and/or AJAX for pagination without reloading.
By the way, you should search for some free players and check their behaviour.
-
Apr 28, 2007, 04:09 #5
I forgot another option. You could use or create a mp3 player incl. playlist entirely in flash.
-
Apr 29, 2007, 12:48 #6
Looks like this is a thread for the basic PHP forum.
Bookmarks