Possibly OT: Controlling winamp with Python

Bill Mill bill.mill at gmail.com
Fri Feb 4 15:44:21 EST 2005


Brent,

You could write the Python program as a proxy of the internet stream.
Basically, you would point your proxy at the web stream and receive
the data it sends. At the same time, you would be listening for
connections on some socket on the local machine. You would then point
winamp towards the local socket instead of the internet station.

If you put a "mute" button on your program, pressing it could trigger
your program to begin sending empty data to winamp, and resume sending
it at some arbitrary point.

Peace
Bil Mill
bill.mill at gmail.com


On Fri, 4 Feb 2005 13:35:04 -0700, Brent W. Hughes
<brent.hughes at comcast.net> wrote:
> The Python program won't decide whether a commercial is playing, I will.  At
> that point, I will run my program which will press mute, wait 20 seconds,
> and then press mute again.
> 
> Actually, I could leave the program running but minimized to the task bar.
> When I hear the advertisement, I just click on the program in the task bar.
> It knows what to do from there.
> 
> Brent
> 
> "Kartic" <kartic.krishnamurthy at gmail.com> wrote in message
> news:1107548407.626431.171350 at z14g2000cwz.googlegroups.com...
> > Brent,
> >
> > Question : how will your python script distinguish between a commercial
> > and a song?
> >
> > I can understand if you are writing a streaming client in Python; in
> > that case you can analyze the audio stream and decide if it is a
> > commercial or a song/music.
> >
> > Did you check to see if there is already a Winamp plugin that would
> > achieve this for you?
> >
> > Thanks,
> > -Kartic
> >
> 
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list