eyceguy
02-12-2006, 02:37 PM
Ok, I'm having a problem with an MP3 Perl server that I ran into over at perlmonks.org
http://perlmonks.org/index.pl?node_id=8650
thing is I want to have a central server running this with stored playlists. and then the end user connects to it with an option as to what playlist they want.
Now what i want to do is connect to it from winamp/xmms/mpg123/whatever with an argument. for example
mpg123 http://127.0.0.1:8000?rock
or
mpg123 http://127.0.0.1:8000?plist=rock
I looked into CGI but it looks for the options on the command line when I run the server. How would I go about doing something like this? or better yet a direction to go to learn how to do this.
Now I know there are other programs around that do what im looking at and I know that i could run a seperate server on another port and have unique playlists for each, but I really would like to learn ho to do this, this way if at all possible. I looked through the perl cookbook and perl in a nutshell. Neither has a section that pertains to what I'm looking for. perlmonks.org has a crappy search tool (IMHO) and the only search phrases I can think for google give either no results or thousands of non-relevant results.
any help would be greatly appreciated.
http://perlmonks.org/index.pl?node_id=8650
thing is I want to have a central server running this with stored playlists. and then the end user connects to it with an option as to what playlist they want.
Now what i want to do is connect to it from winamp/xmms/mpg123/whatever with an argument. for example
mpg123 http://127.0.0.1:8000?rock
or
mpg123 http://127.0.0.1:8000?plist=rock
I looked into CGI but it looks for the options on the command line when I run the server. How would I go about doing something like this? or better yet a direction to go to learn how to do this.
Now I know there are other programs around that do what im looking at and I know that i could run a seperate server on another port and have unique playlists for each, but I really would like to learn ho to do this, this way if at all possible. I looked through the perl cookbook and perl in a nutshell. Neither has a section that pertains to what I'm looking for. perlmonks.org has a crappy search tool (IMHO) and the only search phrases I can think for google give either no results or thousands of non-relevant results.
any help would be greatly appreciated.