control freeamp through http

2000-12-19 Thread Niklas Söderberg


I'm currently working on a small hobby-project, in which I need to control
an mp3-player using a browser. I know there are plug-ins for WinAmp to do
that, but I want to use FreeAmp!:-)

Has anybody already done this, or if not, can someone give me a pointer as
to where to start, since I'm completely new to the FreeAmp source? I've
started thinking in the terms of making a port-listener as an additional UI,
which then passes the commands recieved on to the player (since it will in
fact work as an extension of the user interface in the browser). Or is it
perhaps better to do it as a plug-in? 

I would be grateful for any help you can give me!

Regards,
Niklas

___
[EMAIL PROTECTED]
http://www.freeamp.org/mailman/listinfo/freeamp-dev



Re: control freeamp through http

2000-12-19 Thread Robert Hart

I have been thinking along similar lines for some time, and I'm sure a number of
people have made suggestions about how to do it on the list before. I recently
wrote a screensaver that displays the current track name and artist if freeamp
is running. It does this by peeking at the window title - it's a bit of a hack,
but it works, I would of course love to extend this concept further.

I would be wary therefore, of putting code into freeamp itself to generate HTML,
and to act as a web server. My suggestion would be to write a UI plugin, that
listens on a port, or named pipe or something (preferably something that can be
done both on UNIX and that other operating system) - in other words create
freeampd. 
Personally I was thinking of starting with the linux command line UI, and
modifying it. But then I'm all talk and not much action

Then write a CGI script that acts as a go between, doing things like
handling multiple users, etc.

Also, write a standalone app, that can load standard freeamp .UI, and talk to
the freeampd (over a LAN perhaps - so everyone in a house/office/cafe etc. can
have an input on the choice of music). I think the modular structure of freeamp
should make this really easy to do.

On a perhaps slightly unrelated issue, it would be great to have a jukebox mode,
where when a track is played, it is removed from the currentplaylist, and if the
current playlist is empty, freeamp plays randomly from my music. 


On Tue, 19 Dec 2000, Niklas Söderberg wrote:

-
-I'm currently working on a small hobby-project, in which I need to control
-an mp3-player using a browser. I know there are plug-ins for WinAmp to do
-that, but I want to use FreeAmp!:-)
-
-Has anybody already done this, or if not, can someone give me a pointer as
-to where to start, since I'm completely new to the FreeAmp source? I've
-started thinking in the terms of making a port-listener as an additional UI,
-which then passes the commands recieved on to the player (since it will in
-fact work as an extension of the user interface in the browser). Or is it
-perhaps better to do it as a plug-in? 
-
-I would be grateful for any help you can give me!
-
-Regards,
-Niklas
-

oo
 \__/   Robert Hart Ground Floor Flat
 /oo\   University of Bath  2 Alexander Buildings
 \()/   http://www.bath.ac.uk/~ab6rah   Bath
 |~~|   [EMAIL PROTECTED]   BA1 6AT
 |~~|
 |~~|   /\
 \~~\  /\/
  \~~\/\/
   \/ | | | | | | \/
 ~~~

___
[EMAIL PROTECTED]
http://www.freeamp.org/mailman/listinfo/freeamp-dev