Re: Using a custom storage system with the SliMP3?
Jacob Potter <[email protected]>
| Newsgroups | gmane.music.equipment.slimp3.dev |
|---|---|
| Organization | Pottersoft |
| Message-ID | <[email protected]> |
Dean - I'd like to see the PHP code. I've used the SliMP3 HTTP server - it's not so much that as the naming of the directories. It gets annoying seeing 'f.0' and not 'A Folder' or whatever. I was thinking that it would be nice to offload *all* the directory naming/sorting/filename/etc. stuff to seperate code - by default it would just be alphabetical, using file names, but it could be replaced by people with a different scheme (like me) with something else. Does that sound reasonable? If you want, I'll send you my code to look at. - Jacob dean blackketter wrote: > Hi Jacob, > > This is one reason I added the HTTP server to the SliMP3 server. > > I have a similar legacy system in my house (tho' it uses a different > file organization.) > > You can use your PHP script to access the SliMP3 server via HTTP and > queue up songs, control playback, etc... > > If you call the server with a URL like: > > http://localhost:9000/status.html > > you get back an HTML page with the currently playing status on it. > > But for our applications, you can use a URL like: > > http://localhost:9000/status.m3u > > you get back an M3U file with the currently playlist in it. > > If you send a command to the player like: > > http://localhost:9000/playlist.m3u?p1=append&p2=%2fhome%2fjacob%2fmp3%2fA_Song.mp3 > > it will also return an M3U file (see the playlist.m3u command in > there?) and add the song /home/jacob/mp3/A_Song.mp3 to the playlist. > > The M3U responses also come back with a set of headers that describe > the player's current state. Here's an example of an HTTP > request/response using telnet: > > [dean@monkeyhouse SliMP3]$ telnet localhost 9000 > Trying 127.0.0.1... > Connected to monkeytank (127.0.0.1). > Escape character is '^]'. > GET /status.m3u http/1.1 > > HTTP/1.0 200 OK > Content-Type: audio/x-mpegurl > x-playerindex: 1 > x-playervolume: 99 > x-playertracks: 3 > x-playershuffle: 0 > x-playerrepeat: 2 > x-playermode: play > > http://10.0.1.201:8080/jukebox/music/Sade/Lovers%20Rock/01.%20By%20Your%20Side.mp3 > http://10.0.1.201:8080/jukebox/music/Sade/Lovers%20Rock/02.%20Flow.mp3 > http://10.0.1.201:8080/jukebox/music/Sade/Lovers%20Rock/03.%20King%20Of%20Sorrow.mp3 > > I haven't really documented (except in the code :-) the command set, > but by browsing the web interface you can cull out examples to work > from. (That's no excuse for missing documentation...) I have some > PHP code that issues the commands to the player/server. Let me know > if you'd like to see them. > > It seems to be pretty stable (my wife didn't even notice that I > replaced the old player with a SliMP3), but if you find a problem let > me know... > > -dean -- "Terminak #3 has bad keyboard. Pkease fix." ------------------------ Yahoo! Groups Sponsor ---------------------~--> Pinpoint the right security solution for your company- Learn how to add 128- bit encryption and to authenticate your web site with VeriSign's FREE guide! http://us.click.yahoo.com/yQix2C/33_CAA/yigFAA/rIp0lB/TM ---------------------------------------------------------------------~-> To unsubscribe from this group, send an email to: [email protected] Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/