Re: Possibly OT: Controlling winamp with Python

2005-02-07 Thread JanC
Bill Mill schreef: > 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

Re: Possibly OT: Controlling winamp with Python

2005-02-04 Thread TZOTZIOY
On Fri, 4 Feb 2005 13:10:10 -0700, rumours say that "Brent W. Hughes" <[EMAIL PROTECTED]> might have written: >I'm running Windows XP and I'm using winamp to listen to internet radio >stations. Occasionally, an annoying commercial will come on. I would like >to write a Python program that, whe

Re: Possibly OT: Controlling winamp with Python

2005-02-04 Thread Dave Brueck
Brent W. Hughes wrote: I'm running Windows XP and I'm using winamp to listen to internet radio stations. Occasionally, an annoying commercial will come on. I would like to write a Python program that, when run, will, in essence, push on winamp's mute button. Then, after say 20 seconds, it wil

Re: Possibly OT: Controlling winamp with Python

2005-02-04 Thread Josef Meile
Hi Brent, Brent W. Hughes 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 he

Re: Possibly OT: Controlling winamp with Python

2005-02-04 Thread Bill Mill
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

Re: Possibly OT: Controlling winamp with Python

2005-02-04 Thread Brent W. Hughes
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 clic

Re: Possibly OT: Controlling winamp with Python

2005-02-04 Thread Kartic
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

Possibly OT: Controlling winamp with Python

2005-02-04 Thread Brent W. Hughes
I'm running Windows XP and I'm using winamp to listen to internet radio stations. Occasionally, an annoying commercial will come on. I would like to write a Python program that, when run, will, in essence, push on winamp's mute button. Then, after say 20 seconds, it will push the mute button